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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/Modelica 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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001197/0.001197, allocations: 110.4 kB / 16.92 MB, free: 6.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001248/0.001248, allocations: 191.4 kB / 17.85 MB, free: 5.414 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.279/1.279, allocations: 205.1 MB / 223.7 MB, free: 12.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2434/0.2434, allocations: 48.85 MB / 319.9 MB, free: 11.1 MB / 270.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001544/0.001544, allocations: 67.39 kB / 390.2 MB, free: 48.84 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0787/0.08025, allocations: 59.17 MB / 449.3 MB, free: 9.668 MB / 334.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.HRB.Simulators.TestPI): time 0.002775/0.08307, allocations: 1.648 MB / 451 MB, free: 7.996 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001125/0.08422, allocations: 0.6991 MB / 451.7 MB, free: 7.289 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.273e-05/0.08433, allocations: 0 / 451.7 MB, free: 7.289 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001751/0.08454, allocations: 55.81 kB / 451.7 MB, free: 7.234 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.15e-05/0.08464, allocations: 55.67 kB / 451.8 MB, free: 7.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004584/0.08511, allocations: 119.7 kB / 451.9 MB, free: 7.062 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002255/0.08534, allocations: 171.5 kB / 452.1 MB, free: 6.895 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.521e-05/0.08544, allocations: 17.72 kB / 452.1 MB, free: 6.879 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.46e-05/0.08554, allocations: 71.75 kB / 452.2 MB, free: 6.809 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001475/0.0857, allocations: 95.7 kB / 452.3 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.705e-05/0.08573, allocations: 12 kB / 452.3 MB, free: 6.703 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001445/0.08588, allocations: 75.94 kB / 452.4 MB, free: 6.629 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.282e-05/0.08596, allocations: 43.78 kB / 452.4 MB, free: 6.586 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.623e-05/0.08606, allocations: 71.58 kB / 452.5 MB, free: 6.516 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002755/0.08634, allocations: 195.4 kB / 452.7 MB, free: 6.324 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.08635, allocations: 0 / 452.7 MB, free: 6.324 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.08636, allocations: 0 / 452.7 MB, free: 6.324 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.08637, allocations: 0 / 452.7 MB, free: 6.324 MB / 334.1 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.000795/0.08717, allocations: 0.5215 MB / 453.2 MB, free: 5.742 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.844e-05/0.08721, allocations: 11.89 kB / 453.2 MB, free: 5.73 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.656e-05/0.08727, allocations: 42.73 kB / 453.2 MB, free: 5.68 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.622e-05/0.08733, allocations: 16.75 kB / 453.2 MB, free: 5.664 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002339/0.08757, allocations: 227.9 kB / 453.5 MB, free: 5.402 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.909e-05/0.08759, allocations: 4.375 kB / 453.5 MB, free: 5.398 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.131e-05/0.08763, allocations: 16.31 kB / 453.5 MB, free: 5.383 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000351/0.08799, allocations: 173.7 kB / 453.7 MB, free: 5.199 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.937e-06/0.08801, allocations: 0 / 453.7 MB, free: 5.199 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.706e-05/0.08803, allocations: 0 / 453.7 MB, free: 5.199 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.504e-06/0.08804, allocations: 4 kB / 453.7 MB, free: 5.195 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002193/0.08827, allocations: 99.88 kB / 453.8 MB, free: 5.098 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006302/0.08891, allocations: 0.536 MB / 454.3 MB, free: 4.504 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000309/0.08923, allocations: 142.4 kB / 454.4 MB, free: 4.355 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001817/0.08942, allocations: 96.81 kB / 454.5 MB, free: 4.258 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.123e-05/0.08945, allocations: 8 kB / 454.5 MB, free: 4.25 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003599/0.08982, allocations: 177 kB / 454.7 MB, free: 4.059 MB / 334.1 MB Notification: Performance of pre-optimization done (n=17): time 1.723e-06/0.08983, allocations: 0 / 454.7 MB, free: 4.059 MB / 334.1 MB Notification: Performance of matching and sorting (n=17): time 0.0008023/0.09063, allocations: 426.9 kB / 455.1 MB, free: 3.629 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.745e-05/0.0907, allocations: 89.09 kB / 455.2 MB, free: 3.523 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000184/0.09089, allocations: 194.8 kB / 455.4 MB, free: 3.32 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.323e-05/0.09092, allocations: 33.7 kB / 455.4 MB, free: 3.281 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.136e-05/0.091, allocations: 116.5 kB / 455.6 MB, free: 3.164 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.052e-05/0.09105, allocations: 43.39 kB / 455.6 MB, free: 3.121 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.31e-05/0.09112, allocations: 41.7 kB / 455.6 MB, free: 3.074 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.64e-05/0.09122, allocations: 334.8 kB / 456 MB, free: 2.738 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001738/0.0914, allocations: 83.95 kB / 456 MB, free: 2.656 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001808/0.09159, allocations: 120.1 kB / 456.2 MB, free: 2.523 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008811/0.09248, allocations: 0.4901 MB / 456.7 MB, free: 1.996 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.09249, allocations: 0 / 456.7 MB, free: 1.996 MB / 334.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0004941/0.09299, allocations: 319.1 kB / 457 MB, free: 1.672 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.561e-05/0.09304, allocations: 37.69 kB / 457 MB, free: 1.629 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.09305, allocations: 4 kB / 457 MB, free: 1.625 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/0.09307, allocations: 0 / 457 MB, free: 1.625 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001343/0.09321, allocations: 31.92 kB / 457 MB, free: 1.594 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.573e-06/0.09322, allocations: 0 / 457 MB, free: 1.594 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001299/0.09336, allocations: 23.83 kB / 457.1 MB, free: 1.57 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.585e-05/0.09338, allocations: 8 kB / 457.1 MB, free: 1.562 MB / 334.1 MB Warning: Assuming fixed start value for the following 1 variables: digitalPI.e_int:DISCRETE(start = digitalPI.CSstart / digitalPI.Kp * digitalPI.Ti fixed = true ) "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 (digitalPI.firstTrigger,$PRE.digitalPI.firstTrigger,digitalPI.sampleTrigger,$whenCondition1,$PRE.digitalPI.e_int,timeTable.nextEventScaled,timeTable.nextEvent,$PRE.timeTable.nextEvent,timeTable.last,timeTable.b,timeTable.a,digitalPI.CS,digitalPI.CSwind,digitalPI.e_int_wind,digitalPI.e_int,digitalPI.e,$whenCondition2,integrator.local_reset) * Number of discrete states: 0 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000186/0.09357, allocations: 187.5 kB / 457.2 MB, free: 1.363 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.999e-05/0.09362, allocations: 27.78 kB / 457.3 MB, free: 1.336 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.302e-05/0.09366, allocations: 17.88 kB / 457.3 MB, free: 1.324 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.09367, allocations: 0 / 457.3 MB, free: 1.324 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.419e-06/0.09368, allocations: 0 / 457.3 MB, free: 1.324 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.09369, allocations: 3.938 kB / 457.3 MB, free: 1.32 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008335/0.09452, allocations: 0.6966 MB / 458 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.09454, allocations: 0 / 458 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.838e-05/0.09459, allocations: 4 kB / 458 MB, free: 0.5586 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.115e-06/0.0946, allocations: 3.938 kB / 458 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.019e-05/0.09463, allocations: 11.92 kB / 458 MB, free: 0.543 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.09464, allocations: 0 / 458 MB, free: 0.543 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.09464, allocations: 0 / 458 MB, free: 0.543 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008245/0.09547, allocations: 0.5738 MB / 458.6 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.027e-05/0.09553, allocations: 92.89 kB / 458.7 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.379e-05/0.09558, allocations: 15.92 kB / 458.7 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000145/0.09573, allocations: 15.98 kB / 458.7 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.673e-05/0.09578, allocations: 7.984 kB / 458.7 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.579e-05/0.09581, allocations: 16 kB / 458.7 MB, free: 15.79 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001112/0.09593, allocations: 152 kB / 458.9 MB, free: 15.64 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.09593, allocations: 0 / 458.9 MB, free: 15.64 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003061/0.09625, allocations: 55.98 kB / 458.9 MB, free: 15.58 MB / 350.1 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) * Number of clocked states: 0 () * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001126/0.09738, allocations: 1.136 MB / 460.1 MB, free: 14.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004827/0.09787, allocations: 307.1 kB / 460.4 MB, free: 14.1 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.475e-06/0.09789, allocations: 320 / 460.4 MB, free: 14.1 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002299/0.09812, allocations: 195.2 kB / 460.6 MB, free: 13.89 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003408/0.09848, allocations: 31.98 kB / 460.6 MB, free: 13.86 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002692/0.1012, allocations: 2.451 MB / 463 MB, free: 11.3 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002401/0.1014, allocations: 0.724 MB / 463.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.388e-05/0.1015, allocations: 8.641 kB / 463.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.151e-05/0.1016, allocations: 47.42 kB / 463.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.1016, allocations: 0 / 463.8 MB, free: 10.5 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02022/0.1218, allocations: 4.208 MB / 468 MB, free: 6.227 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.546/6.668, allocations: 15.83 kB / 468 MB, free: 6.211 MB / 350.1 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 & python3 -m fmpy simulate --output-file ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI_res.csv --start-time 0 --stop-time 120 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.048 ThermoPower_ThermoPower_Examples_HRB_Simulators_TestPI.fmu > ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.pipe 2>&1)