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.001337/0.001337, allocations: 185.2 kB / 15.76 MB, free: 6.367 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.738/1.738, allocations: 205.4 MB / 221.9 MB, free: 13.84 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.0009002/0.0009003, allocations: 94.86 kB / 270.2 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.1994/0.1994, allocations: 43.56 MB / 362 MB, free: 11.3 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003148/0.0003148, allocations: 8 kB / 431.4 MB, free: 19.59 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1303/0.1306, allocations: 58.85 MB / 490.2 MB, free: 8.676 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.451/0.5817, allocations: 123.1 MB / 0.5989 GB, free: 9.23 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003713/0.5821, allocations: 82.92 kB / 0.599 GB, free: 9.188 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1719/0.754, allocations: 61.84 MB / 0.6594 GB, free: 3.152 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.755e-06/0.7541, allocations: 0 / 0.6594 GB, free: 3.152 MB / 458.7 MB Notification: Performance of Transformations before backend: time 0.0003095/0.7544, allocations: 83.88 kB / 0.6595 GB, free: 3.07 MB / 458.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.01238/0.7668, allocations: 3.272 MB / 0.6627 GB, free: 15.73 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.826e-05/0.7669, allocations: 16.02 kB / 0.6627 GB, free: 15.71 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002974/0.7699, allocations: 396.3 kB / 0.6631 GB, free: 15.32 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006409/0.7764, allocations: 2.184 MB / 0.6652 GB, free: 13.08 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002138/0.7766, allocations: 217.7 kB / 0.6654 GB, free: 12.87 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008733/0.7775, allocations: 279.9 kB / 0.6657 GB, free: 12.59 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007404/0.7849, allocations: 3.694 MB / 0.6693 GB, free: 8.754 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.248e-05/0.785, allocations: 7.891 kB / 0.6693 GB, free: 8.746 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002831/0.7853, allocations: 124 kB / 0.6694 GB, free: 8.625 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001497/0.7855, allocations: 133.5 kB / 0.6695 GB, free: 8.492 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00573/0.7912, allocations: 3.016 MB / 0.6725 GB, free: 5.465 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02112/0.8124, allocations: 11.65 MB / 0.6839 GB, free: 9.516 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004661/0.8171, allocations: 2.246 MB / 0.6861 GB, free: 7.156 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004582/0.8176, allocations: 227.4 kB / 0.6863 GB, free: 6.898 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.791e-05/0.8177, allocations: 43.88 kB / 0.6863 GB, free: 6.848 MB / 490.7 MB Notification: Performance of pre-optimization done (n=142): time 4.569e-06/0.8177, allocations: 0 / 0.6863 GB, free: 6.848 MB / 490.7 MB Notification: Performance of matching and sorting (n=156): time 0.02071/0.8384, allocations: 8.096 MB / 0.6942 GB, free: 14.68 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.328e-05/0.8385, allocations: 68.72 kB / 0.6943 GB, free: 14.61 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003448/0.842, allocations: 1.713 MB / 0.696 GB, free: 12.86 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0002705/0.8423, allocations: 53.64 kB / 0.696 GB, free: 12.8 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001169/0.8434, allocations: 1.355 MB / 0.6973 GB, free: 11.43 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006467/0.8441, allocations: 0.5314 MB / 0.6979 GB, free: 10.89 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001006/0.8442, allocations: 36 kB / 0.6979 GB, free: 10.85 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.0001869/0.8444, allocations: 373.9 kB / 0.6982 GB, free: 10.48 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001579/0.846, allocations: 0.9097 MB / 0.6991 GB, free: 9.57 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001788/0.8478, allocations: 1.338 MB / 0.7004 GB, free: 8.051 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001613/0.8494, allocations: 1.128 MB / 0.7015 GB, free: 6.926 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.237e-06/0.8494, allocations: 4 kB / 0.7015 GB, free: 6.922 MB / 0.4948 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.005485/0.8549, allocations: 2.954 MB / 0.7044 GB, free: 3.949 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 3.17e-05/0.855, allocations: 12.03 kB / 0.7044 GB, free: 3.938 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.029e-05/0.855, allocations: 12 kB / 0.7045 GB, free: 3.926 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001146/0.8562, allocations: 442.2 kB / 0.7049 GB, free: 3.484 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001797/0.858, allocations: 459.3 kB / 0.7053 GB, free: 3.035 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.3284/1.186, allocations: 7.19 MB / 0.7123 GB, free: 125.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003297/1.19, allocations: 134.5 kB / 0.7125 GB, free: 125.1 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004805/1.19, allocations: 73 kB / 0.7125 GB, free: 125.1 MB / 0.4948 GB Warning: Assuming fixed start value for the following 1 variables: smpm.idq_sr[2]: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: 59 * 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.003079/1.193, allocations: 0.9017 MB / 0.7134 GB, free: 124.9 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001057/1.194, allocations: 211.9 kB / 0.7136 GB, free: 124.9 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007054/1.201, allocations: 3.028 MB / 0.7166 GB, free: 124.8 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.331e-05/1.202, allocations: 15.84 kB / 0.7166 GB, free: 124.8 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.975e-05/1.202, allocations: 8.453 kB / 0.7166 GB, free: 124.8 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.94e-05/1.202, allocations: 7.5 kB / 0.7166 GB, free: 124.8 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01575/1.217, allocations: 6.176 MB / 0.7226 GB, free: 124.3 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.317e-05/1.217, allocations: 2.156 kB / 0.7226 GB, free: 124.3 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001197/1.219, allocations: 241.2 kB / 0.7229 GB, free: 124.3 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002609/1.221, allocations: 0.826 MB / 0.7237 GB, free: 124.3 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001863/1.221, allocations: 41.27 kB / 0.7237 GB, free: 124.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01435/1.236, allocations: 10.55 MB / 0.734 GB, free: 120.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.43e-06/1.236, allocations: 3.969 kB / 0.734 GB, free: 120.3 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008566/1.244, allocations: 4.427 MB / 0.7383 GB, free: 119.8 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001941/1.246, allocations: 498.5 kB / 0.7388 GB, free: 119.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007979/1.247, allocations: 37.95 kB / 0.7389 GB, free: 119.5 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001812/1.249, allocations: 101.5 kB / 0.739 GB, free: 119.5 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003872/1.25, allocations: 124.2 kB / 0.7391 GB, free: 119.5 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001388/1.25, allocations: 42.2 kB / 0.7391 GB, free: 119.5 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.003242/1.253, allocations: 1.326 MB / 0.7404 GB, free: 118.9 MB / 0.4948 GB Notification: Performance of sort global known variables: time 3.61e-07/1.253, allocations: 0 / 0.7404 GB, free: 118.9 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.003967/1.257, allocations: 0.6303 MB / 0.741 GB, free: 118.9 MB / 0.4948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (112): * Single equations (assignments): 109 * 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.001091/1.258, allocations: 398 kB / 0.7414 GB, free: 118.7 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.004822/1.263, allocations: 2.677 MB / 0.744 GB, free: 117.6 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 6.993e-06/1.263, allocations: 0 / 0.744 GB, free: 117.6 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.0027/1.266, allocations: 1.683 MB / 0.7457 GB, free: 116.8 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003331/1.269, allocations: 498.6 kB / 0.7461 GB, free: 116.6 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01446/1.283, allocations: 6.889 MB / 0.7529 GB, free: 113 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003637/1.287, allocations: 2.266 MB / 0.7551 GB, free: 112 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.00255/1.29, allocations: 465.2 kB / 0.7555 GB, free: 112 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000928/1.291, allocations: 153.1 kB / 0.7557 GB, free: 112 MB / 0.4948 GB Notification: Performance of SimCode: time 2.174e-06/1.291, allocations: 0 / 0.7557 GB, free: 112 MB / 0.4948 GB Notification: Performance of Templates: time 0.0644/1.355, allocations: 34.4 MB / 0.7893 GB, free: 105.1 MB / 0.4948 GB 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)