Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_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_cpp_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_cpp_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.002406/0.002406, allocations: 185.8 kB / 16.4 MB, free: 5.75 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.937/1.937, allocations: 205.4 MB / 222.5 MB, free: 9.117 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.001119/0.001119, allocations: 101.4 kB / 270.9 MB, free: 8.371 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.5166/0.5166, allocations: 43.54 MB / 362.7 MB, free: 52.16 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000456/0.0004563, allocations: 16 kB / 431.4 MB, free: 6.168 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1189/0.1193, allocations: 58.84 MB / 490.2 MB, free: 11.25 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5227/0.6421, allocations: 123.1 MB / 0.5989 GB, free: 11.6 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003074/0.6425, allocations: 75.97 kB / 0.599 GB, free: 11.53 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2879/0.9304, allocations: 61.86 MB / 0.6594 GB, free: 13.38 MB / 490.7 MB Notification: Performance of FrontEnd: time 6.191e-06/0.9304, allocations: 0 / 0.6594 GB, free: 13.38 MB / 490.7 MB Notification: Performance of Transformations before backend: time 0.0004093/0.9308, allocations: 83.88 kB / 0.6595 GB, free: 13.3 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.01433/0.9452, allocations: 3.279 MB / 0.6627 GB, free: 9.949 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.079e-05/0.9453, allocations: 15.97 kB / 0.6627 GB, free: 9.934 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002584/0.9479, allocations: 404.2 kB / 0.6631 GB, free: 9.535 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009056/0.957, allocations: 2.176 MB / 0.6652 GB, free: 7.305 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000353/0.9574, allocations: 213.7 kB / 0.6654 GB, free: 7.094 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001335/0.9587, allocations: 287.9 kB / 0.6657 GB, free: 6.812 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0135/0.9722, allocations: 3.691 MB / 0.6693 GB, free: 2.977 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001808/0.9725, allocations: 4 kB / 0.6693 GB, free: 2.973 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009058/0.9734, allocations: 124 kB / 0.6694 GB, free: 2.852 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002252/0.9737, allocations: 133.5 kB / 0.6695 GB, free: 2.719 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.3439/1.318, allocations: 3.017 MB / 0.6725 GB, free: 96.5 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0361/1.354, allocations: 11.63 MB / 0.6838 GB, free: 94.12 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007038/1.361, allocations: 2.244 MB / 0.686 GB, free: 93.52 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006453/1.362, allocations: 228 kB / 0.6862 GB, free: 93.33 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.711e-05/1.362, allocations: 48.62 kB / 0.6863 GB, free: 93.29 MB / 490.7 MB Notification: Performance of pre-optimization done (n=142): time 4.659e-06/1.362, allocations: 0 / 0.6863 GB, free: 93.29 MB / 490.7 MB Notification: Performance of matching and sorting (n=156): time 0.03245/1.394, allocations: 8.09 MB / 0.6942 GB, free: 92.34 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.544e-05/1.394, allocations: 71.19 kB / 0.6943 GB, free: 92.28 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004187/1.398, allocations: 1.715 MB / 0.6959 GB, free: 92.07 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0004322/1.399, allocations: 55.77 kB / 0.696 GB, free: 92.04 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001058/1.4, allocations: 1.277 MB / 0.6972 GB, free: 91.54 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008424/1.401, allocations: 0.5291 MB / 0.6977 GB, free: 91.2 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002187/1.401, allocations: 33.41 kB / 0.6978 GB, free: 91.2 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001534/1.401, allocations: 383.4 kB / 0.6981 GB, free: 90.89 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002541/1.404, allocations: 0.9037 MB / 0.699 GB, free: 90.89 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002924/1.407, allocations: 1.339 MB / 0.7003 GB, free: 90.4 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003242/1.41, allocations: 1.129 MB / 0.7014 GB, free: 90.38 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.491e-05/1.41, allocations: 2.969 kB / 0.7014 GB, free: 90.38 MB / 490.7 MB Notification: Performance of matching and sorting (n=226) (initialization): time 0.008999/1.419, allocations: 2.821 MB / 0.7042 GB, free: 89.91 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.949e-05/1.419, allocations: 12.28 kB / 0.7042 GB, free: 89.91 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.386e-05/1.419, allocations: 12.38 kB / 0.7042 GB, free: 89.91 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001941/1.421, allocations: 454.7 kB / 0.7047 GB, free: 89.79 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00374/1.425, allocations: 460 kB / 0.7051 GB, free: 89.78 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01107/1.436, allocations: 7.199 MB / 0.7121 GB, free: 84.52 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003309/1.44, allocations: 133.7 kB / 0.7122 GB, free: 84.49 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005792/1.44, allocations: 76.27 kB / 0.7123 GB, free: 84.48 MB / 490.7 MB 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.003082/1.443, allocations: 0.9037 MB / 0.7132 GB, free: 84.02 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008372/1.444, allocations: 210.2 kB / 0.7134 GB, free: 83.91 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01086/1.455, allocations: 3.025 MB / 0.7164 GB, free: 82.76 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.763e-05/1.455, allocations: 14.88 kB / 0.7164 GB, free: 82.76 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.934e-05/1.455, allocations: 8.844 kB / 0.7164 GB, free: 82.76 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.302e-05/1.455, allocations: 8.109 kB / 0.7164 GB, free: 82.76 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02184/1.477, allocations: 6.17 MB / 0.7224 GB, free: 80.34 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.311e-05/1.477, allocations: 6.25 kB / 0.7224 GB, free: 80.34 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002443/1.48, allocations: 237.6 kB / 0.7226 GB, free: 80.33 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004553/1.484, allocations: 0.8316 MB / 0.7235 GB, free: 80.11 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004701/1.485, allocations: 42.19 kB / 0.7235 GB, free: 80.09 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02125/1.506, allocations: 10.54 MB / 0.7338 GB, free: 73.38 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/1.506, allocations: 3.969 kB / 0.7338 GB, free: 73.38 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01198/1.518, allocations: 4.421 MB / 0.7381 GB, free: 71.35 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001862/1.52, allocations: 0.493 MB / 0.7386 GB, free: 71.04 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007557/1.521, allocations: 31.53 kB / 0.7386 GB, free: 71.02 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002726/1.523, allocations: 103.9 kB / 0.7387 GB, free: 71 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006287/1.524, allocations: 117.8 kB / 0.7388 GB, free: 70.98 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000174/1.524, allocations: 50.23 kB / 0.7389 GB, free: 70.96 MB / 490.7 MB Notification: Performance of sorting global known variables: time 0.003173/1.528, allocations: 1.318 MB / 0.7402 GB, free: 70.44 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.533e-06/1.528, allocations: 3.938 kB / 0.7402 GB, free: 70.44 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.003839/1.531, allocations: 0.6345 MB / 0.7408 GB, free: 70.37 MB / 490.7 MB 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.001129/1.533, allocations: 400.2 kB / 0.7412 GB, free: 70.23 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 0.006638/1.539, allocations: 2.675 MB / 0.7438 GB, free: 69.05 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.304e-05/1.539, allocations: 3.094 kB / 0.7438 GB, free: 69.05 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004619/1.544, allocations: 1.704 MB / 0.7454 GB, free: 68.18 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004266/1.548, allocations: 494 kB / 0.7459 GB, free: 68.03 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01592/1.564, allocations: 6.953 MB / 0.7527 GB, free: 64.19 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003397/1.568, allocations: 2.241 MB / 0.7549 GB, free: 63.19 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001232/1.569, allocations: 169.5 kB / 0.7551 GB, free: 63.17 MB / 490.7 MB Notification: Performance of SimCode: time 1.633e-06/1.569, allocations: 0 / 0.7551 GB, free: 63.17 MB / 490.7 MB Notification: Performance of Templates: time 0.119/1.688, allocations: 75.02 MB / 0.8283 GB, free: 14.04 MB / 490.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Electrical.Machines.SMPM_VoltageSourceWithLosses.pipe 2>&1)