Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.AIMC_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.AIMC_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.AIMC_Inverter") translateModel(Modelica.Electrical.Machines.Examples.AIMC_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=3000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.AIMC_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.6571/0.6571, allocations: 110.8 MB / 118 MB, free: 14.55 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001795/0.001796, allocations: 164 kB / 143.7 MB, free: 4.879 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 1.049e-05/1.05e-05, allocations: 0 / 173.5 MB, free: 23.04 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0604/0.06043, allocations: 25.16 MB / 198.6 MB, free: 13.95 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1497/0.2102, allocations: 43.47 MB / 242.1 MB, free: 4.246 MB / 170.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001362/0.2103, allocations: 63.66 kB / 242.2 MB, free: 4.238 MB / 170.7 MB Notification: Performance of FrontEnd: time 0.05832/0.2687, allocations: 23.76 MB / 265.9 MB, free: 8.332 MB / 186.7 MB Notification: Performance of Transformations before backend: time 0.0001145/0.2688, allocations: 31.94 kB / 265.9 MB, free: 8.301 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: 337 * Number of variables: 337 Notification: Performance of Generate backend data structure: time 0.00399/0.2728, allocations: 1.474 MB / 267.4 MB, free: 6.867 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/0.2729, allocations: 8.031 kB / 267.4 MB, free: 6.859 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000539/0.2734, allocations: 161.6 kB / 267.6 MB, free: 6.703 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001888/0.2753, allocations: 0.8791 MB / 268.5 MB, free: 5.984 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.643e-05/0.2754, allocations: 40 kB / 268.5 MB, free: 5.945 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000311/0.2757, allocations: 87.7 kB / 268.6 MB, free: 5.863 MB / 186.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002636/0.2783, allocations: 1.379 MB / 270 MB, free: 4.922 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002853/0.2812, allocations: 1.586 MB / 271.6 MB, free: 3.266 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.229e-05/0.2813, allocations: 4 kB / 271.6 MB, free: 3.262 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001267/0.2814, allocations: 3.906 kB / 271.6 MB, free: 3.258 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.956e-05/0.2815, allocations: 58.64 kB / 271.6 MB, free: 3.199 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0082/0.2897, allocations: 4.557 MB / 276.2 MB, free: 14.61 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001248/0.291, allocations: 0.6753 MB / 276.9 MB, free: 13.93 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001029/0.292, allocations: 0.6467 MB / 277.5 MB, free: 13.29 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.283e-05/0.2921, allocations: 8.656 kB / 277.5 MB, free: 13.28 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.113e-05/0.2921, allocations: 43.22 kB / 277.6 MB, free: 13.23 MB / 202.7 MB Notification: Performance of pre-optimization done (n=77): time 2.444e-06/0.2921, allocations: 0 / 277.6 MB, free: 13.23 MB / 202.7 MB Notification: Performance of matching and sorting (n=99): time 0.008727/0.3009, allocations: 4.22 MB / 281.8 MB, free: 8.957 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.158e-05/0.3009, allocations: 72.41 kB / 281.8 MB, free: 8.875 MB / 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:1719:9-1721:75:writable] Warning: Parameter aimc.Rr 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:1716:9-1718:75:writable] Warning: Parameter aimc.Lrsigma has no value, and is fixed during initialization (fixed=true), using available start value (start=0.1017764061411688 / (6.283185307179586 * aimc.fsNominal)) as default value. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/Electrical/Machines.mo:1713:9-1715:75:writable] Warning: Parameter aimc.Lm has no value, and is fixed during initialization (fixed=true), using available start value (start=2.898223593858831 / (6.283185307179586 * aimc.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 aimc.Lssigma has no value, and is fixed during initialization (fixed=true), using available start value (start=0.1017764061411688 / (6.283185307179586 * aimc.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 aimc.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 aimc.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 aimc.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 aimc.Js has no value, and is fixed during initialization (fixed=true), using available start value (start=aimc.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 aimc.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.0008881/0.3018, allocations: 0.5313 MB / 282.4 MB, free: 8.336 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 7.425e-05/0.3019, allocations: 25.7 kB / 282.4 MB, free: 8.305 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002615/0.3022, allocations: 467.2 kB / 282.9 MB, free: 7.84 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002849/0.3025, allocations: 327.1 kB / 283.2 MB, free: 7.516 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.46e-05/0.3025, allocations: 0 / 283.2 MB, free: 7.516 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0001829/0.3027, allocations: 394.7 kB / 283.6 MB, free: 7.121 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008295/0.3036, allocations: 0.5759 MB / 284.1 MB, free: 6.543 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008708/0.3044, allocations: 0.658 MB / 284.8 MB, free: 5.867 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009936/0.3054, allocations: 0.6802 MB / 285.5 MB, free: 5.188 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.669e-06/0.3055, allocations: 4 kB / 285.5 MB, free: 5.184 MB / 202.7 MB Notification: Performance of matching and sorting (n=114) (initialization): time 0.003647/0.3091, allocations: 1.995 MB / 287.5 MB, free: 3.18 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.167e-05/0.3091, allocations: 4 kB / 287.5 MB, free: 3.176 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.375e-05/0.3092, allocations: 3.984 kB / 287.5 MB, free: 3.172 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002186/0.3114, allocations: 0.6915 MB / 288.2 MB, free: 2.469 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000922/0.3123, allocations: 163.8 kB / 288.3 MB, free: 2.309 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01093/0.3232, allocations: 7.96 MB / 296.3 MB, free: 9.996 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009253/0.3243, allocations: 39.95 kB / 296.3 MB, free: 9.957 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001694/0.3245, allocations: 27.98 kB / 296.4 MB, free: 9.93 MB / 218.7 MB Warning: Assuming fixed start value for the following 6 variables: loadInertia.w:VARIABLE(unit = "rad/s" ) "Absolute angular velocity of component (= der(phi))" type: Real aimc.idq_rr[2]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "rotor space phasor current / rotor fixed frame" type: Real [2] aimc.idq_rr[1]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "rotor space phasor current / rotor fixed frame" type: Real [2] aimc.idq_sr[2]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "stator space phasor current / rotor fixed frame" type: Real [2] aimc.idq_sr[1]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "stator space phasor current / rotor fixed frame" type: Real [2] aimc.inertiaRotor.phi:VARIABLE(unit = "rad" ) "Absolute rotation angle of component" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (80): * Single equations (assignments): 76 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,92.0%) 23,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004026/0.3249, allocations: 137.1 kB / 296.5 MB, free: 9.793 MB / 218.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002377/0.3251, allocations: 75.06 kB / 296.6 MB, free: 9.719 MB / 218.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003842/0.329, allocations: 1.997 MB / 298.6 MB, free: 7.711 MB / 218.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.265e-05/0.329, allocations: 8 kB / 298.6 MB, free: 7.703 MB / 218.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.875e-05/0.329, allocations: 8 kB / 298.6 MB, free: 7.695 MB / 218.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.413e-05/0.329, allocations: 7.969 kB / 298.6 MB, free: 7.688 MB / 218.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007112/0.3362, allocations: 3.601 MB / 302.2 MB, free: 4.035 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.246e-06/0.3362, allocations: 8 kB / 302.2 MB, free: 4.027 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007788/0.337, allocations: 143.8 kB / 302.3 MB, free: 3.887 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002096/0.3391, allocations: 0.7023 MB / 303 MB, free: 3.172 MB / 218.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.478e-05/0.3392, allocations: 11.92 kB / 303.1 MB, free: 3.16 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009947/0.3492, allocations: 7.802 MB / 310.9 MB, free: 11.02 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.976e-06/0.3492, allocations: 4 kB / 310.9 MB, free: 11.02 MB / 234.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0049/0.3542, allocations: 2.959 MB / 313.8 MB, free: 7.996 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006631/0.3548, allocations: 292.1 kB / 314.1 MB, free: 7.691 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002405/0.3551, allocations: 7.984 kB / 314.1 MB, free: 7.684 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007743/0.3559, allocations: 51.94 kB / 314.2 MB, free: 7.633 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000162/0.3561, allocations: 60.81 kB / 314.2 MB, free: 7.574 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.347e-05/0.3562, allocations: 31.94 kB / 314.2 MB, free: 7.543 MB / 234.7 MB Notification: Performance of sort global known variables: time 0.0006652/0.3568, allocations: 403.1 kB / 314.6 MB, free: 7.152 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001277/0.3581, allocations: 288 kB / 314.9 MB, free: 6.871 MB / 234.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 7 (aimc.inertiaRotor.phi,aimc.idq_sr[1],aimc.idq_sr[2],aimc.idq_rr[1],aimc.idq_rr[2],vfController.x,loadInertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (70): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 1 {(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 3 {(5,92.0%) 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.0002436/0.3584, allocations: 123 kB / 315 MB, free: 6.742 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.003406/0.3618, allocations: 1.971 MB / 317 MB, free: 4.719 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.3618, allocations: 0 / 317 MB, free: 4.719 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002129/0.3639, allocations: 1.315 MB / 318.3 MB, free: 3.348 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001118/0.3651, allocations: 147.9 kB / 318.5 MB, free: 3.203 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005596/0.3707, allocations: 2.665 MB / 321.1 MB, free: 500 kB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.07296/0.4437, allocations: 1.491 MB / 322.6 MB, free: 87.21 MB / 234.7 MB Notification: Performance of SimCode: time 1.273e-06/0.4437, allocations: 0 / 322.6 MB, free: 87.21 MB / 234.7 MB Notification: Performance of Templates: time 0.025/0.4687, allocations: 15.19 MB / 337.8 MB, free: 86.86 MB / 234.7 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.AIMC_Inverter.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.AIMC_Inverter.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.AIMC_Inverter.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.AIMC_Inverter.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.AIMC_Inverter.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.AIMC_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.AIMC_Inverter.pipe 2>&1)