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.7208/0.7208, allocations: 110.8 MB / 118.3 MB, free: 14.47 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.001695/0.001695, allocations: 167.3 kB / 144 MB, free: 4.789 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 1.276e-05/1.279e-05, allocations: 7.938 kB / 173.9 MB, free: 22.8 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.03486/0.03489, allocations: 25.17 MB / 199 MB, free: 13.7 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1598/0.1947, allocations: 45.8 MB / 244.8 MB, free: 19.47 MB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001543/0.1949, allocations: 69.73 kB / 244.9 MB, free: 19.47 MB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.06659/0.2615, allocations: 28.78 MB / 273.7 MB, free: 13.66 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.924e-06/0.2616, allocations: 0 / 273.7 MB, free: 13.66 MB / 186.7 MB Notification: Performance of Transformations before backend: time 0.0001366/0.2617, allocations: 46.91 kB / 273.7 MB, free: 13.65 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.004342/0.2661, allocations: 1.787 MB / 275.5 MB, free: 12.57 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.1e-05/0.2661, allocations: 11.56 kB / 275.5 MB, free: 12.57 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008678/0.267, allocations: 189.1 kB / 275.7 MB, free: 12.47 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002302/0.2693, allocations: 1.045 MB / 276.7 MB, free: 11.98 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.757e-05/0.2694, allocations: 55 kB / 276.8 MB, free: 11.98 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003614/0.2698, allocations: 108.6 kB / 276.9 MB, free: 11.96 MB / 186.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003108/0.2729, allocations: 1.673 MB / 278.6 MB, free: 11.81 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003073/0.276, allocations: 1.94 MB / 280.5 MB, free: 10.9 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.454e-05/0.276, allocations: 3.875 kB / 280.5 MB, free: 10.9 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001452/0.2762, allocations: 0 / 280.5 MB, free: 10.9 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.622e-05/0.2763, allocations: 77.27 kB / 280.6 MB, free: 10.89 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008679/0.285, allocations: 5.927 MB / 286.5 MB, free: 5.484 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001604/0.2866, allocations: 1.825 MB / 288.3 MB, free: 3.496 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007312/0.2874, allocations: 0.655 MB / 289 MB, free: 2.84 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.47e-05/0.2875, allocations: 16.77 kB / 289 MB, free: 2.82 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.374e-05/0.2875, allocations: 47.28 kB / 289.1 MB, free: 2.766 MB / 186.7 MB Notification: Performance of pre-optimization done (n=94): time 3.036e-06/0.2875, allocations: 3.938 kB / 289.1 MB, free: 2.762 MB / 186.7 MB Notification: Performance of matching and sorting (n=115): time 0.007973/0.2955, allocations: 4.409 MB / 293.5 MB, free: 14.3 MB / 202.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.575e-05/0.2956, allocations: 68.72 kB / 293.5 MB, free: 14.22 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.001534/0.2971, allocations: 0.6646 MB / 294.2 MB, free: 13.56 MB / 202.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001033/0.2973, allocations: 25.7 kB / 294.2 MB, free: 13.53 MB / 202.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005246/0.2978, allocations: 0.6861 MB / 294.9 MB, free: 12.83 MB / 202.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003271/0.2981, allocations: 378.3 kB / 295.3 MB, free: 12.45 MB / 202.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.243e-05/0.2982, allocations: 0 / 295.3 MB, free: 12.45 MB / 202.7 MB Notification: Performance of setup shared object (initialization): time 0.0002173/0.2984, allocations: 414.7 kB / 295.7 MB, free: 12.04 MB / 202.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008717/0.2993, allocations: 0.6117 MB / 296.3 MB, free: 11.43 MB / 202.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00101/0.3003, allocations: 0.7715 MB / 297.1 MB, free: 10.6 MB / 202.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001029/0.3014, allocations: 0.7596 MB / 297.8 MB, free: 9.844 MB / 202.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.29e-06/0.3014, allocations: 0 / 297.8 MB, free: 9.844 MB / 202.7 MB Notification: Performance of matching and sorting (n=141) (initialization): time 0.003515/0.3049, allocations: 2.126 MB / 300 MB, free: 7.699 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.402e-05/0.3049, allocations: 8 kB / 300 MB, free: 7.691 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.315e-05/0.305, allocations: 4 kB / 300 MB, free: 7.688 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001657/0.3066, allocations: 0.6241 MB / 300.6 MB, free: 7.055 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009455/0.3076, allocations: 227.7 kB / 300.8 MB, free: 6.832 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01014/0.3177, allocations: 8.293 MB / 309.1 MB, free: 14.19 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001094/0.3189, allocations: 71.89 kB / 309.2 MB, free: 14.12 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002161/0.3191, allocations: 40.05 kB / 309.2 MB, free: 14.08 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 (107): * Single equations (assignments): 104 * 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.0004631/0.3196, allocations: 143.6 kB / 309.4 MB, free: 13.94 MB / 218.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003372/0.3199, allocations: 102.8 kB / 309.5 MB, free: 13.84 MB / 218.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003943/0.3239, allocations: 2.075 MB / 311.5 MB, free: 11.74 MB / 218.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.584e-05/0.3239, allocations: 15.98 kB / 311.6 MB, free: 11.73 MB / 218.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.476e-05/0.3239, allocations: 4 kB / 311.6 MB, free: 11.72 MB / 218.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.472e-05/0.324, allocations: 7.938 kB / 311.6 MB, free: 11.71 MB / 218.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007916/0.3319, allocations: 3.945 MB / 315.5 MB, free: 7.723 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.733e-06/0.3319, allocations: 0 / 315.5 MB, free: 7.723 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008032/0.3327, allocations: 183.9 kB / 315.7 MB, free: 7.543 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001721/0.3345, allocations: 0.6429 MB / 316.3 MB, free: 6.891 MB / 218.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001011/0.3346, allocations: 11.98 kB / 316.3 MB, free: 6.879 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009721/0.3443, allocations: 8.152 MB / 324.5 MB, free: 14.38 MB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.376e-06/0.3444, allocations: 4 kB / 324.5 MB, free: 14.38 MB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005071/0.3495, allocations: 3.094 MB / 327.6 MB, free: 11.21 MB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007992/0.3503, allocations: 323.8 kB / 327.9 MB, free: 10.88 MB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002392/0.3506, allocations: 15.98 kB / 327.9 MB, free: 10.86 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007518/0.3513, allocations: 67.89 kB / 328 MB, free: 10.79 MB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002412/0.3516, allocations: 89.19 kB / 328.1 MB, free: 10.71 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.682e-05/0.3517, allocations: 35.94 kB / 328.1 MB, free: 10.67 MB / 234.7 MB Notification: Performance of sorting global known variables: time 0.0007591/0.3524, allocations: 0.4913 MB / 328.6 MB, free: 10.19 MB / 234.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3524, allocations: 0 / 328.6 MB, free: 10.19 MB / 234.7 MB Notification: Performance of remove unused functions: time 0.001403/0.3539, allocations: 336 kB / 328.9 MB, free: 9.859 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 (86): * Single equations (assignments): 83 * 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.0002337/0.3541, allocations: 115.9 kB / 329.1 MB, free: 9.738 MB / 234.7 MB Notification: Performance of simCode: created initialization part: time 0.003345/0.3574, allocations: 2.095 MB / 331.1 MB, free: 7.605 MB / 234.7 MB Notification: Performance of simCode: created event and clocks part: time 3.416e-06/0.3575, allocations: 0 / 331.1 MB, free: 7.605 MB / 234.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00215/0.3596, allocations: 1.381 MB / 332.5 MB, free: 6.199 MB / 234.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001185/0.3608, allocations: 183 kB / 332.7 MB, free: 6.016 MB / 234.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0056/0.3664, allocations: 2.999 MB / 335.7 MB, free: 2.969 MB / 234.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00157/0.368, allocations: 1.645 MB / 337.4 MB, free: 1.293 MB / 234.7 MB Notification: Performance of simCode: alias equations: time 0.0009118/0.369, allocations: 268.1 kB / 337.6 MB, free: 1.027 MB / 234.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002819/0.3693, allocations: 71.42 kB / 337.7 MB, free: 0.957 MB / 234.7 MB Notification: Performance of SimCode: time 6.01e-07/0.3693, allocations: 0 / 337.7 MB, free: 0.957 MB / 234.7 MB Notification: Performance of Templates: time 0.1307/0.5, allocations: 15.93 MB / 353.6 MB, free: 63.3 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)