Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Rotational.TestDCPMMachine.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(HanserModelica.Rotational.TestDCPMMachine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Rotational.TestDCPMMachine") translateModel(HanserModelica.Rotational.TestDCPMMachine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Rotational.TestDCPMMachine") [: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 4.0.0+maint.om/package.mo): time 0.004374/0.004374, allocations: 182.1 kB / 7.455 MB, free: 2.238 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.06419/0.06419, allocations: 8.707 MB / 16.57 MB, free: 396 kB / 10.45 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.257/1.257, allocations: 221.4 MB / 240.5 MB, free: 8.238 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001007/0.001007, allocations: 99.92 kB / 293.5 MB, free: 5.535 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 8.236e-06/8.275e-06, allocations: 0 / 352.1 MB, free: 10.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2593/0.2593, allocations: 52.54 MB / 404.6 MB, free: 26.81 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1004/0.3598, allocations: 81.31 MB / 485.9 MB, free: 9.371 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001895/0.36, allocations: 71.95 kB / 486 MB, free: 9.301 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.01322/0.3732, allocations: 4.779 MB / 490.8 MB, free: 4.527 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.724e-05/0.3733, allocations: 4 kB / 490.8 MB, free: 4.523 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.0007968/0.3741, allocations: 0.5336 MB / 491.3 MB, free: 3.945 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.952e-05/0.3741, allocations: 8.031 kB / 491.3 MB, free: 3.938 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.979e-05/0.3742, allocations: 31.62 kB / 491.4 MB, free: 3.906 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003532/0.3746, allocations: 259.8 kB / 491.6 MB, free: 3.613 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.007e-05/0.3746, allocations: 15.91 kB / 491.6 MB, free: 3.598 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.762e-05/0.3747, allocations: 24 kB / 491.6 MB, free: 3.574 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003586/0.375, allocations: 169.3 kB / 491.8 MB, free: 3.406 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000398/0.3754, allocations: 196.8 kB / 492 MB, free: 3.207 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.404e-05/0.3755, allocations: 8 kB / 492 MB, free: 3.199 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.866e-05/0.3755, allocations: 3.906 kB / 492 MB, free: 3.195 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.538e-05/0.3755, allocations: 8 kB / 492 MB, free: 3.188 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001762/0.3773, allocations: 1.035 MB / 493.1 MB, free: 2.082 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001699/0.3775, allocations: 93.64 kB / 493.1 MB, free: 1.984 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001074/0.3776, allocations: 52.86 kB / 493.2 MB, free: 1.93 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.102e-05/0.3776, allocations: 4 kB / 493.2 MB, free: 1.926 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.005e-05/0.3777, allocations: 38.75 kB / 493.2 MB, free: 1.879 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 1.673e-06/0.3777, allocations: 0 / 493.2 MB, free: 1.879 MB / 362.7 MB Notification: Performance of matching and sorting (n=16): time 0.000914/0.3786, allocations: 473 kB / 493.7 MB, free: 1.367 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.563e-05/0.3786, allocations: 63.39 kB / 493.8 MB, free: 1.293 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001661/0.3788, allocations: 159.5 kB / 493.9 MB, free: 1.125 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.93e-05/0.3788, allocations: 25.7 kB / 493.9 MB, free: 1.094 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.916e-05/0.3789, allocations: 171.9 kB / 494.1 MB, free: 0.9219 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.916e-05/0.379, allocations: 51.2 kB / 494.2 MB, free: 0.8711 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.185e-06/0.379, allocations: 4 kB / 494.2 MB, free: 0.8672 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.3792, allocations: 334.7 kB / 494.5 MB, free: 0.5312 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.777e-05/0.3792, allocations: 36 kB / 494.5 MB, free: 0.4961 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001156/0.3794, allocations: 81.72 kB / 494.6 MB, free: 412 kB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.824e-05/0.3795, allocations: 51.92 kB / 494.7 MB, free: 360 kB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.3795, allocations: 4 kB / 494.7 MB, free: 356 kB / 362.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003268/0.3798, allocations: 189.5 kB / 494.8 MB, free: 160 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.3798, allocations: 4 kB / 494.9 MB, free: 156 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.352e-06/0.3798, allocations: 0 / 494.9 MB, free: 156 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001428/0.38, allocations: 24.84 kB / 494.9 MB, free: 128 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002425/0.3802, allocations: 47.91 kB / 494.9 MB, free: 80 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001137/0.3814, allocations: 1.217 MB / 496.1 MB, free: 14.74 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001335/0.3815, allocations: 12.06 kB / 496.2 MB, free: 14.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.773e-05/0.3816, allocations: 7.984 kB / 496.2 MB, free: 14.72 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (22): * Single equations (assignments): 21 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.965e-05/0.3817, allocations: 108.9 kB / 496.3 MB, free: 14.61 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.851e-05/0.3817, allocations: 23.72 kB / 496.3 MB, free: 14.59 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.943e-05/0.3818, allocations: 13.59 kB / 496.3 MB, free: 14.58 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.3818, allocations: 8 kB / 496.3 MB, free: 14.57 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.3818, allocations: 0 / 496.3 MB, free: 14.57 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.3818, allocations: 3.984 kB / 496.3 MB, free: 14.57 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007445/0.3826, allocations: 0.516 MB / 496.8 MB, free: 14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.3826, allocations: 0 / 496.8 MB, free: 14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002418/0.3828, allocations: 51.97 kB / 496.9 MB, free: 13.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.783e-05/0.3829, allocations: 16.86 kB / 496.9 MB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.615e-05/0.3829, allocations: 0 / 496.9 MB, free: 13.93 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009868/0.3839, allocations: 1.224 MB / 498.1 MB, free: 12.59 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.474e-06/0.3839, allocations: 4.031 kB / 498.1 MB, free: 12.59 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000435/0.3844, allocations: 341.3 kB / 498.5 MB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.286e-05/0.3845, allocations: 100.8 kB / 498.6 MB, free: 12.1 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.976e-05/0.3845, allocations: 3.906 kB / 498.6 MB, free: 12.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001733/0.3847, allocations: 19.98 kB / 498.6 MB, free: 12.07 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.046e-05/0.3848, allocations: 7.984 kB / 498.6 MB, free: 12.07 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.392e-05/0.3848, allocations: 4 kB / 498.6 MB, free: 12.06 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001192/0.3849, allocations: 132.3 kB / 498.7 MB, free: 11.93 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003298/0.3852, allocations: 48 kB / 498.8 MB, free: 11.89 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (machine.inductor.i,load.phi,inertia.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001492/0.3854, allocations: 103.2 kB / 498.9 MB, free: 11.77 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004259/0.3858, allocations: 229.6 kB / 499.1 MB, free: 11.54 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.3858, allocations: 0 / 499.1 MB, free: 11.54 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002169/0.3861, allocations: 157.8 kB / 499.2 MB, free: 11.38 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003009/0.3864, allocations: 24.17 kB / 499.3 MB, free: 11.35 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009878/0.3874, allocations: 485.5 kB / 499.7 MB, free: 10.84 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004492/0.3878, allocations: 0.7858 MB / 0.4888 GB, free: 10.03 MB / 378.7 MB Notification: Performance of SimCode: time 2.21e-07/0.3878, allocations: 0 / 0.4888 GB, free: 10.03 MB / 378.7 MB Notification: Performance of Templates: time 0.00532/0.3932, allocations: 2.066 MB / 0.4908 GB, free: 7.98 MB / 378.7 MB make -j1 -f HanserModelica_HanserModelica.Rotational.TestDCPMMachine.makefile (rm -f HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe ; mkfifo HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe >> ../files/HanserModelica_HanserModelica.Rotational.TestDCPMMachine.sim & ./HanserModelica_HanserModelica.Rotational.TestDCPMMachine -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.Rotational.TestDCPMMachine.pipe 2>&1)