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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.1.0+maint.om/package.mo): time 0.6971/0.6971, allocations: 110.9 MB / 125.9 MB, free: 6.195 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001671/0.001671, allocations: 146.5 kB / 151.8 MB, free: 4.977 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002554/0.0002554, allocations: 4 kB / 184.9 MB, free: 3.91 MB / 154.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1453/0.1456, allocations: 25.15 MB / 210 MB, free: 29.75 MB / 170.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.05845/0.2041, allocations: 46.57 MB / 256.6 MB, free: 3.227 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001878/0.2043, allocations: 67.97 kB / 256.7 MB, free: 3.16 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07409/0.2784, allocations: 29.02 MB / 285.7 MB, free: 6.043 MB / 218.7 MB Notification: Performance of FrontEnd: time 2.565e-06/0.2784, allocations: 3.938 kB / 285.7 MB, free: 6.039 MB / 218.7 MB Notification: Performance of Transformations before backend: time 0.0001114/0.2786, allocations: 43.94 kB / 285.7 MB, free: 5.996 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: 422 * Number of variables: 422 Notification: Performance of Generate backend data structure: time 0.004147/0.2827, allocations: 1.908 MB / 287.7 MB, free: 4.027 MB / 218.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.955e-05/0.2828, allocations: 12.03 kB / 287.7 MB, free: 4.016 MB / 218.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004845/0.2833, allocations: 185.8 kB / 287.9 MB, free: 3.832 MB / 218.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002152/0.2854, allocations: 1.059 MB / 288.9 MB, free: 2.727 MB / 218.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.873e-05/0.2855, allocations: 127.5 kB / 289 MB, free: 2.602 MB / 218.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002557/0.2858, allocations: 164 kB / 289.2 MB, free: 2.441 MB / 218.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003707/0.2895, allocations: 2.229 MB / 291.4 MB, free: 144 kB / 218.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.027e-05/0.2896, allocations: 3.938 kB / 291.4 MB, free: 140 kB / 218.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001587/0.2897, allocations: 68 kB / 291.5 MB, free: 72 kB / 218.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.09576/0.3855, allocations: 75.16 kB / 291.6 MB, free: 49.99 MB / 218.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00434/0.3899, allocations: 1.859 MB / 293.4 MB, free: 49.97 MB / 218.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009619/0.3995, allocations: 6.223 MB / 299.6 MB, free: 49.12 MB / 218.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002015/0.4016, allocations: 1.9 MB / 301.6 MB, free: 48.23 MB / 218.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.793e-05/0.4016, allocations: 17.25 kB / 301.6 MB, free: 48.23 MB / 218.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.235e-05/0.4017, allocations: 44.73 kB / 301.6 MB, free: 48.2 MB / 218.7 MB Notification: Performance of pre-optimization done (n=92): time 2.545e-06/0.4017, allocations: 0 / 301.6 MB, free: 48.2 MB / 218.7 MB Notification: Performance of matching and sorting (n=112): time 0.01314/0.4148, allocations: 6.746 MB / 308.4 MB, free: 46.14 MB / 218.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.066e-05/0.4149, allocations: 63.81 kB / 308.4 MB, free: 46.08 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: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.001001/0.4159, allocations: 0.7426 MB / 309.2 MB, free: 45.78 MB / 218.7 MB Notification: Performance of collectPreVariables (initialization): time 7.671e-05/0.416, allocations: 44.3 kB / 309.2 MB, free: 45.74 MB / 218.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002874/0.4163, allocations: 0.687 MB / 309.9 MB, free: 45.24 MB / 218.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002044/0.4165, allocations: 386.8 kB / 310.3 MB, free: 44.95 MB / 218.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.609e-05/0.4166, allocations: 23.91 kB / 310.3 MB, free: 44.93 MB / 218.7 MB Notification: Performance of setup shared object (initialization): time 7.338e-05/0.4166, allocations: 358.6 kB / 310.6 MB, free: 44.6 MB / 218.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008341/0.4175, allocations: 0.6674 MB / 311.3 MB, free: 44.37 MB / 218.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008853/0.4184, allocations: 0.8441 MB / 312.2 MB, free: 43.97 MB / 218.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009761/0.4194, allocations: 0.8022 MB / 313 MB, free: 43.65 MB / 218.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.4194, allocations: 2.156 kB / 313 MB, free: 43.65 MB / 218.7 MB Notification: Performance of matching and sorting (n=138) (initialization): time 0.003301/0.4227, allocations: 2.292 MB / 315.3 MB, free: 42.83 MB / 218.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.4227, allocations: 6.438 kB / 315.3 MB, free: 42.83 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.172e-05/0.4227, allocations: 3.969 kB / 315.3 MB, free: 42.83 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001469/0.4242, allocations: 0.6467 MB / 315.9 MB, free: 42.65 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008498/0.4251, allocations: 219.8 kB / 316.1 MB, free: 42.65 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008266/0.4333, allocations: 8.887 MB / 325 MB, free: 36.71 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008803/0.4343, allocations: 99.19 kB / 325.1 MB, free: 36.68 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.871e-05/0.4344, allocations: 39.75 kB / 325.1 MB, free: 36.67 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 smpm.idq_rr[2]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer ) "rotor space phasor current / rotor fixed frame" type: Real [2] smpm.idq_rr[1]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer ) "rotor space phasor current / rotor fixed frame" type: Real [2] smpm.idq_sr[2]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer ) "stator space phasor current / rotor fixed frame" type: Real [2] smpm.idq_sr[1]:VARIABLE(unit = "A" fixed = true stateSelect=StateSelect.prefer ) "stator space phasor current / rotor fixed frame" type: Real [2] smpm.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: 17 * 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 (104): * Single equations (assignments): 101 * 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.001087/0.4354, allocations: 0.6084 MB / 325.8 MB, free: 36.35 MB / 218.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001553/0.4356, allocations: 96.91 kB / 325.8 MB, free: 36.3 MB / 218.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003474/0.4391, allocations: 2.242 MB / 328.1 MB, free: 35.44 MB / 218.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.626e-06/0.4391, allocations: 10.62 kB / 328.1 MB, free: 35.44 MB / 218.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.035e-06/0.4391, allocations: 10.03 kB / 328.1 MB, free: 35.43 MB / 218.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.044e-05/0.4391, allocations: 6.703 kB / 328.1 MB, free: 35.43 MB / 218.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006407/0.4456, allocations: 4.29 MB / 332.4 MB, free: 32.02 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.48e-06/0.4456, allocations: 0 / 332.4 MB, free: 32.02 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006963/0.4463, allocations: 177.3 kB / 332.6 MB, free: 31.88 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001469/0.4478, allocations: 0.646 MB / 333.2 MB, free: 31.37 MB / 218.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.115e-05/0.4479, allocations: 31.47 kB / 333.3 MB, free: 31.34 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007561/0.4554, allocations: 8.713 MB / 342 MB, free: 23.09 MB / 218.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.4555, allocations: 0 / 342 MB, free: 23.09 MB / 218.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0042/0.4597, allocations: 3.219 MB / 345.2 MB, free: 20.28 MB / 218.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000538/0.4602, allocations: 328.6 kB / 345.5 MB, free: 19.97 MB / 218.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001323/0.4604, allocations: 33.11 kB / 345.5 MB, free: 19.94 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006227/0.461, allocations: 83.91 kB / 345.6 MB, free: 19.86 MB / 218.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002008/0.4612, allocations: 84.88 kB / 345.7 MB, free: 19.77 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.85e-05/0.4613, allocations: 32.55 kB / 345.7 MB, free: 19.74 MB / 218.7 MB Notification: Performance of sorting global known variables: time 0.0006121/0.4619, allocations: 0.5615 MB / 346.3 MB, free: 19.19 MB / 218.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4619, allocations: 0 / 346.3 MB, free: 19.19 MB / 218.7 MB Notification: Performance of remove unused functions: time 0.001269/0.4632, allocations: 377.8 kB / 346.7 MB, free: 18.82 MB / 218.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (83): * Single equations (assignments): 80 * 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,(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.0002151/0.4634, allocations: 144.2 kB / 346.8 MB, free: 18.67 MB / 218.7 MB Notification: Performance of simCode: created initialization part: time 0.003152/0.4666, allocations: 2.25 MB / 349.1 MB, free: 16.38 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/0.4666, allocations: 7.625 kB / 349.1 MB, free: 16.38 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00198/0.4686, allocations: 1.475 MB / 350.5 MB, free: 14.87 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00104/0.4696, allocations: 211.6 kB / 350.7 MB, free: 14.67 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004824/0.4745, allocations: 4.378 MB / 355.1 MB, free: 10.32 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009628/0.4755, allocations: 1.641 MB / 356.8 MB, free: 8.645 MB / 218.7 MB Notification: Performance of simCode: alias equations: time 0.0007606/0.4762, allocations: 258.4 kB / 357 MB, free: 8.398 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002129/0.4764, allocations: 70.81 kB / 357.1 MB, free: 8.332 MB / 218.7 MB Notification: Performance of SimCode: time 1.082e-06/0.4765, allocations: 4 kB / 357.1 MB, free: 8.328 MB / 218.7 MB Notification: Performance of Templates: time 0.02872/0.5052, allocations: 17.49 MB / 374.6 MB, free: 7.059 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)