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.7258/0.7258, allocations: 110.8 MB / 118.3 MB, free: 14.48 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 1.0.0/package.mo): time 0.00168/0.00168, allocations: 163.4 kB / 144 MB, free: 4.789 MB / 122.7 MB Notification: Performance of FrontEnd - loaded program: time 1.58e-05/1.581e-05, allocations: 7.938 kB / 173.9 MB, free: 22.8 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.03455/0.03458, allocations: 25.18 MB / 199 MB, free: 13.7 MB / 154.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.05223/0.08684, allocations: 45.38 MB / 244.4 MB, free: 240 kB / 186.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002377/0.08713, allocations: 63.97 kB / 244.5 MB, free: 176 kB / 186.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1814/0.2686, allocations: 28.42 MB / 272.9 MB, free: 25.4 MB / 186.7 MB Notification: Performance of FrontEnd: time 1.072e-06/0.2686, allocations: 0 / 272.9 MB, free: 25.4 MB / 186.7 MB Notification: Performance of Transformations before backend: time 8.958e-05/0.2687, allocations: 43.94 kB / 272.9 MB, free: 25.36 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.002957/0.2717, allocations: 1.754 MB / 274.7 MB, free: 23.55 MB / 186.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.818e-05/0.2717, allocations: 11.97 kB / 274.7 MB, free: 23.54 MB / 186.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002822/0.272, allocations: 185.8 kB / 274.9 MB, free: 23.36 MB / 186.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001377/0.2734, allocations: 1.048 MB / 275.9 MB, free: 22.27 MB / 186.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.717e-05/0.2735, allocations: 56.34 kB / 276 MB, free: 22.21 MB / 186.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001869/0.2736, allocations: 107.8 kB / 276.1 MB, free: 22.11 MB / 186.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002206/0.2759, allocations: 1.654 MB / 277.8 MB, free: 20.45 MB / 186.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002475/0.2783, allocations: 1.907 MB / 279.7 MB, free: 18.47 MB / 186.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.952e-05/0.2784, allocations: 3.906 kB / 279.7 MB, free: 18.47 MB / 186.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001473/0.2786, allocations: 4 kB / 279.7 MB, free: 18.46 MB / 186.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.98e-05/0.2786, allocations: 79.23 kB / 279.7 MB, free: 18.39 MB / 186.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007809/0.2865, allocations: 5.812 MB / 285.6 MB, free: 12.46 MB / 186.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001717/0.2882, allocations: 1.837 MB / 287.4 MB, free: 10.46 MB / 186.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006989/0.2889, allocations: 0.651 MB / 288 MB, free: 9.809 MB / 186.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.473e-05/0.289, allocations: 12.77 kB / 288.1 MB, free: 9.793 MB / 186.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.162e-05/0.289, allocations: 47.28 kB / 288.1 MB, free: 9.738 MB / 186.7 MB Notification: Performance of pre-optimization done (n=93): time 2.594e-06/0.2891, allocations: 0 / 288.1 MB, free: 9.738 MB / 186.7 MB Notification: Performance of matching and sorting (n=113): time 0.006863/0.2959, allocations: 4.351 MB / 292.5 MB, free: 5.324 MB / 186.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.84e-05/0.296, allocations: 60.72 kB / 292.5 MB, free: 5.254 MB / 186.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.0008482/0.2968, allocations: 0.6552 MB / 293.2 MB, free: 4.598 MB / 186.7 MB Notification: Performance of collectPreVariables (initialization): time 6.716e-05/0.2969, allocations: 25.7 kB / 293.2 MB, free: 4.566 MB / 186.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002815/0.2972, allocations: 0.6744 MB / 293.9 MB, free: 3.879 MB / 186.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002044/0.2974, allocations: 378.3 kB / 294.2 MB, free: 3.504 MB / 186.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.691e-05/0.2975, allocations: 4 kB / 294.2 MB, free: 3.5 MB / 186.7 MB Notification: Performance of setup shared object (initialization): time 0.0001067/0.2976, allocations: 402.7 kB / 294.6 MB, free: 3.098 MB / 186.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006348/0.2982, allocations: 0.6078 MB / 295.2 MB, free: 2.488 MB / 186.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007354/0.299, allocations: 0.759 MB / 296 MB, free: 1.68 MB / 186.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007766/0.2998, allocations: 0.744 MB / 296.7 MB, free: 0.9375 MB / 186.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.999e-06/0.2998, allocations: 0 / 296.7 MB, free: 0.9375 MB / 186.7 MB Notification: Performance of matching and sorting (n=138) (initialization): time 0.003127/0.3029, allocations: 2.103 MB / 298.8 MB, free: 14.81 MB / 202.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.173e-05/0.3029, allocations: 8 kB / 298.9 MB, free: 14.8 MB / 202.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.726e-06/0.303, allocations: 0 / 298.9 MB, free: 14.8 MB / 202.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001524/0.3045, allocations: 0.6295 MB / 299.5 MB, free: 14.17 MB / 202.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008538/0.3054, allocations: 223.7 kB / 299.7 MB, free: 13.95 MB / 202.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009353/0.3147, allocations: 8.243 MB / 307.9 MB, free: 5.352 MB / 202.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001019/0.3158, allocations: 75.8 kB / 308 MB, free: 5.277 MB / 202.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.041e-05/0.3159, allocations: 36.06 kB / 308.1 MB, free: 5.242 MB / 202.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 (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%) 22,(2,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003244/0.3162, allocations: 139.3 kB / 308.2 MB, free: 5.102 MB / 202.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001499/0.3164, allocations: 94.88 kB / 308.3 MB, free: 5.008 MB / 202.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003683/0.3201, allocations: 2.048 MB / 310.3 MB, free: 2.938 MB / 202.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-05/0.3201, allocations: 15.98 kB / 310.3 MB, free: 2.922 MB / 202.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.526e-06/0.3201, allocations: 4 kB / 310.4 MB, free: 2.918 MB / 202.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.297e-05/0.3201, allocations: 7.938 kB / 310.4 MB, free: 2.91 MB / 202.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006201/0.3264, allocations: 3.917 MB / 314.3 MB, free: 14.92 MB / 218.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.38e-06/0.3264, allocations: 0 / 314.3 MB, free: 14.92 MB / 218.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007693/0.3272, allocations: 175.8 kB / 314.4 MB, free: 14.75 MB / 218.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001608/0.3288, allocations: 0.6236 MB / 315.1 MB, free: 14.12 MB / 218.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.559e-05/0.3289, allocations: 19.92 kB / 315.1 MB, free: 14.1 MB / 218.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00916/0.338, allocations: 8.123 MB / 323.2 MB, free: 5.625 MB / 218.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.035e-05/0.3381, allocations: 4 kB / 323.2 MB, free: 5.621 MB / 218.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00485/0.343, allocations: 3.059 MB / 326.3 MB, free: 2.488 MB / 218.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006114/0.3436, allocations: 315.9 kB / 326.6 MB, free: 2.16 MB / 218.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001247/0.3437, allocations: 4 kB / 326.6 MB, free: 2.156 MB / 218.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006362/0.3444, allocations: 67.89 kB / 326.7 MB, free: 2.09 MB / 218.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002287/0.3446, allocations: 97.11 kB / 326.8 MB, free: 1.996 MB / 218.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.298e-05/0.3447, allocations: 35.98 kB / 326.8 MB, free: 1.961 MB / 218.7 MB Notification: Performance of sorting global known variables: time 0.0006608/0.3454, allocations: 491.1 kB / 327.3 MB, free: 1.488 MB / 218.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3454, allocations: 0 / 327.3 MB, free: 1.488 MB / 218.7 MB Notification: Performance of remove unused functions: time 0.001316/0.3467, allocations: 331.9 kB / 327.6 MB, free: 1.164 MB / 218.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 (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,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.0002218/0.3469, allocations: 115.1 kB / 327.7 MB, free: 1.043 MB / 218.7 MB Notification: Performance of simCode: created initialization part: time 0.105/0.452, allocations: 2.081 MB / 329.8 MB, free: 53.18 MB / 218.7 MB Notification: Performance of simCode: created event and clocks part: time 8.025e-06/0.452, allocations: 0 / 329.8 MB, free: 53.18 MB / 218.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002109/0.4541, allocations: 1.373 MB / 331.2 MB, free: 52.84 MB / 218.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001211/0.4554, allocations: 168.8 kB / 331.3 MB, free: 52.84 MB / 218.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00459/0.46, allocations: 2.979 MB / 334.3 MB, free: 52.23 MB / 218.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001232/0.4612, allocations: 1.625 MB / 335.9 MB, free: 51.49 MB / 218.7 MB Notification: Performance of simCode: alias equations: time 0.0007682/0.462, allocations: 264.7 kB / 336.2 MB, free: 51.47 MB / 218.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002271/0.4622, allocations: 69.58 kB / 336.3 MB, free: 51.46 MB / 218.7 MB Notification: Performance of SimCode: time 7.11e-07/0.4622, allocations: 0 / 336.3 MB, free: 51.46 MB / 218.7 MB Notification: Performance of Templates: time 0.02342/0.4857, allocations: 15.79 MB / 352 MB, free: 50.58 MB / 218.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)