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.0009825/0.0009825, allocations: 182.8 kB / 13.19 MB, free: 2.129 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.377/1.377, allocations: 205.2 MB / 218.9 MB, free: 9.211 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.0008653/0.0008654, allocations: 96.95 kB / 267.1 MB, free: 9.277 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.3762/0.3762, allocations: 43.47 MB / 358.6 MB, free: 51.61 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 3.152e-05/3.156e-05, allocations: 7.938 kB / 425.3 MB, free: 8.211 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1288/0.1288, allocations: 58.84 MB / 484.2 MB, free: 13.26 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.436/0.5648, allocations: 123 MB / 0.5929 GB, free: 15.18 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002462/0.5651, allocations: 79.33 kB / 0.593 GB, free: 15.14 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1637/0.7289, allocations: 61.94 MB / 0.6535 GB, free: 9.949 MB / 474.7 MB Notification: Performance of FrontEnd: time 4.097e-06/0.7289, allocations: 0 / 0.6535 GB, free: 9.949 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.0002219/0.7292, allocations: 83.88 kB / 0.6535 GB, free: 9.867 MB / 474.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.006262/0.7355, allocations: 2.904 MB / 0.6564 GB, free: 6.898 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.53e-05/0.7355, allocations: 8.031 kB / 0.6564 GB, free: 6.891 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001228/0.7368, allocations: 404.3 kB / 0.6568 GB, free: 6.492 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004059/0.7408, allocations: 2.157 MB / 0.6589 GB, free: 4.281 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001548/0.741, allocations: 217.7 kB / 0.6591 GB, free: 4.066 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004218/0.7414, allocations: 279.9 kB / 0.6594 GB, free: 3.793 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005917/0.7474, allocations: 3.629 MB / 0.6629 GB, free: 20 kB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.719e-05/0.7474, allocations: 11.89 kB / 0.6629 GB, free: 8 kB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002827/0.7477, allocations: 124.1 kB / 0.663 GB, free: 15.88 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001476/0.7479, allocations: 137.5 kB / 0.6632 GB, free: 15.75 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004972/0.7529, allocations: 2.919 MB / 0.666 GB, free: 12.82 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01821/0.7711, allocations: 11.64 MB / 0.6774 GB, free: 0.8789 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003475/0.7746, allocations: 2.189 MB / 0.6795 GB, free: 14.58 MB / 0.4948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001402/0.776, allocations: 1.079 MB / 0.6806 GB, free: 13.5 MB / 0.4948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003496/0.7764, allocations: 223.5 kB / 0.6808 GB, free: 13.24 MB / 0.4948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.504e-05/0.7764, allocations: 47.88 kB / 0.6808 GB, free: 13.19 MB / 0.4948 GB Notification: Performance of pre-optimization done (n=142): time 3.036e-06/0.7764, allocations: 0 / 0.6808 GB, free: 13.19 MB / 0.4948 GB Notification: Performance of matching and sorting (n=156): time 0.01155/0.788, allocations: 6.061 MB / 0.6867 GB, free: 7.074 MB / 0.4948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.374e-05/0.7881, allocations: 72.66 kB / 0.6868 GB, free: 6.992 MB / 0.4948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00275/0.7909, allocations: 1.682 MB / 0.6885 GB, free: 5.266 MB / 0.4948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001234/0.791, allocations: 53.64 kB / 0.6885 GB, free: 5.207 MB / 0.4948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009358/0.7919, allocations: 1.359 MB / 0.6898 GB, free: 3.832 MB / 0.4948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004376/0.7924, allocations: 0.5314 MB / 0.6904 GB, free: 3.293 MB / 0.4948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 9.051e-05/0.7925, allocations: 36 kB / 0.6904 GB, free: 3.258 MB / 0.4948 GB Notification: Performance of setup shared object (initialization): time 0.000175/0.7927, allocations: 381.9 kB / 0.6908 GB, free: 2.879 MB / 0.4948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001265/0.7939, allocations: 0.8669 MB / 0.6916 GB, free: 2.012 MB / 0.4948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001522/0.7955, allocations: 1.311 MB / 0.6929 GB, free: 0.5195 MB / 0.4948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.295/1.09, allocations: 1.095 MB / 0.694 GB, free: 107.1 MB / 0.4948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.399e-05/1.091, allocations: 4.156 kB / 0.694 GB, free: 107.1 MB / 0.4948 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.007832/1.098, allocations: 2.892 MB / 0.6968 GB, free: 107 MB / 0.4948 GB Notification: Performance of prepare postOptimizeDAE: time 3.538e-05/1.098, allocations: 10.53 kB / 0.6968 GB, free: 107 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.33e-05/1.099, allocations: 14.69 kB / 0.6968 GB, free: 107 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001241/1.1, allocations: 446.9 kB / 0.6972 GB, free: 107 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002317/1.102, allocations: 457 kB / 0.6977 GB, free: 107 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007239/1.109, allocations: 7.029 MB / 0.7045 GB, free: 103.1 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002335/1.112, allocations: 133.1 kB / 0.7047 GB, free: 103.1 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005443/1.112, allocations: 75.48 kB / 0.7047 GB, free: 103.1 MB / 0.4948 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: 60 * 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.0007386/1.113, allocations: 219.4 kB / 0.7049 GB, free: 103 MB / 0.4948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007817/1.114, allocations: 206 kB / 0.7051 GB, free: 103 MB / 0.4948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005438/1.119, allocations: 2.957 MB / 0.708 GB, free: 102.9 MB / 0.4948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.371e-05/1.119, allocations: 16.34 kB / 0.708 GB, free: 102.9 MB / 0.4948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.366e-05/1.119, allocations: 10.66 kB / 0.708 GB, free: 102.9 MB / 0.4948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.594e-05/1.119, allocations: 6.516 kB / 0.7081 GB, free: 102.9 MB / 0.4948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009875/1.129, allocations: 6.121 MB / 0.714 GB, free: 102.4 MB / 0.4948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.485e-06/1.129, allocations: 6.562 kB / 0.714 GB, free: 102.4 MB / 0.4948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009865/1.13, allocations: 235.2 kB / 0.7143 GB, free: 102.4 MB / 0.4948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001935/1.132, allocations: 0.8372 MB / 0.7151 GB, free: 102.3 MB / 0.4948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001239/1.132, allocations: 40.14 kB / 0.7151 GB, free: 102.3 MB / 0.4948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009977/1.142, allocations: 10.19 MB / 0.7251 GB, free: 98.36 MB / 0.4948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.027e-06/1.142, allocations: 3.344 kB / 0.7251 GB, free: 98.36 MB / 0.4948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005775/1.148, allocations: 4.392 MB / 0.7294 GB, free: 97.64 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001169/1.149, allocations: 0.4906 MB / 0.7298 GB, free: 97.43 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002501/1.15, allocations: 33.55 kB / 0.7299 GB, free: 97.43 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001065/1.151, allocations: 104.1 kB / 0.73 GB, free: 97.43 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002753/1.151, allocations: 121.6 kB / 0.7301 GB, free: 97.43 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001005/1.151, allocations: 49.64 kB / 0.7301 GB, free: 97.43 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001714/1.153, allocations: 1.302 MB / 0.7314 GB, free: 96.98 MB / 0.4948 GB Notification: Performance of sort global known variables: time 4.7e-07/1.153, allocations: 0 / 0.7314 GB, free: 96.98 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.001916/1.155, allocations: 0.6201 MB / 0.732 GB, free: 96.92 MB / 0.4948 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,voltageController.PI_d.x,voltageController.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.0005542/1.155, allocations: 415.1 kB / 0.7324 GB, free: 96.79 MB / 0.4948 GB Notification: Performance of simCode: created initialization part: time 0.003537/1.159, allocations: 2.604 MB / 0.735 GB, free: 95.7 MB / 0.4948 GB Notification: Performance of simCode: created event and clocks part: time 5.17e-06/1.159, allocations: 1.406 kB / 0.735 GB, free: 95.7 MB / 0.4948 GB Notification: Performance of simCode: created simulation system equations: time 0.002364/1.161, allocations: 1.65 MB / 0.7366 GB, free: 94.86 MB / 0.4948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002657/1.164, allocations: 489 kB / 0.737 GB, free: 94.73 MB / 0.4948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008374/1.172, allocations: 4.723 MB / 0.7416 GB, free: 92.84 MB / 0.4948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001964/1.174, allocations: 2.278 MB / 0.7439 GB, free: 91.84 MB / 0.4948 GB Notification: Performance of simCode: alias equations: time 0.001716/1.176, allocations: 454.9 kB / 0.7443 GB, free: 91.8 MB / 0.4948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004593/1.177, allocations: 151.6 kB / 0.7444 GB, free: 91.79 MB / 0.4948 GB Notification: Performance of SimCode: time 8.11e-07/1.177, allocations: 0 / 0.7444 GB, free: 91.79 MB / 0.4948 GB Notification: Performance of Templates: time 0.0492/1.226, allocations: 34.88 MB / 0.7785 GB, free: 89.78 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)