Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.idq_sr.1.|smpm.idq_sr.2.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") translateModel(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=4000,variableFilter="time|inertiaLoad.phi|inertiaLoad.w|smpm.idq_sr.1.|smpm.idq_sr.2.|dqCurrentController.PI_d.x|dqCurrentController.PI_q.x",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001012/0.001012, allocations: 179.8 kB / 14.15 MB, free: 1.176 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.256/1.256, allocations: 221.4 MB / 236 MB, free: 2.996 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008535/0.0008536, allocations: 87.81 kB / 287 MB, free: 256 kB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1782/0.1782, allocations: 44.15 MB / 382 MB, free: 14.68 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.942e-05/2.944e-05, allocations: 4.219 kB / 451.8 MB, free: 9.438 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1221/0.1221, allocations: 61.91 MB / 0.5017 GB, free: 11.46 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4239/0.5461, allocations: 123.5 MB / 0.6223 GB, free: 13.81 MB / 442.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002584/0.5464, allocations: 79.95 kB / 0.6223 GB, free: 13.73 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1637/0.7101, allocations: 62.28 MB / 0.6832 GB, free: 15.09 MB / 0.4948 GB Notification: Performance of FrontEnd: time 2.355e-06/0.7102, allocations: 0 / 0.6832 GB, free: 15.09 MB / 0.4948 GB Notification: Performance of Transformations before backend: time 0.0003734/0.7106, allocations: 87.88 kB / 0.6832 GB, free: 15.01 MB / 0.4948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 745 * Number of variables: 745 Notification: Performance of Generate backend data structure: time 0.007414/0.718, allocations: 2.919 MB / 0.6861 GB, free: 12.02 MB / 0.4948 GB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.7181, allocations: 8.031 kB / 0.6861 GB, free: 12.02 MB / 0.4948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001566/0.7196, allocations: 407.5 kB / 0.6865 GB, free: 11.61 MB / 0.4948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004653/0.7243, allocations: 2.153 MB / 0.6886 GB, free: 9.406 MB / 0.4948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001576/0.7245, allocations: 214 kB / 0.6888 GB, free: 9.195 MB / 0.4948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000501/0.725, allocations: 287.8 kB / 0.6891 GB, free: 8.914 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006936/0.7319, allocations: 3.621 MB / 0.6926 GB, free: 5.148 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.052e-05/0.732, allocations: 11.84 kB / 0.6926 GB, free: 5.137 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000325/0.7324, allocations: 120 kB / 0.6927 GB, free: 5.02 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001707/0.7326, allocations: 137.5 kB / 0.6929 GB, free: 4.883 MB / 0.4948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005897/0.7385, allocations: 2.911 MB / 0.6957 GB, free: 1.961 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01796/0.7564, allocations: 11.65 MB / 0.7071 GB, free: 6.012 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00351/0.76, allocations: 2.182 MB / 0.7092 GB, free: 3.707 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001427/0.7615, allocations: 1.071 MB / 0.7103 GB, free: 2.637 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003488/0.7618, allocations: 219.5 kB / 0.7105 GB, free: 2.383 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.37e-05/0.7619, allocations: 47.88 kB / 0.7105 GB, free: 2.328 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=142): time 3.557e-06/0.7619, allocations: 0 / 0.7105 GB, free: 2.328 MB / 0.5105 GB Notification: Performance of matching and sorting (n=156): time 0.2819/1.044, allocations: 6.06 MB / 0.7164 GB, free: 131.5 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.868e-05/1.044, allocations: 72.16 kB / 0.7165 GB, free: 131.4 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002837/1.047, allocations: 1.694 MB / 0.7181 GB, free: 131.2 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001227/1.047, allocations: 55.11 kB / 0.7182 GB, free: 131.1 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009401/1.048, allocations: 1.365 MB / 0.7195 GB, free: 130.7 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004084/1.048, allocations: 0.5267 MB / 0.72 GB, free: 130.4 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.294e-05/1.048, allocations: 36.25 kB / 0.7201 GB, free: 130.4 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001116/1.048, allocations: 379.6 kB / 0.7204 GB, free: 130.1 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001377/1.05, allocations: 0.8696 MB / 0.7213 GB, free: 130.1 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001753/1.052, allocations: 1.311 MB / 0.7226 GB, free: 129.6 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001761/1.053, allocations: 1.097 MB / 0.7236 GB, free: 129.6 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.128e-05/1.053, allocations: 3.031 kB / 0.7236 GB, free: 129.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.004975/1.058, allocations: 2.894 MB / 0.7265 GB, free: 129.4 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 3.231e-05/1.058, allocations: 13.95 kB / 0.7265 GB, free: 129.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.861e-05/1.058, allocations: 14.83 kB / 0.7265 GB, free: 129.4 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001107/1.06, allocations: 444.3 kB / 0.7269 GB, free: 129.4 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00176/1.061, allocations: 460.4 kB / 0.7274 GB, free: 129.4 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006536/1.068, allocations: 7.038 MB / 0.7342 GB, free: 125.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001985/1.07, allocations: 133 kB / 0.7344 GB, free: 125.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002232/1.07, allocations: 73.52 kB / 0.7344 GB, free: 125.4 MB / 0.5105 GB Warning: Assuming fixed start value for the following 1 variables: smpm.idq_sr[2]:VARIABLE(unit = "A" stateSelect=StateSelect.prefer ) "Stator space phasor current / rotor fixed frame" type: Real [2] Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (204): * Single equations (assignments): 201 * 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 {(2,100.0%) 9,(1,100.0%) 2,(2,100.0%) 9} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004465/1.071, allocations: 208.7 kB / 0.7346 GB, free: 125.3 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000443/1.071, allocations: 205.1 kB / 0.7348 GB, free: 125.2 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005789/1.077, allocations: 2.961 MB / 0.7377 GB, free: 125.1 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.988e-05/1.077, allocations: 22.03 kB / 0.7377 GB, free: 125.1 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.572e-05/1.077, allocations: 7.969 kB / 0.7377 GB, free: 125.1 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.23e-05/1.077, allocations: 11.41 kB / 0.7378 GB, free: 125.1 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01003/1.087, allocations: 6.128 MB / 0.7437 GB, free: 123.6 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.606e-06/1.087, allocations: 3.812 kB / 0.7437 GB, free: 123.6 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009576/1.088, allocations: 229.6 kB / 0.744 GB, free: 123.6 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00187/1.09, allocations: 0.8327 MB / 0.7448 GB, free: 123.3 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001133/1.09, allocations: 35.23 kB / 0.7448 GB, free: 123.3 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0102/1.1, allocations: 10.2 MB / 0.7548 GB, free: 116.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.031e-06/1.1, allocations: 10.39 kB / 0.7548 GB, free: 116.8 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00656/1.107, allocations: 4.39 MB / 0.7591 GB, free: 114.8 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001473/1.108, allocations: 0.4928 MB / 0.7595 GB, free: 114.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005983/1.109, allocations: 31.84 kB / 0.7596 GB, free: 114.4 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001485/1.11, allocations: 105.5 kB / 0.7597 GB, free: 114.4 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003537/1.111, allocations: 125.9 kB / 0.7598 GB, free: 114.4 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001154/1.111, allocations: 46.83 kB / 0.7598 GB, free: 114.4 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001939/1.113, allocations: 1.297 MB / 0.7611 GB, free: 113.9 MB / 0.5105 GB Notification: Performance of sort global known variables: time 2.1e-07/1.113, allocations: 0 / 0.7611 GB, free: 113.9 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.002441/1.115, allocations: 0.6288 MB / 0.7617 GB, free: 113.8 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 7 (smpm.inertiaRotor.w,smpm.i_0_s,smpm.idq_sr[1],smpm.idq_sr[2],quadraticSpeedDependentTorque.phi,dqCurrentController.PI_d.x,dqCurrentController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (113): * Single equations (assignments): 110 * 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 {(2,100.0%) 9,(1,100.0%) 2,(3,88.9%) 34} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006745/1.116, allocations: 404.8 kB / 0.7621 GB, free: 113.7 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.003391/1.119, allocations: 2.616 MB / 0.7647 GB, free: 112.6 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.218e-06/1.119, allocations: 0 / 0.7647 GB, free: 112.6 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001907/1.121, allocations: 1.645 MB / 0.7663 GB, free: 111.7 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002587/1.124, allocations: 494 kB / 0.7667 GB, free: 111.6 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008818/1.133, allocations: 4.736 MB / 0.7714 GB, free: 109.7 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002198/1.135, allocations: 2.275 MB / 0.7736 GB, free: 108.7 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.001823/1.137, allocations: 464.9 kB / 0.774 GB, free: 108.6 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006439/1.138, allocations: 153 kB / 0.7742 GB, free: 108.6 MB / 0.5105 GB Notification: Performance of SimCode: time 1.082e-06/1.138, allocations: 0 / 0.7742 GB, free: 108.6 MB / 0.5105 GB Notification: Performance of Templates: time 0.05435/1.192, allocations: 34.92 MB / 0.8083 GB, free: 95.38 MB / 0.5105 GB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.makefile (rm -f ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & ./ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1)