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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.8031/0.8031, allocations: 110.8 MB / 123.3 MB, free: 10.75 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001672/0.001672, allocations: 147.5 kB / 149.1 MB, free: 0.957 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 2.714e-05/2.716e-05, allocations: 4 kB / 180.2 MB, free: 17.56 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04499/0.04504, allocations: 25.17 MB / 205.4 MB, free: 8.43 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1739/0.219, allocations: 46.04 MB / 251.4 MB, free: 19.88 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002323/0.2193, allocations: 67.61 kB / 251.5 MB, free: 19.88 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0645/0.2838, allocations: 28.74 MB / 280.2 MB, free: 8.926 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2839, allocations: 0 / 280.2 MB, free: 8.926 MB / 186.7 MB Notification: Performance of Transformations before backend: time 9.966e-05/0.284, allocations: 43.94 kB / 280.3 MB, free: 8.883 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.003299/0.2873, allocations: 1.768 MB / 282.1 MB, free: 7.168 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.2873, allocations: 8.031 kB / 282.1 MB, free: 7.16 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003641/0.2877, allocations: 189.8 kB / 282.2 MB, free: 6.973 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001517/0.2892, allocations: 1.038 MB / 283.3 MB, free: 6.133 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.821e-05/0.2893, allocations: 125.5 kB / 283.4 MB, free: 6.059 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002194/0.2895, allocations: 161.7 kB / 283.6 MB, free: 5.949 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003113/0.2927, allocations: 2.14 MB / 285.7 MB, free: 4.48 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.811e-05/0.2927, allocations: 15.09 kB / 285.7 MB, free: 4.469 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001555/0.2929, allocations: 67.94 kB / 285.8 MB, free: 4.449 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.345e-05/0.293, allocations: 74.5 kB / 285.9 MB, free: 4.379 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002533/0.2955, allocations: 1.749 MB / 287.6 MB, free: 2.84 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009761/0.3053, allocations: 6.107 MB / 293.7 MB, free: 12.61 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002259/0.3076, allocations: 1.858 MB / 295.6 MB, free: 10.58 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009489/0.3086, allocations: 0.6759 MB / 296.2 MB, free: 9.906 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.656e-05/0.3086, allocations: 12.77 kB / 296.3 MB, free: 9.895 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.235e-05/0.3087, allocations: 43.34 kB / 296.3 MB, free: 9.844 MB / 202.7 MB Notification: Performance of pre-optimization done (n=91): time 2.865e-06/0.3087, allocations: 0 / 296.3 MB, free: 9.844 MB / 202.7 MB Notification: Performance of matching and sorting (n=111): time 0.0122/0.3209, allocations: 5.487 MB / 301.8 MB, free: 4.293 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.003e-05/0.321, allocations: 64.41 kB / 301.8 MB, free: 4.219 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: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.001205/0.3222, allocations: 0.7206 MB / 302.6 MB, free: 3.492 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001016/0.3223, allocations: 45.7 kB / 302.6 MB, free: 3.441 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004655/0.3228, allocations: 0.6784 MB / 303.3 MB, free: 2.75 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003719/0.3232, allocations: 378.4 kB / 303.7 MB, free: 2.375 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.26e-05/0.3232, allocations: 20 kB / 303.7 MB, free: 2.355 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.3234, allocations: 357.9 kB / 304 MB, free: 2 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008694/0.3243, allocations: 0.6195 MB / 304.7 MB, free: 1.379 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000991/0.3253, allocations: 0.773 MB / 305.4 MB, free: 0.5586 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001073/0.3263, allocations: 0.7642 MB / 306.2 MB, free: 15.79 MB / 218.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.3264, allocations: 0 / 306.2 MB, free: 15.79 MB / 218.7 MB Notification: Performance of matching and sorting (n=136) (initialization): time 0.003559/0.3299, allocations: 2.182 MB / 308.4 MB, free: 13.6 MB / 218.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.33, allocations: 4 kB / 308.4 MB, free: 13.59 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.161e-05/0.33, allocations: 4 kB / 308.4 MB, free: 13.59 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00158/0.3316, allocations: 0.6446 MB / 309 MB, free: 12.94 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008445/0.3324, allocations: 219.7 kB / 309.2 MB, free: 12.72 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00974/0.3422, allocations: 8.578 MB / 317.8 MB, free: 3.73 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009205/0.3431, allocations: 87.95 kB / 317.9 MB, free: 3.645 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.863e-05/0.3432, allocations: 39.97 kB / 317.9 MB, free: 3.605 MB / 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 (103): * Single equations (assignments): 100 * 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.0003125/0.3436, allocations: 182.3 kB / 318.1 MB, free: 3.422 MB / 218.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001557/0.3437, allocations: 106.7 kB / 318.2 MB, free: 3.316 MB / 218.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003709/0.3474, allocations: 2.138 MB / 320.4 MB, free: 1.156 MB / 218.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.274e-05/0.3475, allocations: 12 kB / 320.4 MB, free: 1.145 MB / 218.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.057e-06/0.3475, allocations: 7.984 kB / 320.4 MB, free: 1.137 MB / 218.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.256e-05/0.3475, allocations: 3.984 kB / 320.4 MB, free: 1.133 MB / 218.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006994/0.3545, allocations: 4.188 MB / 324.6 MB, free: 12.86 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.64e-06/0.3545, allocations: 0 / 324.6 MB, free: 12.86 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007564/0.3553, allocations: 175.9 kB / 324.7 MB, free: 12.69 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001613/0.3569, allocations: 0.6468 MB / 325.4 MB, free: 12.04 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.681e-05/0.357, allocations: 31.92 kB / 325.4 MB, free: 12 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009645/0.3667, allocations: 8.411 MB / 333.8 MB, free: 3.191 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.659e-06/0.3667, allocations: 4 kB / 333.8 MB, free: 3.188 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004808/0.3715, allocations: 3.101 MB / 336.9 MB, free: 12 kB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.1318/0.5034, allocations: 320.3 kB / 337.3 MB, free: 60.2 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001685/0.5036, allocations: 27.34 kB / 337.3 MB, free: 60.2 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000744/0.5044, allocations: 90.64 kB / 337.4 MB, free: 60.2 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002698/0.5047, allocations: 89.44 kB / 337.5 MB, free: 60.2 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.435e-05/0.5047, allocations: 34.75 kB / 337.5 MB, free: 60.2 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0006321/0.5054, allocations: 0.5358 MB / 338 MB, free: 60.09 MB / 234.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5054, allocations: 4.812 kB / 338 MB, free: 60.09 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001268/0.5067, allocations: 375.4 kB / 338.4 MB, free: 60.09 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 (84): * Single equations (assignments): 81 * 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.0002358/0.5069, allocations: 137.3 kB / 338.5 MB, free: 60.01 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.003107/0.51, allocations: 2.143 MB / 340.7 MB, free: 59.66 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.51, allocations: 0 / 340.7 MB, free: 59.66 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002114/0.5122, allocations: 1.429 MB / 342.1 MB, free: 59.3 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001127/0.5133, allocations: 210.6 kB / 342.3 MB, free: 59.29 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004293/0.5176, allocations: 3.019 MB / 345.3 MB, free: 58.65 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009905/0.5186, allocations: 1.626 MB / 347 MB, free: 57.91 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 0.0007365/0.5194, allocations: 256.7 kB / 347.2 MB, free: 57.89 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002341/0.5196, allocations: 71.45 kB / 347.3 MB, free: 57.88 MB / 234.7 MB Notification: Performance of SimCode: time 7.01e-07/0.5196, allocations: 4 kB / 347.3 MB, free: 57.88 MB / 234.7 MB Notification: Performance of Templates: time 0.02389/0.5435, allocations: 17.33 MB / 364.6 MB, free: 57 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)