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.781/0.781, allocations: 110.8 MB / 123.3 MB, free: 10.8 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001462/0.001461, allocations: 147.5 kB / 149.1 MB, free: 1.008 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 3.161e-05/3.164e-05, allocations: 0 / 180.2 MB, free: 17.57 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0652/0.06526, allocations: 25.17 MB / 205.4 MB, free: 8.453 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2431/0.3084, allocations: 46.48 MB / 251.9 MB, free: 20.07 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002465/0.3087, allocations: 64.03 kB / 251.9 MB, free: 20.07 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09479/0.4035, allocations: 29.1 MB / 281 MB, free: 8.527 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4036, allocations: 0 / 281 MB, free: 8.527 MB / 186.7 MB Notification: Performance of Transformations before backend: time 0.0001282/0.4037, allocations: 43.94 kB / 281.1 MB, free: 8.484 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.00511/0.4088, allocations: 1.78 MB / 282.9 MB, free: 6.758 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.536e-05/0.4089, allocations: 8.031 kB / 282.9 MB, free: 6.75 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005634/0.4095, allocations: 193.8 kB / 283.1 MB, free: 6.559 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002647/0.4121, allocations: 1.05 MB / 284.1 MB, free: 5.711 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001129/0.4123, allocations: 127.2 kB / 284.2 MB, free: 5.633 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003662/0.4127, allocations: 169.7 kB / 284.4 MB, free: 5.52 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005123/0.4178, allocations: 2.161 MB / 286.6 MB, free: 4.016 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.049e-05/0.4179, allocations: 0 / 286.6 MB, free: 4.016 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002363/0.4181, allocations: 72 kB / 286.6 MB, free: 3.945 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001034/0.4183, allocations: 79.23 kB / 286.7 MB, free: 3.867 MB / 186.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004168/0.4224, allocations: 1.77 MB / 288.5 MB, free: 2.094 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01647/0.4389, allocations: 6.227 MB / 294.7 MB, free: 11.74 MB / 202.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003595/0.4426, allocations: 1.857 MB / 296.6 MB, free: 9.707 MB / 202.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001674/0.4443, allocations: 0.6713 MB / 297.2 MB, free: 9.035 MB / 202.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001048/0.4444, allocations: 24.77 kB / 297.2 MB, free: 9.012 MB / 202.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.986e-05/0.4445, allocations: 43.28 kB / 297.3 MB, free: 8.961 MB / 202.7 MB Notification: Performance of pre-optimization done (n=92): time 4.529e-06/0.4445, allocations: 0 / 297.3 MB, free: 8.961 MB / 202.7 MB Notification: Performance of matching and sorting (n=113): time 0.02195/0.4665, allocations: 5.735 MB / 303 MB, free: 3.16 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.334e-05/0.4666, allocations: 64.41 kB / 303.1 MB, free: 3.086 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: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.001761/0.4683, allocations: 0.7479 MB / 303.8 MB, free: 2.332 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001419/0.4685, allocations: 41.7 kB / 303.9 MB, free: 2.285 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007069/0.4692, allocations: 0.6862 MB / 304.6 MB, free: 1.586 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005415/0.4698, allocations: 394.2 kB / 305 MB, free: 1.195 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001048/0.4699, allocations: 20 kB / 305 MB, free: 1.176 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0001946/0.4701, allocations: 349.9 kB / 305.3 MB, free: 0.8281 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001603/0.4717, allocations: 0.639 MB / 306 MB, free: 192 kB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00181/0.4736, allocations: 0.7856 MB / 306.7 MB, free: 15.35 MB / 218.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001913/0.4755, allocations: 0.7681 MB / 307.5 MB, free: 14.58 MB / 218.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.4755, allocations: 0 / 307.5 MB, free: 14.58 MB / 218.7 MB Notification: Performance of matching and sorting (n=139) (initialization): time 0.006498/0.4821, allocations: 2.216 MB / 309.7 MB, free: 12.35 MB / 218.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.804e-05/0.4821, allocations: 7.125 kB / 309.7 MB, free: 12.35 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.666e-05/0.4821, allocations: 4 kB / 309.7 MB, free: 12.34 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002632/0.4848, allocations: 0.6436 MB / 310.4 MB, free: 11.69 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001551/0.4864, allocations: 227.6 kB / 310.6 MB, free: 11.47 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01592/0.5023, allocations: 8.624 MB / 319.2 MB, free: 2.438 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001516/0.5039, allocations: 91.95 kB / 319.3 MB, free: 2.348 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001497/0.504, allocations: 47.92 kB / 319.4 MB, free: 2.301 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 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 (105): * Single equations (assignments): 102 * 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.0004662/0.5045, allocations: 170.8 kB / 319.5 MB, free: 2.125 MB / 218.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002907/0.5048, allocations: 102.7 kB / 319.6 MB, free: 2.023 MB / 218.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006224/0.5111, allocations: 2.151 MB / 321.8 MB, free: 15.85 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.898e-05/0.5111, allocations: 12 kB / 321.8 MB, free: 15.84 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.576e-05/0.5111, allocations: 11.94 kB / 321.8 MB, free: 15.83 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.123e-05/0.5112, allocations: 7.969 kB / 321.8 MB, free: 15.82 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01125/0.5224, allocations: 4.236 MB / 326 MB, free: 11.5 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.797e-06/0.5225, allocations: 160 / 326 MB, free: 11.5 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001192/0.5237, allocations: 187.7 kB / 326.2 MB, free: 11.32 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002604/0.5263, allocations: 0.639 MB / 326.9 MB, free: 10.67 MB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001417/0.5265, allocations: 31.98 kB / 326.9 MB, free: 10.64 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01605/0.5425, allocations: 8.453 MB / 335.3 MB, free: 1.781 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.771e-06/0.5426, allocations: 11.88 kB / 335.4 MB, free: 1.77 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1676/0.7102, allocations: 3.142 MB / 338.5 MB, free: 59.31 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008991/0.7111, allocations: 322.9 kB / 338.8 MB, free: 59.22 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001896/0.7113, allocations: 27.81 kB / 338.8 MB, free: 59.22 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009007/0.7122, allocations: 93.31 kB / 338.9 MB, free: 59.22 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002881/0.7125, allocations: 81.66 kB / 339 MB, free: 59.22 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000108/0.7126, allocations: 36.56 kB / 339.1 MB, free: 59.22 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.001006/0.7136, allocations: 0.5569 MB / 339.6 MB, free: 59.12 MB / 234.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.7137, allocations: 0 / 339.6 MB, free: 59.12 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001633/0.7153, allocations: 384.8 kB / 340 MB, free: 59.12 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 (85): * Single equations (assignments): 82 * 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.0002274/0.7155, allocations: 139.6 kB / 340.1 MB, free: 59.03 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.004205/0.7197, allocations: 2.165 MB / 342.3 MB, free: 58.68 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.7198, allocations: 3.391 kB / 342.3 MB, free: 58.68 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002832/0.7226, allocations: 1.427 MB / 343.7 MB, free: 58.32 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001493/0.7241, allocations: 212.6 kB / 343.9 MB, free: 58.32 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006039/0.7302, allocations: 3.055 MB / 347 MB, free: 57.66 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001455/0.7316, allocations: 1.637 MB / 348.6 MB, free: 56.92 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 0.001011/0.7327, allocations: 267.3 kB / 348.9 MB, free: 56.9 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003015/0.733, allocations: 74.72 kB / 349 MB, free: 56.89 MB / 234.7 MB Notification: Performance of SimCode: time 1.163e-06/0.733, allocations: 0 / 349 MB, free: 56.89 MB / 234.7 MB Notification: Performance of Templates: time 0.03331/0.7663, allocations: 17.5 MB / 366.4 MB, free: 56.01 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)