Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.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/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/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(ThermoPower.Examples.HRB.Simulators.TestPI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI") translateModel(ThermoPower.Examples.HRB.Simulators.TestPI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI") [: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.0009214/0.0009216, allocations: 191.2 kB / 8.135 MB, free: 2.211 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.033/1.033, allocations: 205.2 MB / 213.7 MB, free: 13.85 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.0008347/0.0008347, allocations: 92.67 kB / 261.7 MB, free: 13.54 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.3208/0.3208, allocations: 48.76 MB / 358.4 MB, free: 53.2 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 5.551e-06/5.581e-06, allocations: 0 / 424.7 MB, free: 8.207 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1077, allocations: 60.26 MB / 485 MB, free: 11.81 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2616/0.3693, allocations: 85.93 MB / 0.5575 GB, free: 14.86 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002189/0.3696, allocations: 73.03 kB / 0.5576 GB, free: 14.79 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.01025/0.3799, allocations: 3.431 MB / 0.5609 GB, free: 11.42 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.188e-05/0.3799, allocations: 4 kB / 0.561 GB, free: 11.41 MB / 394.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 20 * Number of variables: 20 Notification: Performance of Generate backend data structure: time 0.0005698/0.3805, allocations: 0.4908 MB / 0.5614 GB, free: 10.87 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.3805, allocations: 10.56 kB / 0.5614 GB, free: 10.86 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.871e-05/0.3806, allocations: 19.72 kB / 0.5615 GB, free: 10.84 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003012/0.3809, allocations: 227.3 kB / 0.5617 GB, free: 10.58 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.145e-05/0.3809, allocations: 8 kB / 0.5617 GB, free: 10.57 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.295e-05/0.381, allocations: 15.89 kB / 0.5617 GB, free: 10.56 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001692/0.3812, allocations: 75.97 kB / 0.5618 GB, free: 10.48 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002182/0.3814, allocations: 160.1 kB / 0.5619 GB, free: 10.31 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.3814, allocations: 0 / 0.5619 GB, free: 10.31 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.195e-05/0.3814, allocations: 7.984 kB / 0.5619 GB, free: 10.3 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.3814, allocations: 0 / 0.5619 GB, free: 10.3 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006139/0.3821, allocations: 0.5259 MB / 0.5624 GB, free: 9.734 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001736/0.3822, allocations: 122.5 kB / 0.5626 GB, free: 9.605 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001212/0.3824, allocations: 90.38 kB / 0.5626 GB, free: 9.516 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.285e-05/0.3824, allocations: 4 kB / 0.5627 GB, free: 9.512 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001992/0.3826, allocations: 161 kB / 0.5628 GB, free: 9.336 MB / 394.7 MB Notification: Performance of pre-optimization done (n=17): time 1.894e-06/0.3826, allocations: 0 / 0.5628 GB, free: 9.336 MB / 394.7 MB Notification: Performance of matching and sorting (n=17): time 0.0004175/0.383, allocations: 217.4 kB / 0.563 GB, free: 9.117 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.206e-05/0.3831, allocations: 85.05 kB / 0.5631 GB, free: 9.016 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001442/0.3833, allocations: 177.6 kB / 0.5633 GB, free: 8.832 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.092e-05/0.3833, allocations: 29.64 kB / 0.5633 GB, free: 8.797 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.401e-05/0.3833, allocations: 100.4 kB / 0.5634 GB, free: 8.691 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.043e-05/0.3834, allocations: 47.58 kB / 0.5634 GB, free: 8.645 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.139e-05/0.3834, allocations: 0 / 0.5634 GB, free: 8.645 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.075e-05/0.3835, allocations: 330.8 kB / 0.5637 GB, free: 8.312 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.918e-05/0.3836, allocations: 67.98 kB / 0.5638 GB, free: 8.246 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001149/0.3837, allocations: 104.3 kB / 0.5639 GB, free: 8.129 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001402/0.3839, allocations: 71.95 kB / 0.564 GB, free: 8.059 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.3839, allocations: 6.156 kB / 0.564 GB, free: 8.055 MB / 394.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003538/0.3842, allocations: 230 kB / 0.5642 GB, free: 7.824 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.212e-05/0.3843, allocations: 10.44 kB / 0.5642 GB, free: 7.816 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.785e-06/0.3843, allocations: 4.5 kB / 0.5642 GB, free: 7.812 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/0.3843, allocations: 0 / 0.5642 GB, free: 7.812 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001571/0.3845, allocations: 31.98 kB / 0.5643 GB, free: 7.781 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.073e-05/0.3845, allocations: 3.984 kB / 0.5643 GB, free: 7.777 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001327/0.3846, allocations: 33.33 kB / 0.5643 GB, free: 7.746 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.163e-05/0.3847, allocations: 12 kB / 0.5643 GB, free: 7.734 MB / 394.7 MB Warning: Assuming fixed start value for the following 1 variables: digitalPI.e_int:DISCRETE(start = digitalPI.CSstart * digitalPI.Ti / digitalPI.Kp fixed = false ) "Integrated error" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 18 ($PRE.digitalPI.firstTrigger,digitalPI.firstTrigger,$whenCondition1,digitalPI.sampleTrigger,$whenCondition2,digitalPI.e,$PRE.digitalPI.e_int,digitalPI.e_int,digitalPI.e_int_wind,digitalPI.CSwind,digitalPI.CS,timeTable.a,timeTable.b,timeTable.last,$PRE.timeTable.nextEvent,timeTable.nextEvent,timeTable.nextEventScaled,integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 17 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001667/0.3848, allocations: 146.6 kB / 0.5644 GB, free: 7.578 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.261e-05/0.3849, allocations: 19.81 kB / 0.5645 GB, free: 7.559 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.23e-05/0.3849, allocations: 25.58 kB / 0.5645 GB, free: 7.539 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.3849, allocations: 0 / 0.5645 GB, free: 7.539 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.3849, allocations: 3.906 kB / 0.5645 GB, free: 7.535 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/0.385, allocations: 0 / 0.5645 GB, free: 7.535 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006954/0.3857, allocations: 0.5544 MB / 0.565 GB, free: 6.938 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-06/0.3857, allocations: 0 / 0.565 GB, free: 6.938 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.219e-05/0.3857, allocations: 7.906 kB / 0.565 GB, free: 6.93 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.006e-06/0.3857, allocations: 0 / 0.565 GB, free: 6.93 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.377e-05/0.3858, allocations: 9.359 kB / 0.565 GB, free: 6.922 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.3858, allocations: 4 kB / 0.565 GB, free: 6.918 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.3858, allocations: 4 kB / 0.565 GB, free: 6.914 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005509/0.3863, allocations: 442.8 kB / 0.5655 GB, free: 6.469 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.518e-05/0.3864, allocations: 88.92 kB / 0.5656 GB, free: 6.363 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.632e-05/0.3865, allocations: 11.91 kB / 0.5656 GB, free: 6.352 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001699/0.3866, allocations: 28.03 kB / 0.5656 GB, free: 6.324 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.289e-05/0.3867, allocations: 7.984 kB / 0.5656 GB, free: 6.316 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.946e-05/0.3867, allocations: 15.98 kB / 0.5656 GB, free: 6.301 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.192e-05/0.3868, allocations: 139.9 kB / 0.5658 GB, free: 6.168 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003052/0.3871, allocations: 55.98 kB / 0.5658 GB, free: 6.113 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (integrator.y) * Number of discrete variables: 14 (digitalPI.sampleTrigger,$whenCondition1,$whenCondition2,digitalPI.firstTrigger,digitalPI.e,digitalPI.e_int,digitalPI.e_int_wind,digitalPI.CSwind,digitalPI.CS,timeTable.a,timeTable.b,timeTable.last,timeTable.nextEvent,timeTable.nextEventScaled) * Number of discrete states: 7 (timeTable.nextEvent,timeTable.last,timeTable.nextEventScaled,timeTable.b,timeTable.a,$whenCondition2,digitalPI.e_int) * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 5 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000221/0.3874, allocations: 135.2 kB / 0.5659 GB, free: 5.973 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.000299/0.3877, allocations: 193.6 kB / 0.5661 GB, free: 5.777 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.3877, allocations: 0 / 0.5661 GB, free: 5.777 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001509/0.3878, allocations: 134.9 kB / 0.5662 GB, free: 5.641 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002967/0.3881, allocations: 38.06 kB / 0.5663 GB, free: 5.602 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006094/0.3888, allocations: 251.6 kB / 0.5665 GB, free: 5.328 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003184/0.3891, allocations: 0.7423 MB / 0.5672 GB, free: 4.562 MB / 394.7 MB Notification: Performance of SimCode: time 2.41e-07/0.3891, allocations: 0 / 0.5672 GB, free: 4.562 MB / 394.7 MB Notification: Performance of Templates: time 0.00515/0.3942, allocations: 2.077 MB / 0.5693 GB, free: 2.527 MB / 394.7 MB make -j1 -f ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.makefile (rm -f ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.pipe ; mkfifo ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.pipe >> ../files/ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.sim & ./ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI -abortSlowSimulation -alarm=480 -lv LOG_STATS > ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.pipe 2>&1)