Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009977/0.0009978, allocations: 196.4 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.317/1.317, allocations: 225.4 MB / 240.1 MB, free: 15.12 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007695/0.0007695, allocations: 87.36 kB / 292.1 MB, free: 5.906 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1707/0.1707, allocations: 45.14 MB / 389.3 MB, free: 11.87 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 2.527e-05/2.531e-05, allocations: 4 kB / 460.4 MB, free: 70.03 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1029/0.103, allocations: 63.25 MB / 0.5114 GB, free: 6.801 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3919/0.4949, allocations: 124.5 MB / 0.633 GB, free: 1.953 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002106/0.4952, allocations: 75.28 kB / 0.633 GB, free: 1.918 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1617/0.6569, allocations: 62.36 MB / 0.6939 GB, free: 11.41 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.383e-06/0.657, allocations: 0 / 0.6939 GB, free: 11.41 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0003104/0.6573, allocations: 83.88 kB / 0.694 GB, free: 11.33 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.007742/0.665, allocations: 2.923 MB / 0.6969 GB, free: 8.34 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.038e-05/0.6651, allocations: 8.031 kB / 0.6969 GB, free: 8.332 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001699/0.6668, allocations: 412.2 kB / 0.6973 GB, free: 7.926 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004849/0.6717, allocations: 2.161 MB / 0.6994 GB, free: 5.711 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001794/0.6719, allocations: 213.7 kB / 0.6996 GB, free: 5.5 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006573/0.6725, allocations: 287.9 kB / 0.6999 GB, free: 5.219 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00592/0.6784, allocations: 3.618 MB / 0.7034 GB, free: 1.457 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.023e-05/0.6785, allocations: 3.984 kB / 0.7034 GB, free: 1.453 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002613/0.6788, allocations: 120 kB / 0.7035 GB, free: 1.336 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001282/0.6789, allocations: 137.5 kB / 0.7037 GB, free: 1.199 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004614/0.6836, allocations: 2.911 MB / 0.7065 GB, free: 14.28 MB / 0.4948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01811/0.7017, allocations: 11.64 MB / 0.7179 GB, free: 2.336 MB / 0.4948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003541/0.7053, allocations: 2.195 MB / 0.72 GB, free: 20 kB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001504/0.7068, allocations: 1.071 MB / 0.7211 GB, free: 14.94 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000373/0.7072, allocations: 223.4 kB / 0.7213 GB, free: 14.69 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.847e-05/0.7072, allocations: 43.88 kB / 0.7213 GB, free: 14.64 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=142): time 3.026e-06/0.7073, allocations: 4 kB / 0.7213 GB, free: 14.63 MB / 0.5105 GB Notification: Performance of matching and sorting (n=156): time 0.01161/0.7189, allocations: 6.076 MB / 0.7272 GB, free: 8.504 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.003e-05/0.7189, allocations: 68.72 kB / 0.7273 GB, free: 8.426 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002516/0.7215, allocations: 1.69 MB / 0.729 GB, free: 6.691 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 0.0001198/0.7216, allocations: 49.7 kB / 0.729 GB, free: 6.637 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008934/0.7225, allocations: 1.367 MB / 0.7303 GB, free: 5.254 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 0.000398/0.7229, allocations: 0.5314 MB / 0.7309 GB, free: 4.715 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.89e-05/0.723, allocations: 36 kB / 0.7309 GB, free: 4.68 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001458/0.7232, allocations: 385.8 kB / 0.7313 GB, free: 4.297 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001237/0.7244, allocations: 0.8708 MB / 0.7321 GB, free: 3.426 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001493/0.7259, allocations: 1.315 MB / 0.7334 GB, free: 1.926 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001498/0.7274, allocations: 1.093 MB / 0.7345 GB, free: 0.8359 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.811e-06/0.7274, allocations: 0 / 0.7345 GB, free: 0.8359 MB / 0.5105 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.004458/0.7319, allocations: 2.887 MB / 0.7373 GB, free: 13.93 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.437e-05/0.7319, allocations: 8 kB / 0.7373 GB, free: 13.92 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.952e-05/0.732, allocations: 16 kB / 0.7373 GB, free: 13.9 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00105/0.733, allocations: 446.6 kB / 0.7377 GB, free: 13.46 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001676/0.7347, allocations: 463.2 kB / 0.7382 GB, free: 13 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006963/0.7417, allocations: 7.038 MB / 0.7451 GB, free: 5.57 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001799/0.7435, allocations: 127.8 kB / 0.7452 GB, free: 5.445 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001655/0.7437, allocations: 76.05 kB / 0.7452 GB, free: 5.371 MB / 0.5261 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.0003563/0.7441, allocations: 218.3 kB / 0.7455 GB, free: 5.152 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003279/0.7444, allocations: 209.5 kB / 0.7457 GB, free: 4.945 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005257/0.7497, allocations: 2.965 MB / 0.7486 GB, free: 1.961 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.613e-05/0.7497, allocations: 16 kB / 0.7486 GB, free: 1.945 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.053e-05/0.7497, allocations: 11.98 kB / 0.7486 GB, free: 1.934 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.888e-05/0.7497, allocations: 3.984 kB / 0.7486 GB, free: 1.93 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2811/1.031, allocations: 6.118 MB / 0.7546 GB, free: 137.1 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.011e-05/1.031, allocations: 2.938 kB / 0.7546 GB, free: 137.1 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001109/1.032, allocations: 245.5 kB / 0.7548 GB, free: 137.1 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002272/1.034, allocations: 0.8264 MB / 0.7556 GB, free: 137.1 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001415/1.034, allocations: 43.36 kB / 0.7556 GB, free: 137.1 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01113/1.046, allocations: 10.19 MB / 0.7656 GB, free: 133.2 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/1.046, allocations: 4.062 kB / 0.7656 GB, free: 133.2 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006573/1.052, allocations: 4.385 MB / 0.7699 GB, free: 132.6 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00106/1.053, allocations: 0.4949 MB / 0.7704 GB, free: 132.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002578/1.054, allocations: 35.59 kB / 0.7704 GB, free: 132.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001077/1.055, allocations: 100.8 kB / 0.7705 GB, free: 132.5 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003267/1.055, allocations: 120.9 kB / 0.7706 GB, free: 132.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000119/1.055, allocations: 51.22 kB / 0.7707 GB, free: 132.5 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.002154/1.057, allocations: 1.3 MB / 0.7719 GB, free: 132.3 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.5e-07/1.057, allocations: 1 kB / 0.7719 GB, free: 132.3 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.002657/1.06, allocations: 0.632 MB / 0.7725 GB, free: 132.3 MB / 0.5261 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.0008498/1.061, allocations: 416.8 kB / 0.7729 GB, free: 132.2 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.003558/1.064, allocations: 2.606 MB / 0.7755 GB, free: 131.8 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/1.064, allocations: 0 / 0.7755 GB, free: 131.8 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.001946/1.066, allocations: 1.651 MB / 0.7771 GB, free: 131.5 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002268/1.069, allocations: 0.4921 MB / 0.7776 GB, free: 131.4 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007151/1.076, allocations: 4.712 MB / 0.7822 GB, free: 130.4 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001573/1.077, allocations: 2.277 MB / 0.7844 GB, free: 129.6 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.001612/1.079, allocations: 465.3 kB / 0.7848 GB, free: 129.6 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004388/1.079, allocations: 159.1 kB / 0.785 GB, free: 129.6 MB / 0.5261 GB Notification: Performance of SimCode: time 7.12e-07/1.079, allocations: 0 / 0.785 GB, free: 129.6 MB / 0.5261 GB Notification: Performance of Templates: time 0.04861/1.128, allocations: 35.01 MB / 0.8192 GB, free: 127.8 MB / 0.5261 GB make -j1 -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & ./ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1)