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.00106/0.00106, allocations: 174.4 kB / 8.74 MB, free: 348 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.316/1.316, allocations: 221.5 MB / 230.7 MB, free: 7.582 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.0009809/0.0009809, allocations: 92.84 kB / 281.6 MB, free: 5.328 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.1928/0.1928, allocations: 44.15 MB / 376.5 MB, free: 3.059 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 1.666e-05/1.682e-05, allocations: 224 / 444.6 MB, free: 15.24 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1206/0.1207, allocations: 61.91 MB / 0.4947 GB, free: 1.27 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4312/0.5519, allocations: 122.8 MB / 0.6146 GB, free: 5.68 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002077/0.5522, allocations: 75.97 kB / 0.6147 GB, free: 5.605 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1625/0.7147, allocations: 61.47 MB / 0.6747 GB, free: 7.785 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.7147, allocations: 0 / 0.6747 GB, free: 7.785 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003337/0.7151, allocations: 83.88 kB / 0.6748 GB, free: 7.703 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.01067/0.7258, allocations: 2.915 MB / 0.6776 GB, free: 4.723 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.653e-05/0.7258, allocations: 15.98 kB / 0.6776 GB, free: 4.707 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003412/0.7293, allocations: 411.5 kB / 0.678 GB, free: 4.301 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006513/0.7358, allocations: 2.149 MB / 0.6801 GB, free: 2.098 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001229/0.736, allocations: 92.34 kB / 0.6802 GB, free: 2.008 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006794/0.7367, allocations: 179.8 kB / 0.6804 GB, free: 1.832 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.005701/0.7424, allocations: 2.733 MB / 0.683 GB, free: 15.09 MB / 0.4948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005714/0.7481, allocations: 3.215 MB / 0.6862 GB, free: 11.73 MB / 0.4948 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.232e-05/0.7482, allocations: 11.89 kB / 0.6862 GB, free: 11.72 MB / 0.4948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002184/0.7484, allocations: 7.938 kB / 0.6862 GB, free: 11.71 MB / 0.4948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001613/0.7486, allocations: 133.5 kB / 0.6863 GB, free: 11.58 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01819/0.7668, allocations: 11.07 MB / 0.6971 GB, free: 232 kB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003417/0.7703, allocations: 2.19 MB / 0.6993 GB, free: 13.92 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001396/0.7717, allocations: 1.032 MB / 0.7003 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004115/0.7721, allocations: 227.4 kB / 0.7005 GB, free: 12.63 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.429e-05/0.7722, allocations: 55.88 kB / 0.7006 GB, free: 12.57 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=148): time 4.278e-06/0.7722, allocations: 0 / 0.7006 GB, free: 12.57 MB / 0.5105 GB Notification: Performance of matching and sorting (n=162): time 0.01038/0.7826, allocations: 5.591 MB / 0.706 GB, free: 6.926 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.802e-05/0.7827, allocations: 72.66 kB / 0.7061 GB, free: 6.844 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002314/0.785, allocations: 1.444 MB / 0.7075 GB, free: 5.402 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.000116/0.7851, allocations: 25.7 kB / 0.7075 GB, free: 5.371 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.000842/0.786, allocations: 1.358 MB / 0.7089 GB, free: 3.996 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004091/0.7864, allocations: 0.5272 MB / 0.7094 GB, free: 3.461 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.041e-05/0.7865, allocations: 0 / 0.7094 GB, free: 3.461 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001593/0.7866, allocations: 377.9 kB / 0.7097 GB, free: 3.086 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001158/0.7878, allocations: 0.8552 MB / 0.7106 GB, free: 2.23 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001497/0.7893, allocations: 1.284 MB / 0.7118 GB, free: 0.7656 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3058/1.095, allocations: 1.066 MB / 0.7129 GB, free: 134.6 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.724e-05/1.095, allocations: 4.594 kB / 0.7129 GB, free: 134.6 MB / 0.5105 GB Notification: Performance of matching and sorting (n=232) (initialization): time 0.00575/1.101, allocations: 2.738 MB / 0.7155 GB, free: 134.5 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 3.829e-05/1.101, allocations: 12.59 kB / 0.7155 GB, free: 134.5 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.103e-05/1.101, allocations: 16.39 kB / 0.7156 GB, free: 134.5 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00115/1.102, allocations: 440.2 kB / 0.716 GB, free: 134.5 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001931/1.104, allocations: 466.9 kB / 0.7164 GB, free: 134.5 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006734/1.111, allocations: 6.732 MB / 0.723 GB, free: 130.8 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002217/1.113, allocations: 94.02 kB / 0.7231 GB, free: 130.8 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003005/1.113, allocations: 77.91 kB / 0.7232 GB, free: 130.8 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 (210): * Single equations (assignments): 207 * 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.0004515/1.114, allocations: 157.1 kB / 0.7233 GB, free: 130.7 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004638/1.114, allocations: 192.3 kB / 0.7235 GB, free: 130.7 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005909/1.12, allocations: 2.845 MB / 0.7263 GB, free: 130.5 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.3e-05/1.12, allocations: 15 kB / 0.7263 GB, free: 130.5 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.63e-05/1.12, allocations: 17.61 kB / 0.7263 GB, free: 130.5 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-05/1.12, allocations: 6.938 kB / 0.7263 GB, free: 130.5 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01166/1.132, allocations: 5.726 MB / 0.7319 GB, free: 130 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.167e-05/1.132, allocations: 2.781 kB / 0.7319 GB, free: 130 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001145/1.133, allocations: 250.1 kB / 0.7322 GB, free: 130 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00218/1.136, allocations: 0.8511 MB / 0.733 GB, free: 130 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001348/1.136, allocations: 18.25 kB / 0.733 GB, free: 130 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01087/1.147, allocations: 10.01 MB / 0.7428 GB, free: 126.2 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.302e-06/1.147, allocations: 6.672 kB / 0.7428 GB, free: 126.2 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005684/1.152, allocations: 4.352 MB / 0.747 GB, free: 124.5 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001126/1.153, allocations: 490 kB / 0.7475 GB, free: 124.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002789/1.154, allocations: 7.188 kB / 0.7475 GB, free: 124.2 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001099/1.155, allocations: 86.77 kB / 0.7476 GB, free: 124.2 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002785/1.155, allocations: 122.6 kB / 0.7477 GB, free: 124.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001043/1.155, allocations: 51.02 kB / 0.7477 GB, free: 124.2 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.001576/1.157, allocations: 1.086 MB / 0.7488 GB, free: 123.8 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.8e-07/1.157, allocations: 0 / 0.7488 GB, free: 123.8 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.002169/1.159, allocations: 0.545 MB / 0.7493 GB, free: 123.7 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 (116): * Single equations (assignments): 113 * 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.0005746/1.16, allocations: 376.5 kB / 0.7497 GB, free: 123.6 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.003166/1.163, allocations: 2.534 MB / 0.7522 GB, free: 122.6 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/1.163, allocations: 4.703 kB / 0.7522 GB, free: 122.6 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.001893/1.165, allocations: 1.61 MB / 0.7538 GB, free: 121.8 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002091/1.167, allocations: 412.4 kB / 0.7541 GB, free: 121.7 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007124/1.174, allocations: 4.655 MB / 0.7587 GB, free: 119.8 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001595/1.176, allocations: 2.278 MB / 0.7609 GB, free: 118.8 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.001519/1.177, allocations: 464.5 kB / 0.7614 GB, free: 118.8 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004289/1.178, allocations: 148 kB / 0.7615 GB, free: 118.8 MB / 0.5105 GB Notification: Performance of SimCode: time 6.71e-07/1.178, allocations: 4 kB / 0.7615 GB, free: 118.8 MB / 0.5105 GB Notification: Performance of Templates: time 0.0463/1.224, allocations: 28.37 MB / 0.7892 GB, free: 115.8 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)