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.712/0.712, allocations: 110.9 MB / 125.9 MB, free: 6.219 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001652/0.001652, allocations: 139.4 kB / 151.8 MB, free: 4.992 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002461/0.0002461, allocations: 8 kB / 184.9 MB, free: 3.922 MB / 154.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1415/0.1418, allocations: 25.15 MB / 210 MB, free: 29.76 MB / 170.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.06101/0.2029, allocations: 46.14 MB / 256.2 MB, free: 3.66 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002768/0.2032, allocations: 67.97 kB / 256.3 MB, free: 3.594 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07384/0.2771, allocations: 28.66 MB / 284.9 MB, free: 6.828 MB / 218.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2771, allocations: 0 / 284.9 MB, free: 6.828 MB / 218.7 MB Notification: Performance of Transformations before backend: time 0.0001052/0.2772, allocations: 43.94 kB / 285 MB, free: 6.785 MB / 218.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.003587/0.2808, allocations: 1.877 MB / 286.8 MB, free: 4.852 MB / 218.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.866e-05/0.2809, allocations: 8.031 kB / 286.8 MB, free: 4.844 MB / 218.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003414/0.2812, allocations: 185.8 kB / 287 MB, free: 4.66 MB / 218.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001973/0.2832, allocations: 1.048 MB / 288.1 MB, free: 3.566 MB / 218.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001026/0.2833, allocations: 127.5 kB / 288.2 MB, free: 3.441 MB / 218.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000248/0.2836, allocations: 163.9 kB / 288.4 MB, free: 3.281 MB / 218.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003559/0.2871, allocations: 2.201 MB / 290.6 MB, free: 1.008 MB / 218.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.093e-05/0.2872, allocations: 3.906 kB / 290.6 MB, free: 1.004 MB / 218.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001655/0.2874, allocations: 71.98 kB / 290.6 MB, free: 0.9336 MB / 218.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.454e-05/0.2875, allocations: 71.25 kB / 290.7 MB, free: 0.8633 MB / 218.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.09629/0.3838, allocations: 1.84 MB / 292.5 MB, free: 49.89 MB / 218.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01129/0.3951, allocations: 6.11 MB / 298.7 MB, free: 49.07 MB / 218.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002133/0.3973, allocations: 1.917 MB / 300.6 MB, free: 48.19 MB / 218.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.06e-05/0.3974, allocations: 17.17 kB / 300.6 MB, free: 48.18 MB / 218.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.47e-05/0.3974, allocations: 43.09 kB / 300.6 MB, free: 48.14 MB / 218.7 MB Notification: Performance of pre-optimization done (n=91): time 3.206e-06/0.3974, allocations: 0 / 300.6 MB, free: 48.14 MB / 218.7 MB Notification: Performance of matching and sorting (n=110): time 0.01301/0.4104, allocations: 6.475 MB / 307.1 MB, free: 46.41 MB / 218.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.463e-05/0.4105, allocations: 64.12 kB / 307.2 MB, free: 46.35 MB / 218.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.0009536/0.4115, allocations: 0.7338 MB / 307.9 MB, free: 46.06 MB / 218.7 MB Notification: Performance of collectPreVariables (initialization): time 8.82e-05/0.4116, allocations: 41.64 kB / 307.9 MB, free: 46.02 MB / 218.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002827/0.4119, allocations: 0.679 MB / 308.6 MB, free: 45.52 MB / 218.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002361/0.4121, allocations: 383 kB / 309 MB, free: 45.23 MB / 218.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.719e-05/0.4122, allocations: 19.94 kB / 309 MB, free: 45.22 MB / 218.7 MB Notification: Performance of setup shared object (initialization): time 8.291e-05/0.4122, allocations: 347.7 kB / 309.4 MB, free: 44.9 MB / 218.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008776/0.4131, allocations: 0.6689 MB / 310 MB, free: 44.66 MB / 218.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008895/0.414, allocations: 0.8225 MB / 310.8 MB, free: 44.28 MB / 218.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000953/0.415, allocations: 0.7949 MB / 311.6 MB, free: 43.96 MB / 218.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.415, allocations: 0 / 311.6 MB, free: 43.96 MB / 218.7 MB Notification: Performance of matching and sorting (n=135) (initialization): time 0.003239/0.4183, allocations: 2.267 MB / 313.9 MB, free: 43.14 MB / 218.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/0.4183, allocations: 9.156 kB / 313.9 MB, free: 43.14 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/0.4183, allocations: 9.625 kB / 313.9 MB, free: 43.14 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001491/0.4198, allocations: 0.64 MB / 314.6 MB, free: 42.97 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008176/0.4206, allocations: 224.5 kB / 314.8 MB, free: 42.96 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00783/0.4285, allocations: 8.853 MB / 323.6 MB, free: 37.03 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008249/0.4293, allocations: 87.94 kB / 323.7 MB, free: 37.01 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.367e-05/0.4294, allocations: 39.03 kB / 323.8 MB, free: 37 MB / 218.7 MB Warning: Assuming fixed start value for the following 6 variables: loadInertia.phi:VARIABLE(unit = "rad" fixed = true ) "Absolute rotation angle of component" type: Real smr.idq_rr[2]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer ) "rotor space phasor current / rotor fixed frame" type: Real [2] smr.idq_rr[1]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer ) "rotor space phasor current / rotor fixed frame" type: Real [2] smr.idq_sr[2]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer ) "stator space phasor current / rotor fixed frame" type: Real [2] smr.idq_sr[1]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer ) "stator space phasor current / rotor fixed frame" type: Real [2] smr.inertiaRotor.w:VARIABLE(unit = "rad/s" fixed = true ) "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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (102): * Single equations (assignments): 99 * 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.000971/0.4304, allocations: 0.601 MB / 324.4 MB, free: 36.69 MB / 218.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001571/0.4306, allocations: 98.97 kB / 324.5 MB, free: 36.64 MB / 218.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003338/0.4339, allocations: 2.225 MB / 326.7 MB, free: 35.77 MB / 218.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.065e-06/0.4339, allocations: 10.84 kB / 326.7 MB, free: 35.77 MB / 218.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.695e-06/0.434, allocations: 8.438 kB / 326.7 MB, free: 35.77 MB / 218.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.188e-06/0.434, allocations: 3.938 kB / 326.7 MB, free: 35.77 MB / 218.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006363/0.4403, allocations: 4.243 MB / 331 MB, free: 33.21 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.889e-06/0.4404, allocations: 0 / 331 MB, free: 33.21 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007181/0.4411, allocations: 174.4 kB / 331.1 MB, free: 33.07 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00145/0.4426, allocations: 0.6322 MB / 331.8 MB, free: 32.58 MB / 218.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.365e-05/0.4426, allocations: 31.5 kB / 331.8 MB, free: 32.55 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007398/0.4501, allocations: 8.675 MB / 340.5 MB, free: 24.33 MB / 218.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.4501, allocations: 7.953 kB / 340.5 MB, free: 24.32 MB / 218.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004283/0.4544, allocations: 3.178 MB / 343.6 MB, free: 21.54 MB / 218.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006945/0.4551, allocations: 324.5 kB / 344 MB, free: 21.24 MB / 218.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00015/0.4553, allocations: 27.61 kB / 344 MB, free: 21.21 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006421/0.4559, allocations: 87.56 kB / 344.1 MB, free: 21.16 MB / 218.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002508/0.4562, allocations: 89.14 kB / 344.2 MB, free: 21.1 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.797e-05/0.4562, allocations: 24 kB / 344.2 MB, free: 21.08 MB / 218.7 MB Notification: Performance of sorting global known variables: time 0.0006868/0.4569, allocations: 0.5502 MB / 344.7 MB, free: 20.56 MB / 218.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4569, allocations: 0.9375 kB / 344.7 MB, free: 20.56 MB / 218.7 MB Notification: Performance of remove unused functions: time 0.001411/0.4584, allocations: 377 kB / 345.1 MB, free: 20.2 MB / 218.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 79 * 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.0002213/0.4586, allocations: 131.7 kB / 345.2 MB, free: 20.06 MB / 218.7 MB Notification: Performance of simCode: created initialization part: time 0.003206/0.4618, allocations: 2.237 MB / 347.5 MB, free: 17.79 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 3.867e-06/0.4618, allocations: 4 kB / 347.5 MB, free: 17.79 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00208/0.4639, allocations: 1.474 MB / 348.9 MB, free: 16.28 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001025/0.465, allocations: 207.8 kB / 349.2 MB, free: 16.09 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004953/0.4699, allocations: 4.324 MB / 353.5 MB, free: 11.8 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001016/0.471, allocations: 1.628 MB / 355.1 MB, free: 10.13 MB / 218.7 MB Notification: Performance of simCode: alias equations: time 0.0007337/0.4717, allocations: 258.5 kB / 355.4 MB, free: 9.887 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002244/0.4719, allocations: 71.42 kB / 355.4 MB, free: 9.816 MB / 218.7 MB Notification: Performance of SimCode: time 1.012e-06/0.4719, allocations: 0 / 355.4 MB, free: 9.816 MB / 218.7 MB Notification: Performance of Templates: time 0.0248/0.4967, allocations: 17.31 MB / 372.7 MB, free: 8.707 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)