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: "" <> buildModelFMU(ThermoPower.Examples.HRB.Simulators.TestPI,fileNamePrefix="ThermoPower_ThermoPower_Examples_HRB_Simulators_TestPI",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Examples.HRB.Simulators.TestPI,fileNamePrefix="ThermoPower_ThermoPower_Examples_HRB_Simulators_TestPI",fmuType="me",version="2.0",platforms={"static"}) [: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.001072/0.001072, allocations: 184 kB / 8.138 MB, free: 2.223 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.004/1.004, allocations: 205.2 MB / 213.7 MB, free: 13.92 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.000848/0.0008484, allocations: 98.19 kB / 261.8 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2821/0.2821, allocations: 48.76 MB / 358.5 MB, free: 53.23 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0979/0.38, allocations: 66.37 MB / 424.8 MB, free: 8.105 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09448/0.4745, allocations: 60.24 MB / 485.1 MB, free: 11.73 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2253/0.6998, allocations: 85.94 MB / 0.5576 GB, free: 14.84 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000197/0.7001, allocations: 79.95 kB / 0.5577 GB, free: 14.76 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.01076/0.7108, allocations: 3.919 MB / 0.5615 GB, free: 10.84 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.192e-05/0.7109, allocations: 8 kB / 0.5615 GB, free: 10.83 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.833e-05/0.711, allocations: 27.7 kB / 0.5616 GB, free: 10.8 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003053/0.7113, allocations: 233.9 kB / 0.5618 GB, free: 10.54 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.864e-05/0.7113, allocations: 8 kB / 0.5618 GB, free: 10.53 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.902e-05/0.7113, allocations: 7.906 kB / 0.5618 GB, free: 10.52 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001554/0.7115, allocations: 79.97 kB / 0.5619 GB, free: 10.45 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002217/0.7117, allocations: 156.6 kB / 0.562 GB, free: 10.28 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.434e-06/0.7118, allocations: 0 / 0.562 GB, free: 10.28 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.787e-05/0.7118, allocations: 0 / 0.562 GB, free: 10.28 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.7118, allocations: 4 kB / 0.562 GB, free: 10.28 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006415/0.7124, allocations: 0.5298 MB / 0.5625 GB, free: 9.703 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001845/0.7126, allocations: 118.5 kB / 0.5627 GB, free: 9.578 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001199/0.7128, allocations: 84.84 kB / 0.5627 GB, free: 9.492 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.759e-05/0.7128, allocations: 4 kB / 0.5627 GB, free: 9.488 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002066/0.713, allocations: 169 kB / 0.5629 GB, free: 9.305 MB / 394.7 MB Notification: Performance of pre-optimization done (n=17): time 2.705e-06/0.713, allocations: 7.984 kB / 0.5629 GB, free: 9.297 MB / 394.7 MB Notification: Performance of matching and sorting (n=17): time 0.0003999/0.7134, allocations: 213.3 kB / 0.5631 GB, free: 9.082 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.525e-05/0.7135, allocations: 81.22 kB / 0.5632 GB, free: 8.984 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001457/0.7136, allocations: 181.6 kB / 0.5634 GB, free: 8.797 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 2.355e-05/0.7137, allocations: 25.7 kB / 0.5634 GB, free: 8.766 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.435e-05/0.7137, allocations: 108.4 kB / 0.5635 GB, free: 8.648 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.655e-05/0.7138, allocations: 35.59 kB / 0.5635 GB, free: 8.613 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.021e-05/0.7138, allocations: 0 / 0.5635 GB, free: 8.613 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001204/0.7139, allocations: 330.8 kB / 0.5638 GB, free: 8.281 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001112/0.714, allocations: 67.97 kB / 0.5639 GB, free: 8.215 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001213/0.7141, allocations: 108.3 kB / 0.564 GB, free: 8.094 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001403/0.7143, allocations: 71.91 kB / 0.5641 GB, free: 8.023 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-06/0.7143, allocations: 0 / 0.5641 GB, free: 8.023 MB / 394.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003499/0.7147, allocations: 233.2 kB / 0.5643 GB, free: 7.789 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.691e-05/0.7147, allocations: 4 kB / 0.5643 GB, free: 7.785 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.421e-06/0.7147, allocations: 3.359 kB / 0.5643 GB, free: 7.785 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.149e-05/0.7147, allocations: 4 kB / 0.5643 GB, free: 7.781 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001585/0.7149, allocations: 40.05 kB / 0.5643 GB, free: 7.742 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.7149, allocations: 4 kB / 0.5644 GB, free: 7.738 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001315/0.715, allocations: 27.83 kB / 0.5644 GB, free: 7.711 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.632e-05/0.7151, allocations: 8 kB / 0.5644 GB, free: 7.703 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.0001649/0.7152, allocations: 152.1 kB / 0.5645 GB, free: 7.543 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.11e-05/0.7153, allocations: 23.75 kB / 0.5646 GB, free: 7.52 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.448e-05/0.7153, allocations: 13.59 kB / 0.5646 GB, free: 7.512 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.476e-06/0.7153, allocations: 4 kB / 0.5646 GB, free: 7.508 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.7153, allocations: 3.906 kB / 0.5646 GB, free: 7.504 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.7153, allocations: 3.984 kB / 0.5646 GB, free: 7.5 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006944/0.716, allocations: 0.5505 MB / 0.5651 GB, free: 6.906 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.703e-06/0.716, allocations: 0 / 0.5651 GB, free: 6.906 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.733e-05/0.7161, allocations: 11.91 kB / 0.5651 GB, free: 6.895 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.444e-06/0.7161, allocations: 0 / 0.5651 GB, free: 6.895 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.35e-05/0.7161, allocations: 11.98 kB / 0.5651 GB, free: 6.883 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.7162, allocations: 0 / 0.5651 GB, free: 6.883 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.721e-06/0.7162, allocations: 5.062 kB / 0.5651 GB, free: 6.879 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0005581/0.7167, allocations: 445.8 kB / 0.5656 GB, free: 6.43 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0008131/0.7176, allocations: 0.9213 MB / 0.5665 GB, free: 5.488 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.401e-05/0.7176, allocations: 93.23 kB / 0.5666 GB, free: 5.379 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.464e-05/0.7177, allocations: 8 kB / 0.5666 GB, free: 5.371 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000174/0.7178, allocations: 24.05 kB / 0.5666 GB, free: 5.348 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.039e-05/0.7179, allocations: 8.734 kB / 0.5666 GB, free: 5.34 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.459e-05/0.7179, allocations: 12 kB / 0.5666 GB, free: 5.328 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0001018/0.718, allocations: 143.9 kB / 0.5667 GB, free: 5.191 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0008482/0.7189, allocations: 67.83 kB / 0.5668 GB, free: 5.125 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.0002036/0.7191, allocations: 131.2 kB / 0.5669 GB, free: 4.988 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0002924/0.7194, allocations: 201 kB / 0.5671 GB, free: 4.789 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.7194, allocations: 0 / 0.5671 GB, free: 4.789 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001545/0.7196, allocations: 137.6 kB / 0.5673 GB, free: 4.648 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002697/0.7198, allocations: 33.03 kB / 0.5673 GB, free: 4.617 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005309/0.7204, allocations: 260.8 kB / 0.5675 GB, free: 4.336 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003413/0.7207, allocations: 0.7446 MB / 0.5683 GB, free: 3.57 MB / 394.7 MB Notification: Performance of SimCode: time 2.4e-07/0.7208, allocations: 0 / 0.5683 GB, free: 3.57 MB / 394.7 MB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Examples_HRB_Simulators_TestPI_fmu --startTime=0 --stopTime=120 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Examples_HRB_Simulators_TestPI.fmu > ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.pipe 2>&1)