Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") translateModel(ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001658/0.001658, allocations: 187.4 kB / 7.654 MB, free: 1.402 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.592/1.592, allocations: 194.3 MB / 202.4 MB, free: 8.547 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001676/0.001676, allocations: 114.4 kB / 247.4 MB, free: 6.234 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.1867/0.1867, allocations: 39.94 MB / 332.2 MB, free: 4.773 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 1.309e-05/1.312e-05, allocations: 0 / 393.3 MB, free: 75.54 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08907/0.0891, allocations: 54.87 MB / 448.2 MB, free: 20.66 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3802/0.4693, allocations: 116.8 MB / 0.5517 GB, free: 15.75 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002624/0.4696, allocations: 80.52 kB / 0.5518 GB, free: 15.71 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1924/0.6621, allocations: 60.99 MB / 0.6114 GB, free: 10.47 MB / 426.7 MB Notification: Performance of FrontEnd: time 2.615e-06/0.6621, allocations: 7.938 kB / 0.6114 GB, free: 10.46 MB / 426.7 MB Notification: Performance of Transformations before backend: time 0.0002683/0.6624, allocations: 83.88 kB / 0.6115 GB, free: 10.38 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 742 * Number of variables: 742 Notification: Performance of Generate backend data structure: time 0.007218/0.6696, allocations: 2.892 MB / 0.6143 GB, free: 7.426 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.129e-05/0.6697, allocations: 16.02 kB / 0.6143 GB, free: 7.41 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001827/0.6715, allocations: 403.9 kB / 0.6147 GB, free: 7.012 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005183/0.6767, allocations: 2.145 MB / 0.6168 GB, free: 4.812 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001235/0.6768, allocations: 92 kB / 0.6169 GB, free: 4.723 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004561/0.6773, allocations: 171.9 kB / 0.617 GB, free: 4.555 MB / 426.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005051/0.6824, allocations: 2.721 MB / 0.6197 GB, free: 1.828 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00551/0.6879, allocations: 3.211 MB / 0.6228 GB, free: 14.47 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.987e-05/0.688, allocations: 15.92 kB / 0.6228 GB, free: 14.46 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002213/0.6882, allocations: 4 kB / 0.6228 GB, free: 14.45 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001424/0.6884, allocations: 133.4 kB / 0.623 GB, free: 14.32 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01835/0.7067, allocations: 11.05 MB / 0.6338 GB, free: 2.988 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00347/0.7102, allocations: 2.174 MB / 0.6359 GB, free: 0.6992 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001386/0.7117, allocations: 1.036 MB / 0.6369 GB, free: 15.66 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003774/0.7121, allocations: 227.4 kB / 0.6371 GB, free: 15.4 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.187e-05/0.7121, allocations: 47.88 kB / 0.6372 GB, free: 15.34 MB / 458.7 MB Notification: Performance of pre-optimization done (n=147): time 3.497e-06/0.7121, allocations: 4 kB / 0.6372 GB, free: 15.34 MB / 458.7 MB Notification: Performance of matching and sorting (n=161): time 0.01031/0.7224, allocations: 5.562 MB / 0.6426 GB, free: 9.719 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.749e-05/0.7225, allocations: 76.66 kB / 0.6427 GB, free: 9.633 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002162/0.7247, allocations: 1.431 MB / 0.6441 GB, free: 8.203 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001666/0.7248, allocations: 29.64 kB / 0.6441 GB, free: 8.168 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009082/0.7258, allocations: 1.35 MB / 0.6454 GB, free: 6.801 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004643/0.7262, allocations: 0.5156 MB / 0.6459 GB, free: 6.277 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.096e-05/0.7263, allocations: 0 / 0.6459 GB, free: 6.277 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001747/0.7265, allocations: 385.9 kB / 0.6463 GB, free: 5.895 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001241/0.7278, allocations: 0.8474 MB / 0.6471 GB, free: 5.047 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001561/0.7293, allocations: 1.281 MB / 0.6484 GB, free: 3.586 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001557/0.7309, allocations: 1.081 MB / 0.6494 GB, free: 2.508 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.847e-06/0.7309, allocations: 4 kB / 0.6494 GB, free: 2.504 MB / 458.7 MB Notification: Performance of matching and sorting (n=231) (initialization): time 0.004719/0.7356, allocations: 2.731 MB / 0.6521 GB, free: 15.75 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.891e-05/0.7357, allocations: 8 kB / 0.6521 GB, free: 15.75 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.064e-05/0.7357, allocations: 16 kB / 0.6521 GB, free: 15.73 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001057/0.7368, allocations: 442.5 kB / 0.6525 GB, free: 15.29 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001732/0.7385, allocations: 459.3 kB / 0.653 GB, free: 14.84 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00684/0.7454, allocations: 6.745 MB / 0.6596 GB, free: 7.746 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001981/0.7474, allocations: 91.77 kB / 0.6597 GB, free: 7.656 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001899/0.7476, allocations: 80.05 kB / 0.6597 GB, free: 7.578 MB / 474.7 MB 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: 60 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (209): * Single equations (assignments): 206 * 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.0003794/0.748, allocations: 148.5 kB / 0.6599 GB, free: 7.426 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003299/0.7483, allocations: 193.6 kB / 0.6601 GB, free: 7.234 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005093/0.7534, allocations: 2.846 MB / 0.6628 GB, free: 4.367 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.505e-05/0.7535, allocations: 16 kB / 0.6628 GB, free: 4.352 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.046e-05/0.7535, allocations: 8 kB / 0.6629 GB, free: 4.344 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.899e-05/0.7535, allocations: 7.969 kB / 0.6629 GB, free: 4.336 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2401/0.9937, allocations: 5.695 MB / 0.6684 GB, free: 118.3 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.35e-05/0.9937, allocations: 6.812 kB / 0.6684 GB, free: 118.3 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001259/0.995, allocations: 241.8 kB / 0.6687 GB, free: 118.3 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002403/0.9974, allocations: 0.8336 MB / 0.6695 GB, free: 118.3 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001784/0.9976, allocations: 17.14 kB / 0.6695 GB, free: 118.3 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01098/1.009, allocations: 9.996 MB / 0.6793 GB, free: 114.5 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.775e-06/1.009, allocations: 5.703 kB / 0.6793 GB, free: 114.5 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006419/1.015, allocations: 4.333 MB / 0.6835 GB, free: 114 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001008/1.016, allocations: 486.4 kB / 0.684 GB, free: 113.9 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002778/1.016, allocations: 11.59 kB / 0.684 GB, free: 113.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001178/1.018, allocations: 85.88 kB / 0.684 GB, free: 113.9 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003641/1.018, allocations: 118.1 kB / 0.6842 GB, free: 113.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001398/1.018, allocations: 47.91 kB / 0.6842 GB, free: 113.9 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.001449/1.02, allocations: 1.088 MB / 0.6853 GB, free: 113.8 MB / 474.7 MB Notification: Performance of sort global known variables: time 3e-07/1.02, allocations: 0 / 0.6853 GB, free: 113.8 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.00192/1.022, allocations: 0.5383 MB / 0.6858 GB, free: 113.8 MB / 474.7 MB 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,voltageController.PI_d.x,voltageController.PI_q.x) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (115): * Single equations (assignments): 112 * 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.0005689/1.022, allocations: 394.5 kB / 0.6862 GB, free: 113.7 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003035/1.025, allocations: 2.517 MB / 0.6886 GB, free: 113.4 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.077e-06/1.025, allocations: 3.625 kB / 0.6886 GB, free: 113.4 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00187/1.027, allocations: 1.604 MB / 0.6902 GB, free: 113 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002009/1.029, allocations: 416.3 kB / 0.6906 GB, free: 113 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007169/1.036, allocations: 4.622 MB / 0.6951 GB, free: 112 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001714/1.038, allocations: 2.257 MB / 0.6973 GB, free: 111.2 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 0.001592/1.04, allocations: 470.8 kB / 0.6978 GB, free: 111.2 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000406/1.04, allocations: 142.3 kB / 0.6979 GB, free: 111.2 MB / 474.7 MB Notification: Performance of SimCode: time 1.583e-06/1.04, allocations: 0 / 0.6979 GB, free: 111.2 MB / 474.7 MB Notification: Performance of Templates: time 0.04052/1.081, allocations: 28.18 MB / 0.7254 GB, free: 109.6 MB / 474.7 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & ./ModelicaTest_3.2.2_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1)