Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.SMPM_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.SMPM_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.SMPM_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SMPM_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.SMPM_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.6624/0.6624, allocations: 110.8 MB / 118 MB, free: 14.69 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001644/0.001644, allocations: 152 kB / 143.7 MB, free: 5.023 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 6.692e-06/6.883e-06, allocations: 0 / 173.5 MB, free: 23.05 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.03906/0.03909, allocations: 25.16 MB / 198.6 MB, free: 13.97 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.05927/0.09839, allocations: 45.75 MB / 244.4 MB, free: 144 kB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002346/0.09867, allocations: 63.97 kB / 244.4 MB, free: 80 kB / 186.7 MB Notification: Performance of FrontEnd: time 0.1543/0.253, allocations: 28.42 MB / 272.8 MB, free: 14.82 MB / 186.7 MB Notification: Performance of Transformations before backend: time 0.0002215/0.2532, allocations: 47.97 kB / 272.9 MB, free: 14.8 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: 422 * Number of variables: 422 Notification: Performance of Generate backend data structure: time 0.005418/0.2587, allocations: 1.761 MB / 274.7 MB, free: 13.73 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.798e-05/0.2587, allocations: 10.62 kB / 274.7 MB, free: 13.73 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001059/0.2598, allocations: 203 kB / 274.9 MB, free: 13.63 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002728/0.2625, allocations: 1.057 MB / 275.9 MB, free: 13.13 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.962e-05/0.2627, allocations: 53.41 kB / 276 MB, free: 13.13 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004754/0.2631, allocations: 94.81 kB / 276.1 MB, free: 13.13 MB / 186.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003754/0.2669, allocations: 1.714 MB / 277.8 MB, free: 12.97 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003808/0.2707, allocations: 1.964 MB / 279.7 MB, free: 12.04 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.374e-05/0.2708, allocations: 2.375 kB / 279.7 MB, free: 12.04 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001649/0.271, allocations: 5 kB / 279.7 MB, free: 12.03 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.282e-05/0.2711, allocations: 78.05 kB / 279.8 MB, free: 12.02 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01006/0.2811, allocations: 5.95 MB / 285.8 MB, free: 6.738 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001082/0.2822, allocations: 0.7883 MB / 286.6 MB, free: 5.941 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000886/0.2832, allocations: 0.7643 MB / 287.3 MB, free: 5.176 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.442e-05/0.2832, allocations: 16.45 kB / 287.3 MB, free: 5.164 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.454e-05/0.2833, allocations: 43.34 kB / 287.4 MB, free: 5.113 MB / 186.7 MB Notification: Performance of pre-optimization done (n=94): time 2.855e-06/0.2833, allocations: 0 / 287.4 MB, free: 5.113 MB / 186.7 MB Notification: Performance of matching and sorting (n=115): time 0.007547/0.2908, allocations: 4.479 MB / 291.9 MB, free: 0.582 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.818e-05/0.2909, allocations: 68.34 kB / 291.9 MB, free: 0.5039 MB / 186.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:2122:9-2124:75:writable] Warning: Parameter smpm.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:2116:9-2118:75:writable] Warning: Parameter smpm.Lrsigmad has no value, and is fixed during initialization (fixed=true), using available start value (start=0.05 / (6.283185307179586 * smpm.fsNominal)) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/Electrical/Machines.mo:2113:9-2115:51:writable] Warning: Parameter smpm.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:2110:9-2112:75:writable] Warning: Parameter smpm.Lmq has no value, and is fixed during initialization (fixed=true), using available start value (start=0.3 / (6.283185307179586 * smpm.fsNominal)) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/Electrical/Machines.mo:2107:9-2109:75:writable] Warning: Parameter smpm.Lmd has no value, and is fixed during initialization (fixed=true), using available start value (start=0.3 / (6.283185307179586 * smpm.fsNominal)) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/Electrical/Machines.mo:2104:9-2106:50:writable] Warning: Parameter smpm.VsOpenCircuit has no value, and is fixed during initialization (fixed=true), using available start value (start=112.3) 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 smpm.Lssigma has no value, and is fixed during initialization (fixed=true), using available start value (start=0.1 / (6.283185307179586 * smpm.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 smpm.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 smpm.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 smpm.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 smpm.Js has no value, and is fixed during initialization (fixed=true), using available start value (start=smpm.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 smpm.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.0009512/0.2918, allocations: 0.6711 MB / 292.6 MB, free: 15.83 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 8.011e-05/0.2919, allocations: 25.7 kB / 292.6 MB, free: 15.8 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003402/0.2923, allocations: 0.5767 MB / 293.2 MB, free: 15.21 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003056/0.2926, allocations: 378.3 kB / 293.6 MB, free: 14.83 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.158e-05/0.2927, allocations: 0 / 293.6 MB, free: 14.83 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0002322/0.2929, allocations: 410.7 kB / 294 MB, free: 14.42 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000908/0.2938, allocations: 0.639 MB / 294.6 MB, free: 13.78 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009985/0.2948, allocations: 0.8102 MB / 295.4 MB, free: 12.92 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001077/0.2959, allocations: 0.7778 MB / 296.2 MB, free: 12.14 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-06/0.2959, allocations: 4 kB / 296.2 MB, free: 12.14 MB / 202.7 MB Notification: Performance of matching and sorting (n=141) (initialization): time 0.0037/0.2996, allocations: 2.156 MB / 298.4 MB, free: 9.969 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.628e-05/0.2997, allocations: 4 kB / 298.4 MB, free: 9.965 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.287e-05/0.2997, allocations: 4 kB / 298.4 MB, free: 9.961 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001672/0.3014, allocations: 0.6358 MB / 299 MB, free: 9.316 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009697/0.3023, allocations: 223.6 kB / 299.2 MB, free: 9.098 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009556/0.3119, allocations: 7.954 MB / 307.2 MB, free: 0.8008 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009813/0.3129, allocations: 59.84 kB / 307.2 MB, free: 0.7422 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.879e-05/0.313, allocations: 39.98 kB / 307.3 MB, free: 0.7031 MB / 202.7 MB Warning: Assuming fixed start value for the following 6 variables: loadInertia.phi:VARIABLE(unit = "rad" ) "Absolute rotation angle of component" type: Real smpm.idq_rr[2]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "rotor space phasor current / rotor fixed frame" type: Real [2] smpm.idq_rr[1]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "rotor space phasor current / rotor fixed frame" type: Real [2] smpm.idq_sr[2]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "stator space phasor current / rotor fixed frame" type: Real [2] smpm.idq_sr[1]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "stator space phasor current / rotor fixed frame" type: Real [2] smpm.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: 17 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (107): * Single equations (assignments): 104 * 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%) 23,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003481/0.3134, allocations: 139.7 kB / 307.4 MB, free: 0.5664 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001711/0.3136, allocations: 98.78 kB / 307.5 MB, free: 480 kB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003719/0.3173, allocations: 2.11 MB / 309.6 MB, free: 14.34 MB / 218.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.142e-05/0.3173, allocations: 11.94 kB / 309.6 MB, free: 14.33 MB / 218.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.21e-05/0.3174, allocations: 11.98 kB / 309.6 MB, free: 14.32 MB / 218.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.231e-05/0.3174, allocations: 3.984 kB / 309.6 MB, free: 14.32 MB / 218.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007243/0.3246, allocations: 3.944 MB / 313.6 MB, free: 10.33 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.044e-06/0.3247, allocations: 4.156 kB / 313.6 MB, free: 10.33 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008778/0.3256, allocations: 179.8 kB / 313.8 MB, free: 10.15 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001768/0.3273, allocations: 0.6269 MB / 314.4 MB, free: 9.516 MB / 218.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.736e-05/0.3274, allocations: 15.98 kB / 314.4 MB, free: 9.5 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009642/0.3371, allocations: 7.813 MB / 322.2 MB, free: 1.34 MB / 218.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.745e-06/0.3371, allocations: 7.938 kB / 322.2 MB, free: 1.332 MB / 218.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004943/0.3421, allocations: 3.187 MB / 325.4 MB, free: 14.09 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006409/0.3428, allocations: 327.7 kB / 325.7 MB, free: 13.75 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001749/0.3429, allocations: 15.89 kB / 325.8 MB, free: 13.73 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006959/0.3436, allocations: 55.94 kB / 325.8 MB, free: 13.68 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001593/0.3438, allocations: 68.83 kB / 325.9 MB, free: 13.61 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.306e-05/0.3439, allocations: 35.98 kB / 325.9 MB, free: 13.58 MB / 234.7 MB Notification: Performance of sort global known variables: time 0.0006861/0.3446, allocations: 499.1 kB / 326.4 MB, free: 13.1 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001258/0.3459, allocations: 328 kB / 326.7 MB, free: 12.78 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[1],smpm.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 (86): * Single equations (assignments): 83 * 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,86.1%) 23,(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.0002311/0.3461, allocations: 119 kB / 326.8 MB, free: 12.65 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.003293/0.3494, allocations: 2.052 MB / 328.9 MB, free: 10.57 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.3494, allocations: 0 / 328.9 MB, free: 10.57 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00213/0.3516, allocations: 1.305 MB / 330.2 MB, free: 9.234 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00101/0.3526, allocations: 174.7 kB / 330.4 MB, free: 9.059 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006135/0.3587, allocations: 3.087 MB / 333.4 MB, free: 5.914 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001702/0.3605, allocations: 1.682 MB / 335.1 MB, free: 4.203 MB / 234.7 MB Notification: Performance of SimCode: time 1.052e-06/0.3605, allocations: 0 / 335.1 MB, free: 4.203 MB / 234.7 MB Notification: Performance of Templates: time 0.0999/0.4604, allocations: 16.89 MB / 352 MB, free: 83.45 MB / 234.7 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.SMPM_Inverter.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.SMPM_Inverter.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.SMPM_Inverter.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.SMPM_Inverter.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.SMPM_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.SMPM_Inverter.pipe 2>&1)