Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.SMR_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo", uses=false) Using package ModelicaServices with version 1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo) Using package Modelica with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.SMR_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SMR_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.SMR_Inverter") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.8217/0.8217, allocations: 110.8 MB / 118 MB, free: 14.56 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.00167/0.001671, allocations: 156 kB / 143.7 MB, free: 4.887 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 7.304e-06/7.324e-06, allocations: 4 kB / 173.5 MB, free: 23.05 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04154/0.04157, allocations: 25.16 MB / 198.6 MB, free: 13.96 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1372/0.1788, allocations: 45.31 MB / 243.9 MB, free: 3.488 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002009/0.1791, allocations: 65.98 kB / 244 MB, free: 3.48 MB / 170.7 MB Notification: Performance of FrontEnd: time 0.07162/0.2507, allocations: 28.09 MB / 272.1 MB, free: 3.176 MB / 186.7 MB Notification: Performance of Transformations before backend: time 0.0001105/0.2508, allocations: 43.94 kB / 272.1 MB, free: 3.133 MB / 186.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 416 * Number of variables: 416 Notification: Performance of Generate backend data structure: time 0.003802/0.2547, allocations: 1.738 MB / 273.9 MB, free: 1.449 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.012e-05/0.2547, allocations: 8.031 kB / 273.9 MB, free: 1.441 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004699/0.2552, allocations: 194.3 kB / 274.1 MB, free: 1.25 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00196/0.2572, allocations: 1.052 MB / 275.1 MB, free: 180 kB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.616e-05/0.2572, allocations: 56 kB / 275.2 MB, free: 124 kB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002452/0.2575, allocations: 99.91 kB / 275.3 MB, free: 24 kB / 186.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002924/0.2604, allocations: 1.685 MB / 276.9 MB, free: 14.34 MB / 202.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003312/0.2638, allocations: 1.936 MB / 278.9 MB, free: 12.33 MB / 202.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.387e-05/0.2638, allocations: 4 kB / 278.9 MB, free: 12.32 MB / 202.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001428/0.264, allocations: 3.906 kB / 278.9 MB, free: 12.32 MB / 202.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.95e-05/0.2641, allocations: 75.25 kB / 279 MB, free: 12.25 MB / 202.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01018/0.2742, allocations: 5.842 MB / 284.8 MB, free: 6.289 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001333/0.2756, allocations: 0.7966 MB / 285.6 MB, free: 5.484 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00105/0.2767, allocations: 0.7526 MB / 286.4 MB, free: 4.73 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.648e-05/0.2768, allocations: 8.781 kB / 286.4 MB, free: 4.723 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.597e-05/0.2768, allocations: 43.34 kB / 286.4 MB, free: 4.672 MB / 202.7 MB Notification: Performance of pre-optimization done (n=93): time 2.485e-06/0.2768, allocations: 4 kB / 286.4 MB, free: 4.668 MB / 202.7 MB Notification: Performance of matching and sorting (n=113): time 0.008628/0.2854, allocations: 4.423 MB / 290.8 MB, free: 180 kB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.928e-05/0.2855, allocations: 64.41 kB / 290.9 MB, free: 104 kB / 202.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/Electrical/Machines.mo:7706:7-7708:33:writable] Warning: Parameter terminalBox.terminalConnection has no value, and is fixed during initialization (fixed=true), using available start value (start="Y") as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/Mechanics/Rotational.mo:4773:7-4774:27:writable] Warning: Parameter loadTorqueStep.offsetTorque has no value, and is fixed during initialization (fixed=true), using available start value (start=0.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/Electrical/Machines.mo:2609:9-2611:75:writable] Warning: Parameter smr.Rrd has no value, and is fixed during initialization (fixed=true), using available start value (start=0.04) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/Electrical/Machines.mo:2603:9-2605:75:writable] Warning: Parameter smr.Lrsigmad has no value, and is fixed during initialization (fixed=true), using available start value (start=0.05 / (6.283185307179586 * smr.fsNominal)) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/Electrical/Machines.mo:2600:9-2602:51:writable] Warning: Parameter smr.useDamperCage has no value, and is fixed during initialization (fixed=true), using available start value (start=true) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/Electrical/Machines.mo:2597:9-2599:75:writable] Warning: Parameter smr.Lmq has no value, and is fixed during initialization (fixed=true), using available start value (start=0.9 / (6.283185307179586 * smr.fsNominal)) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/Electrical/Machines.mo:2594:9-2596:75:writable] Warning: Parameter smr.Lmd has no value, and is fixed during initialization (fixed=true), using available start value (start=2.9 / (6.283185307179586 * smr.fsNominal)) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/Electrical/Machines.mo:7411:7-7413:73:writable] Warning: Parameter smr.Lssigma has no value, and is fixed during initialization (fixed=true), using available start value (start=0.1 / (6.283185307179586 * smr.fsNominal)) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/Electrical/Machines.mo:7408:7-7410:73:writable] Warning: Parameter smr.Rs has no value, and is fixed during initialization (fixed=true), using available start value (start=0.03) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/Electrical/Machines.mo:7406:7-7407:28:writable] Warning: Parameter smr.fsNominal has no value, and is fixed during initialization (fixed=true), using available start value (start=50.0) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/Electrical/Machines.mo:7405:7-7405:75:writable] Warning: Parameter smr.p has no value, and is fixed during initialization (fixed=true), using available start value (start=2) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/Electrical/Machines.mo:7272:7-7274:46:writable] Warning: Parameter smr.Js has no value, and is fixed during initialization (fixed=true), using available start value (start=smr.Jr) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/Electrical/Machines.mo:7268:7-7268:72:writable] Warning: Parameter smr.Jr has no value, and is fixed during initialization (fixed=true), using available start value (start=0.29) as default value. Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001043/0.2866, allocations: 0.6577 MB / 291.6 MB, free: 15.44 MB / 218.7 MB Notification: Performance of collectPreVariables (initialization): time 8.219e-05/0.2867, allocations: 25.7 kB / 291.6 MB, free: 15.41 MB / 218.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003659/0.287, allocations: 0.5689 MB / 292.1 MB, free: 14.82 MB / 218.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002997/0.2873, allocations: 370.4 kB / 292.5 MB, free: 14.46 MB / 218.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.461e-05/0.2874, allocations: 0 / 292.5 MB, free: 14.46 MB / 218.7 MB Notification: Performance of setup shared object (initialization): time 0.0002122/0.2876, allocations: 414.6 kB / 292.9 MB, free: 14.04 MB / 218.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008904/0.2885, allocations: 0.6351 MB / 293.6 MB, free: 13.4 MB / 218.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001016/0.2895, allocations: 0.7822 MB / 294.3 MB, free: 12.57 MB / 218.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001088/0.2906, allocations: 0.7778 MB / 295.1 MB, free: 11.79 MB / 218.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.2907, allocations: 4 kB / 295.1 MB, free: 11.79 MB / 218.7 MB Notification: Performance of matching and sorting (n=138) (initialization): time 0.00362/0.2943, allocations: 2.129 MB / 297.2 MB, free: 9.641 MB / 218.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.089e-05/0.2943, allocations: 7.984 kB / 297.3 MB, free: 9.633 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.224e-05/0.2943, allocations: 4 kB / 297.3 MB, free: 9.629 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001713/0.2961, allocations: 0.6256 MB / 297.9 MB, free: 8.996 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009988/0.2971, allocations: 215.7 kB / 298.1 MB, free: 8.785 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01011/0.3072, allocations: 7.908 MB / 306 MB, free: 0.5195 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009647/0.3082, allocations: 51.94 kB / 306.1 MB, free: 480 kB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000102/0.3083, allocations: 43.97 kB / 306.1 MB, free: 436 kB / 218.7 MB Warning: Assuming fixed start value for the following 6 variables: loadInertia.phi:VARIABLE(unit = "rad" ) "Absolute rotation angle of component" type: Real smr.idq_rr[2]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "rotor space phasor current / rotor fixed frame" type: Real [2] smr.idq_rr[1]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "rotor space phasor current / rotor fixed frame" type: Real [2] smr.idq_sr[2]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "stator space phasor current / rotor fixed frame" type: Real [2] smr.idq_sr[1]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "stator space phasor current / rotor fixed frame" type: Real [2] smr.inertiaRotor.w:VARIABLE(unit = "rad/s" ) "Absolute angular velocity of component (= der(phi))" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (105): * Single equations (assignments): 102 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,80.6%) 22,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003242/0.3086, allocations: 140 kB / 306.2 MB, free: 296 kB / 218.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001817/0.3088, allocations: 94.78 kB / 306.3 MB, free: 200 kB / 218.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003859/0.3127, allocations: 2.089 MB / 308.4 MB, free: 14.09 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.258e-05/0.3127, allocations: 12 kB / 308.4 MB, free: 14.07 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.327e-06/0.3127, allocations: 7.984 kB / 308.4 MB, free: 14.07 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.194e-05/0.3128, allocations: 3.984 kB / 308.4 MB, free: 14.06 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007043/0.3198, allocations: 3.906 MB / 312.3 MB, free: 10.08 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/0.3198, allocations: 128 / 312.3 MB, free: 10.08 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008523/0.3207, allocations: 175.8 kB / 312.5 MB, free: 9.91 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001771/0.3225, allocations: 0.6352 MB / 313.1 MB, free: 9.266 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.374e-05/0.3226, allocations: 15.98 kB / 313.2 MB, free: 9.25 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00917/0.3318, allocations: 7.76 MB / 320.9 MB, free: 1.137 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/0.3318, allocations: 4 kB / 320.9 MB, free: 1.133 MB / 234.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.06717/0.399, allocations: 3.157 MB / 324.1 MB, free: 82.79 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005809/0.3996, allocations: 328.7 kB / 324.4 MB, free: 82.7 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001656/0.3998, allocations: 10.78 kB / 324.4 MB, free: 82.7 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006453/0.4004, allocations: 55.5 kB / 324.5 MB, free: 82.7 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000149/0.4006, allocations: 61.81 kB / 324.5 MB, free: 82.7 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.452e-05/0.4007, allocations: 41.48 kB / 324.6 MB, free: 82.7 MB / 234.7 MB Notification: Performance of sort global known variables: time 0.0005353/0.4012, allocations: 488 kB / 325 MB, free: 82.6 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001101/0.4023, allocations: 325 kB / 325.4 MB, free: 82.6 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_rr[1],smr.idq_rr[2],vfController.x,loadInertia.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (85): * Single equations (assignments): 82 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(6,80.6%) 22,(1,100.0%) 1,(2,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001956/0.4025, allocations: 120 kB / 325.5 MB, free: 82.51 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.002666/0.4052, allocations: 2.037 MB / 327.5 MB, free: 82.21 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.4052, allocations: 0 / 327.5 MB, free: 82.21 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00181/0.407, allocations: 1.303 MB / 328.8 MB, free: 81.89 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009295/0.408, allocations: 169.8 kB / 329 MB, free: 81.89 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005072/0.413, allocations: 3.051 MB / 332 MB, free: 81.32 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001217/0.4143, allocations: 1.665 MB / 333.7 MB, free: 80.59 MB / 234.7 MB Notification: Performance of SimCode: time 8.22e-07/0.4143, allocations: 0 / 333.7 MB, free: 80.59 MB / 234.7 MB Notification: Performance of Templates: time 0.02518/0.4395, allocations: 16.73 MB / 350.4 MB, free: 79.83 MB / 234.7 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.SMR_Inverter.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.SMR_Inverter.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.SMR_Inverter.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.SMR_Inverter.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.SMR_Inverter.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.SMR_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.SMR_Inverter.pipe 2>&1)