Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="ModelicaTest_3.2.3_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.|voltageController.PI_d.x|voltageController.PI_q.x",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002118/0.002119, allocations: 172.2 kB / 16.76 MB, free: 5.059 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.783/1.783, allocations: 205.4 MB / 222.9 MB, free: 8.949 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008838/0.0008842, allocations: 94.36 kB / 271.3 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3928/0.3928, allocations: 43.57 MB / 363.1 MB, free: 51.79 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003871/0.0003873, allocations: 15.98 kB / 432.6 MB, free: 4.98 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1308/0.1312, allocations: 58.85 MB / 491.5 MB, free: 10.05 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3774/0.5086, allocations: 123.3 MB / 0.6004 GB, free: 10.46 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002703/0.5089, allocations: 82.52 kB / 0.6005 GB, free: 10.38 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1674/0.6763, allocations: 61.79 MB / 0.6608 GB, free: 12.32 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.984e-06/0.6764, allocations: 0 / 0.6608 GB, free: 12.32 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003489/0.6767, allocations: 83.88 kB / 0.6609 GB, free: 12.23 MB / 490.7 MB 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.008766/0.6855, allocations: 3.24 MB / 0.664 GB, free: 8.918 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.817e-05/0.6856, allocations: 12.03 kB / 0.6641 GB, free: 8.906 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001541/0.6871, allocations: 404.5 kB / 0.6644 GB, free: 8.508 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005028/0.6922, allocations: 2.238 MB / 0.6666 GB, free: 6.215 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001854/0.6924, allocations: 214 kB / 0.6668 GB, free: 6.004 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008413/0.6932, allocations: 288.3 kB / 0.6671 GB, free: 5.723 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007041/0.7003, allocations: 3.711 MB / 0.6707 GB, free: 1.867 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.359e-05/0.7004, allocations: 4.188 kB / 0.6707 GB, free: 1.863 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002833/0.7007, allocations: 127.9 kB / 0.6709 GB, free: 1.738 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001257/0.7008, allocations: 141.4 kB / 0.671 GB, free: 1.598 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.2257/0.9265, allocations: 3.001 MB / 0.6739 GB, free: 96.34 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02152/0.9481, allocations: 11.65 MB / 0.6853 GB, free: 94.02 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003333/0.9514, allocations: 2.245 MB / 0.6875 GB, free: 93.42 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001458/0.9529, allocations: 1.09 MB / 0.6886 GB, free: 93.41 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002926/0.9532, allocations: 225.2 kB / 0.6888 GB, free: 93.22 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.479e-05/0.9533, allocations: 50.94 kB / 0.6888 GB, free: 93.18 MB / 490.7 MB Notification: Performance of pre-optimization done (n=142): time 3.506e-06/0.9533, allocations: 0 / 0.6888 GB, free: 93.18 MB / 490.7 MB Notification: Performance of matching and sorting (n=156): time 0.01491/0.9682, allocations: 8.124 MB / 0.6968 GB, free: 92.23 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.905e-05/0.9683, allocations: 68.25 kB / 0.6968 GB, free: 92.16 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002525/0.9708, allocations: 1.922 MB / 0.6987 GB, free: 91.95 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001704/0.971, allocations: 53.92 kB / 0.6987 GB, free: 91.91 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007086/0.9717, allocations: 1.357 MB / 0.7001 GB, free: 91.46 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003145/0.972, allocations: 0.5293 MB / 0.7006 GB, free: 91.12 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.099e-05/0.9721, allocations: 40.38 kB / 0.7006 GB, free: 91.12 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 8.923e-05/0.9722, allocations: 374.8 kB / 0.701 GB, free: 90.82 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001246/0.9735, allocations: 0.9004 MB / 0.7019 GB, free: 90.82 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00135/0.9748, allocations: 1.35 MB / 0.7032 GB, free: 90.32 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009176/0.984, allocations: 4.568 MB / 0.7076 GB, free: 88.59 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.459e-05/0.9841, allocations: 3.5 kB / 0.7076 GB, free: 88.59 MB / 490.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.004428/0.9885, allocations: 2.955 MB / 0.7105 GB, free: 87.51 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.801e-05/0.9886, allocations: 9.281 kB / 0.7105 GB, free: 87.51 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.469e-05/0.9886, allocations: 15.34 kB / 0.7106 GB, free: 87.51 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009761/0.9896, allocations: 442 kB / 0.711 GB, free: 87.39 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001561/0.9911, allocations: 461.5 kB / 0.7114 GB, free: 87.37 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007831/0.999, allocations: 7.058 MB / 0.7183 GB, free: 82.16 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002536/1.002, allocations: 129.8 kB / 0.7184 GB, free: 82.13 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002834/1.002, allocations: 72.31 kB / 0.7185 GB, free: 82.12 MB / 490.7 MB Warning: Assuming fixed start value for the following 1 variables: smpm.idq_sr[1]:VARIABLE(unit = "A" fixed = true 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 () * Number of clocked 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.002018/1.004, allocations: 0.9108 MB / 0.7194 GB, free: 81.66 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005304/1.004, allocations: 209.2 kB / 0.7196 GB, free: 81.55 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005424/1.01, allocations: 3.011 MB / 0.7225 GB, free: 80.41 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.573e-05/1.01, allocations: 15.66 kB / 0.7225 GB, free: 80.41 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.511e-05/1.01, allocations: 10.91 kB / 0.7226 GB, free: 80.41 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.251e-05/1.01, allocations: 12.38 kB / 0.7226 GB, free: 80.4 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01045/1.02, allocations: 6.183 MB / 0.7286 GB, free: 77.95 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.07e-05/1.02, allocations: 3.906 kB / 0.7286 GB, free: 77.95 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001028/1.021, allocations: 228.9 kB / 0.7288 GB, free: 77.94 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001972/1.023, allocations: 0.8454 MB / 0.7297 GB, free: 77.71 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001113/1.024, allocations: 37.22 kB / 0.7297 GB, free: 77.69 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009189/1.033, allocations: 10.23 MB / 0.7397 GB, free: 71.08 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/1.033, allocations: 6.344 kB / 0.7397 GB, free: 71.08 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005661/1.038, allocations: 4.275 MB / 0.7439 GB, free: 69.25 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008615/1.039, allocations: 0.4927 MB / 0.7443 GB, free: 68.93 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002502/1.04, allocations: 35.22 kB / 0.7444 GB, free: 68.91 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001034/1.041, allocations: 104.2 kB / 0.7445 GB, free: 68.89 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002648/1.041, allocations: 125.9 kB / 0.7446 GB, free: 68.86 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.644e-05/1.041, allocations: 45.47 kB / 0.7446 GB, free: 68.85 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.001655/1.043, allocations: 1.321 MB / 0.7459 GB, free: 68.33 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.2e-07/1.043, allocations: 0 / 0.7459 GB, free: 68.33 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.001851/1.045, allocations: 0.6264 MB / 0.7465 GB, free: 68.26 MB / 490.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 () * Number of clocked 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.0005526/1.045, allocations: 412.2 kB / 0.7469 GB, free: 68.1 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.003392/1.049, allocations: 2.671 MB / 0.7495 GB, free: 66.92 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/1.049, allocations: 0 / 0.7495 GB, free: 66.92 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001995/1.051, allocations: 1.695 MB / 0.7512 GB, free: 66.05 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003686/1.054, allocations: 0.4916 MB / 0.7517 GB, free: 65.89 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01021/1.065, allocations: 6.921 MB / 0.7584 GB, free: 62.06 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002063/1.067, allocations: 2.214 MB / 0.7606 GB, free: 61.06 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 0.002142/1.069, allocations: 463.2 kB / 0.761 GB, free: 61.01 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005498/1.069, allocations: 155.4 kB / 0.7612 GB, free: 60.99 MB / 490.7 MB Notification: Performance of SimCode: time 8.32e-07/1.069, allocations: 0 / 0.7612 GB, free: 60.99 MB / 490.7 MB Notification: Performance of Templates: time 0.04781/1.117, allocations: 34.77 MB / 0.7951 GB, free: 48.38 MB / 490.7 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & ./ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1)