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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009123/0.0009124, allocations: 192.8 kB / 7.807 MB, free: 2.492 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.026/1.026, allocations: 205.2 MB / 213.4 MB, free: 13.91 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.0008143/0.0008143, allocations: 91.67 kB / 261.4 MB, free: 13.54 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.1531/0.1531, allocations: 43.5 MB / 352.8 MB, free: 1.961 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.51e-06/5.54e-06, allocations: 0 / 417.7 MB, free: 40.56 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2052/0.2052, allocations: 58.83 MB / 476.5 MB, free: 5.211 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1291/0.3343, allocations: 122.3 MB / 0.5848 GB, free: 8.621 MB / 426.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001835/0.3345, allocations: 79.95 kB / 0.5848 GB, free: 8.543 MB / 426.7 MB Notification: Performance of FrontEnd: time 0.2973/0.6318, allocations: 60.77 MB / 0.6442 GB, free: 93.26 MB / 474.7 MB Notification: Performance of Transformations before backend: time 0.000154/0.632, allocations: 84.66 kB / 0.6443 GB, free: 93.25 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.004207/0.6362, allocations: 2.886 MB / 0.6471 GB, free: 92.21 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.131e-05/0.6363, allocations: 9.5 kB / 0.6471 GB, free: 92.21 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008611/0.6372, allocations: 402.5 kB / 0.6475 GB, free: 92.03 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00322/0.6404, allocations: 2.165 MB / 0.6496 GB, free: 91.54 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.375e-05/0.6405, allocations: 103 kB / 0.6497 GB, free: 91.54 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002981/0.6408, allocations: 168.2 kB / 0.6499 GB, free: 91.54 MB / 474.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003483/0.6443, allocations: 2.786 MB / 0.6526 GB, free: 91.52 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003884/0.6482, allocations: 3.262 MB / 0.6558 GB, free: 91.11 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.518e-05/0.6482, allocations: 8 kB / 0.6558 GB, free: 91.11 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002073/0.6484, allocations: 5.219 kB / 0.6558 GB, free: 91.11 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.624e-05/0.6485, allocations: 139.6 kB / 0.6559 GB, free: 91.1 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01282/0.6614, allocations: 11.11 MB / 0.6668 GB, free: 88.61 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001393/0.6628, allocations: 1.226 MB / 0.668 GB, free: 88.59 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001155/0.6639, allocations: 1.128 MB / 0.6691 GB, free: 88.57 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002702/0.6642, allocations: 225.6 kB / 0.6693 GB, free: 88.38 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.922e-05/0.6643, allocations: 48.28 kB / 0.6693 GB, free: 88.34 MB / 474.7 MB Notification: Performance of pre-optimization done (n=148): time 2.885e-06/0.6643, allocations: 4 kB / 0.6693 GB, free: 88.34 MB / 474.7 MB Notification: Performance of matching and sorting (n=162): time 0.008043/0.6723, allocations: 5.642 MB / 0.6748 GB, free: 87.38 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.326e-05/0.6724, allocations: 73.03 kB / 0.6749 GB, free: 87.32 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001618/0.674, allocations: 1.453 MB / 0.6763 GB, free: 87.14 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 9.452e-05/0.6741, allocations: 31.67 kB / 0.6763 GB, free: 87.11 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003408/0.6744, allocations: 1.064 MB / 0.6774 GB, free: 86.49 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002724/0.6747, allocations: 0.5308 MB / 0.6779 GB, free: 86.13 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.61e-05/0.6748, allocations: 0 / 0.6779 GB, free: 86.13 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 8.204e-05/0.6749, allocations: 373 kB / 0.6783 GB, free: 85.83 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009455/0.6758, allocations: 0.8837 MB / 0.6791 GB, free: 85.82 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001113/0.677, allocations: 1.307 MB / 0.6804 GB, free: 85.32 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001254/0.6782, allocations: 1.116 MB / 0.6815 GB, free: 85.28 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.312e-06/0.6782, allocations: 3.781 kB / 0.6815 GB, free: 85.28 MB / 474.7 MB Notification: Performance of matching and sorting (n=232) (initialization): time 0.00373/0.682, allocations: 2.801 MB / 0.6842 GB, free: 85.06 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.682, allocations: 3.969 kB / 0.6842 GB, free: 85.06 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.778e-05/0.682, allocations: 15.94 kB / 0.6842 GB, free: 85.06 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009528/0.683, allocations: 443.4 kB / 0.6847 GB, free: 85.03 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001635/0.6846, allocations: 442.8 kB / 0.6851 GB, free: 85.02 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005137/0.6898, allocations: 6.526 MB / 0.6915 GB, free: 81.23 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001616/0.6914, allocations: 67.5 kB / 0.6915 GB, free: 81.22 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000156/0.6916, allocations: 76.45 kB / 0.6916 GB, free: 81.22 MB / 474.7 MB 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 (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.0003418/0.6919, allocations: 160 kB / 0.6918 GB, free: 81.1 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003316/0.6923, allocations: 193.6 kB / 0.6919 GB, free: 81 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004857/0.6971, allocations: 2.888 MB / 0.6948 GB, free: 80.85 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.687e-05/0.6972, allocations: 14.94 kB / 0.6948 GB, free: 80.85 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.193e-05/0.6972, allocations: 8.219 kB / 0.6948 GB, free: 80.85 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.416e-05/0.6972, allocations: 8.016 kB / 0.6948 GB, free: 80.85 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00862/0.7058, allocations: 5.734 MB / 0.7004 GB, free: 80.32 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.482e-06/0.7059, allocations: 2.812 kB / 0.7004 GB, free: 80.32 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00109/0.707, allocations: 240.2 kB / 0.7006 GB, free: 80.32 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001968/0.7089, allocations: 0.8389 MB / 0.7014 GB, free: 80.29 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001039/0.709, allocations: 16.3 kB / 0.7015 GB, free: 80.29 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008806/0.7179, allocations: 9.582 MB / 0.7108 GB, free: 73.08 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/0.7179, allocations: 4.125 kB / 0.7108 GB, free: 73.07 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.005244/0.7231, allocations: 4.455 MB / 0.7152 GB, free: 69.02 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007913/0.7239, allocations: 493.9 kB / 0.7156 GB, free: 68.57 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000289/0.7242, allocations: 14.84 kB / 0.7157 GB, free: 68.56 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001057/0.7253, allocations: 57.66 kB / 0.7157 GB, free: 68.53 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001458/0.7254, allocations: 90.36 kB / 0.7158 GB, free: 68.47 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001012/0.7256, allocations: 50.38 kB / 0.7158 GB, free: 68.43 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.001217/0.7268, allocations: 1.091 MB / 0.7169 GB, free: 67.46 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001682/0.7285, allocations: 0.5382 MB / 0.7174 GB, free: 66.92 MB / 474.7 MB 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 (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.0005056/0.729, allocations: 388.1 kB / 0.7178 GB, free: 66.61 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.002752/0.7317, allocations: 2.531 MB / 0.7203 GB, free: 64.25 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.7318, allocations: 0 / 0.7203 GB, free: 64.25 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001599/0.7334, allocations: 1.529 MB / 0.7218 GB, free: 62.82 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001561/0.7349, allocations: 399.8 kB / 0.7222 GB, free: 62.51 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006772/0.7417, allocations: 4.74 MB / 0.7268 GB, free: 58.24 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001839/0.7436, allocations: 2.412 MB / 0.7291 GB, free: 56.33 MB / 474.7 MB Notification: Performance of SimCode: time 6.32e-07/0.7436, allocations: 4 kB / 0.7291 GB, free: 56.32 MB / 474.7 MB Notification: Performance of Templates: time 0.03889/0.7825, allocations: 29.49 MB / 0.7579 GB, free: 32.06 MB / 474.7 MB 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)