Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001685/0.001685, allocations: 111.3 kB / 15.34 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003218/0.003218, allocations: 192.3 kB / 16.25 MB, free: 6.148 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2/2, allocations: 205.1 MB / 222.1 MB, free: 4.699 MB / 174.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 51.92 kB / 278.2 MB, free: 12.62 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2523/0.2536, allocations: 46.63 MB / 324.9 MB, free: 1.875 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter): time 0.01182/0.2655, allocations: 10.2 MB / 335.1 MB, free: 9.84 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007235/0.2728, allocations: 3.433 MB / 338.5 MB, free: 6.41 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002138/0.2749, allocations: 43.81 kB / 338.5 MB, free: 6.367 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002477/0.2775, allocations: 0.6759 MB / 339.2 MB, free: 5.688 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003271/0.2808, allocations: 0.7498 MB / 340 MB, free: 4.934 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001369/0.2822, allocations: 375.7 kB / 340.3 MB, free: 4.566 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.004802/0.287, allocations: 2.755 MB / 343.1 MB, free: 1.801 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004548/0.2916, allocations: 2.37 MB / 345.4 MB, free: 15.37 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003914/0.2955, allocations: 1.257 MB / 346.7 MB, free: 14.11 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004073/0.2996, allocations: 1.611 MB / 348.3 MB, free: 12.49 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002079/0.3017, allocations: 336 kB / 348.6 MB, free: 12.16 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002265/0.304, allocations: 439.8 kB / 349.1 MB, free: 11.73 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001619/0.3057, allocations: 0.9389 MB / 350 MB, free: 10.79 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002549/0.3082, allocations: 1.505 MB / 351.5 MB, free: 9.281 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004531/0.3128, allocations: 4.334 MB / 355.9 MB, free: 4.934 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.203e-06/0.3128, allocations: 0 / 355.9 MB, free: 4.934 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.3128, allocations: 0 / 355.9 MB, free: 4.934 MB / 286.1 MB Notification: Performance of Transformations before backend: time 0.0001512/0.313, allocations: 0 / 355.9 MB, free: 4.934 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.007397/0.3204, allocations: 3.049 MB / 358.9 MB, free: 1.82 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.838e-05/0.3205, allocations: 11.89 kB / 358.9 MB, free: 1.809 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009002/0.3214, allocations: 313.4 kB / 359.2 MB, free: 1.5 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002496/0.3239, allocations: 1.513 MB / 360.7 MB, free: 15.93 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001537/0.3241, allocations: 176.5 kB / 360.9 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003124/0.3244, allocations: 223.8 kB / 361.1 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004853/0.3292, allocations: 2.909 MB / 364 MB, free: 12.54 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.942e-05/0.3293, allocations: 11.84 kB / 364 MB, free: 12.53 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001938/0.3295, allocations: 91.98 kB / 364.1 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000121/0.3296, allocations: 116.3 kB / 364.2 MB, free: 12.32 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00395/0.3336, allocations: 2.43 MB / 366.7 MB, free: 9.875 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01292/0.3465, allocations: 9.117 MB / 375.8 MB, free: 480 kB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002217/0.3488, allocations: 1.705 MB / 377.5 MB, free: 14.65 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00161/0.3504, allocations: 0.9839 MB / 378.5 MB, free: 13.66 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003054/0.3508, allocations: 207.2 kB / 378.7 MB, free: 13.42 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.372e-05/0.3508, allocations: 47.56 kB / 378.7 MB, free: 13.37 MB / 318.1 MB Notification: Performance of pre-optimization done (n=105): time 3.626e-06/0.3508, allocations: 0 / 378.7 MB, free: 13.37 MB / 318.1 MB Notification: Performance of matching and sorting (n=122): time 0.01429/0.3651, allocations: 6.535 MB / 385.3 MB, free: 6.668 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.532e-05/0.3652, allocations: 64.41 kB / 385.3 MB, free: 6.594 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002216/0.3675, allocations: 1.565 MB / 386.9 MB, free: 5.02 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001041/0.3676, allocations: 45.7 kB / 386.9 MB, free: 4.969 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008648/0.3685, allocations: 1.112 MB / 388.1 MB, free: 3.84 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004343/0.3689, allocations: 425.8 kB / 388.5 MB, free: 3.418 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004578/0.3694, allocations: 271.3 kB / 388.7 MB, free: 3.148 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.3695, allocations: 309.1 kB / 389 MB, free: 2.844 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00108/0.3706, allocations: 0.7066 MB / 389.7 MB, free: 2.137 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001412/0.372, allocations: 1.135 MB / 390.9 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002889/0.3749, allocations: 1.968 MB / 392.8 MB, free: 14.67 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.024e-05/0.3749, allocations: 4 kB / 392.8 MB, free: 14.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004467/0.3794, allocations: 2.514 MB / 395.4 MB, free: 12.11 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.021e-05/0.3795, allocations: 12 kB / 395.4 MB, free: 12.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.64e-05/0.3795, allocations: 15.98 kB / 395.4 MB, free: 12.08 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001089/0.3806, allocations: 435.3 kB / 395.8 MB, free: 11.64 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001328/0.3819, allocations: 347.5 kB / 396.2 MB, free: 11.3 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007049/0.389, allocations: 7.123 MB / 403.3 MB, free: 3.754 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001455/0.3905, allocations: 103.9 kB / 403.4 MB, free: 3.652 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001421/0.3906, allocations: 67.98 kB / 403.4 MB, free: 3.586 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 60 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (169): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00128/0.3919, allocations: 0.7129 MB / 404.2 MB, free: 2.863 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003273/0.3923, allocations: 173.8 kB / 404.3 MB, free: 2.691 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003667/0.3959, allocations: 2.186 MB / 406.5 MB, free: 472 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.137e-05/0.396, allocations: 12 kB / 406.5 MB, free: 460 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.396, allocations: 8 kB / 406.5 MB, free: 452 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.354e-05/0.396, allocations: 11.92 kB / 406.5 MB, free: 440 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007187/0.4032, allocations: 4.794 MB / 411.3 MB, free: 11.48 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.318e-06/0.4032, allocations: 8.062 kB / 411.3 MB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008978/0.4041, allocations: 219.7 kB / 411.6 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001086/0.4052, allocations: 462.9 kB / 412 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.551e-05/0.4053, allocations: 31.98 kB / 412 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007848/0.4132, allocations: 8.669 MB / 420.7 MB, free: 1.531 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.494e-06/0.4132, allocations: 15.88 kB / 420.7 MB, free: 1.516 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005483/0.4187, allocations: 3.208 MB / 423.9 MB, free: 14.21 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001098/0.4199, allocations: 398.9 kB / 424.3 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002857/0.4202, allocations: 35.98 kB / 424.4 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009692/0.4211, allocations: 87.91 kB / 424.4 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002448/0.4214, allocations: 100.8 kB / 424.5 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.997e-05/0.4215, allocations: 39.98 kB / 424.6 MB, free: 13.54 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001617/0.4231, allocations: 1.07 MB / 425.7 MB, free: 12.47 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4231, allocations: 0 / 425.7 MB, free: 12.47 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001697/0.4248, allocations: 488 kB / 426.1 MB, free: 12 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (108): * Single equations (assignments): 104 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004409/0.4253, allocations: 207 kB / 426.3 MB, free: 11.79 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.005021/0.4303, allocations: 2.779 MB / 429.1 MB, free: 8.949 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.913e-06/0.4303, allocations: 4.062 kB / 429.1 MB, free: 8.945 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002321/0.4326, allocations: 1.469 MB / 430.6 MB, free: 7.422 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002296/0.435, allocations: 485.4 kB / 431.1 MB, free: 6.945 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009535/0.4445, allocations: 5.712 MB / 436.8 MB, free: 1.148 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00158/0.4461, allocations: 1.864 MB / 438.6 MB, free: 15.25 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001361/0.4475, allocations: 398.8 kB / 439 MB, free: 14.86 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003535/0.4479, allocations: 119.4 kB / 439.1 MB, free: 14.74 MB / 382.1 MB Notification: Performance of SimCode: time 1.072e-06/0.4479, allocations: 0 / 439.1 MB, free: 14.74 MB / 382.1 MB Notification: Performance of Templates: time 0.2246/0.6725, allocations: 26.29 MB / 465.4 MB, free: 106.6 MB / 382.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.SynchronousInductionMachines.SMPM_Inverter.pipe 2>&1)