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.001132/0.001132, allocations: 108.4 kB / 17.06 MB, free: 5.973 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.001162/0.001162, allocations: 198.8 kB / 18.01 MB, free: 5.051 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.398/1.398, allocations: 205.1 MB / 223.9 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2634/0.2634, allocations: 48.84 MB / 320.1 MB, free: 11 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.001546/0.001546, allocations: 59.91 kB / 450 MB, free: 9.074 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1209/0.1225, allocations: 59.16 MB / 0.4972 GB, free: 13.78 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.HRB.Simulators.TestPI): time 0.002985/0.1255, allocations: 1.646 MB / 0.4988 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001263/0.1268, allocations: 0.7097 MB / 0.4995 GB, free: 11.4 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001091/0.1269, allocations: 0 / 0.4995 GB, free: 11.4 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002058/0.1272, allocations: 55.75 kB / 0.4996 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001109/0.1273, allocations: 59.73 kB / 0.4997 GB, free: 11.29 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005235/0.1278, allocations: 123.7 kB / 0.4998 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002586/0.1281, allocations: 163.5 kB / 0.4999 GB, free: 11 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001107/0.1282, allocations: 21.42 kB / 0.4999 GB, free: 10.98 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001289/0.1283, allocations: 75.81 kB / 0.5 GB, free: 10.9 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001817/0.1285, allocations: 99.64 kB / 0.5001 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.012e-05/0.1286, allocations: 8 kB / 0.5001 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001427/0.1287, allocations: 83.88 kB / 0.5002 GB, free: 10.71 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.638e-05/0.1288, allocations: 39.89 kB / 0.5002 GB, free: 10.68 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.614e-05/0.1289, allocations: 67.59 kB / 0.5003 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002882/0.1292, allocations: 191.2 kB / 0.5005 GB, free: 10.42 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1292, allocations: 3.938 kB / 0.5005 GB, free: 10.42 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1292, allocations: 4 kB / 0.5005 GB, free: 10.41 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.1292, allocations: 0 / 0.5005 GB, free: 10.41 MB / 398.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.0007479/0.13, allocations: 0.5136 MB / 0.501 GB, free: 9.84 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.13, allocations: 11.89 kB / 0.501 GB, free: 9.828 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.29e-05/0.1301, allocations: 50.67 kB / 0.5011 GB, free: 9.77 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.565e-05/0.1301, allocations: 24.78 kB / 0.5011 GB, free: 9.746 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002988/0.1304, allocations: 228.1 kB / 0.5013 GB, free: 9.484 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.684e-05/0.1305, allocations: 8.375 kB / 0.5013 GB, free: 9.477 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.002e-05/0.1305, allocations: 8.312 kB / 0.5013 GB, free: 9.469 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003384/0.1308, allocations: 176.2 kB / 0.5015 GB, free: 9.281 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.1309, allocations: 0 / 0.5015 GB, free: 9.281 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.58e-05/0.1309, allocations: 4 kB / 0.5015 GB, free: 9.277 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.1309, allocations: 0 / 0.5015 GB, free: 9.277 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002176/0.1311, allocations: 95.94 kB / 0.5016 GB, free: 9.184 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007117/0.1318, allocations: 0.536 MB / 0.5021 GB, free: 8.59 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003395/0.1322, allocations: 146.5 kB / 0.5022 GB, free: 8.438 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002247/0.1324, allocations: 100.8 kB / 0.5023 GB, free: 8.336 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.604e-05/0.1325, allocations: 0 / 0.5023 GB, free: 8.336 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003468/0.1328, allocations: 196.8 kB / 0.5025 GB, free: 8.125 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 1.783e-06/0.1328, allocations: 0 / 0.5025 GB, free: 8.125 MB / 398.1 MB Notification: Performance of matching and sorting (n=17): time 0.00103/0.1339, allocations: 423.2 kB / 0.5029 GB, free: 7.699 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001026/0.134, allocations: 81.11 kB / 0.503 GB, free: 7.602 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002094/0.1342, allocations: 202.6 kB / 0.5032 GB, free: 7.391 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.489e-05/0.1342, allocations: 25.7 kB / 0.5032 GB, free: 7.359 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.862e-05/0.1343, allocations: 128.4 kB / 0.5033 GB, free: 7.23 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.576e-05/0.1344, allocations: 51.61 kB / 0.5034 GB, free: 7.18 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.423e-05/0.1345, allocations: 41.7 kB / 0.5034 GB, free: 7.133 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001158/0.1346, allocations: 330.8 kB / 0.5037 GB, free: 6.801 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001774/0.1348, allocations: 79.94 kB / 0.5038 GB, free: 6.723 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002043/0.135, allocations: 116.2 kB / 0.5039 GB, free: 6.594 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000905/0.1359, allocations: 486.8 kB / 0.5044 GB, free: 6.078 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.1359, allocations: 0 / 0.5044 GB, free: 6.078 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005509/0.1365, allocations: 335.5 kB / 0.5047 GB, free: 5.738 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.008e-05/0.1365, allocations: 41.59 kB / 0.5048 GB, free: 5.691 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.432e-06/0.1365, allocations: 0 / 0.5048 GB, free: 5.691 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.086e-05/0.1366, allocations: 4 kB / 0.5048 GB, free: 5.688 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001401/0.1367, allocations: 23.98 kB / 0.5048 GB, free: 5.664 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.141e-05/0.1367, allocations: 11.92 kB / 0.5048 GB, free: 5.652 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001245/0.1369, allocations: 24 kB / 0.5048 GB, free: 5.629 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.872e-05/0.1369, allocations: 11.98 kB / 0.5048 GB, free: 5.617 MB / 398.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.0002006/0.1371, allocations: 180.1 kB / 0.505 GB, free: 5.426 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.409e-05/0.1371, allocations: 19.91 kB / 0.505 GB, free: 5.406 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.896e-05/0.1372, allocations: 13.88 kB / 0.505 GB, free: 5.391 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.133e-06/0.1372, allocations: 11.97 kB / 0.505 GB, free: 5.379 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.94e-06/0.1372, allocations: 0 / 0.505 GB, free: 5.379 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.21e-06/0.1372, allocations: 7.938 kB / 0.5051 GB, free: 5.371 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009076/0.1381, allocations: 0.6834 MB / 0.5057 GB, free: 4.625 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.374e-06/0.1381, allocations: 0 / 0.5057 GB, free: 4.625 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.298e-05/0.1382, allocations: 7.984 kB / 0.5057 GB, free: 4.617 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.4e-06/0.1382, allocations: 11.88 kB / 0.5057 GB, free: 4.605 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.84e-05/0.1382, allocations: 0 / 0.5057 GB, free: 4.605 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.502e-06/0.1383, allocations: 4 kB / 0.5057 GB, free: 4.602 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.1383, allocations: 7.984 kB / 0.5058 GB, free: 4.594 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008619/0.1391, allocations: 0.5711 MB / 0.5063 GB, free: 4 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.653e-05/0.1392, allocations: 100.9 kB / 0.5064 GB, free: 3.883 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.642e-05/0.1392, allocations: 4 kB / 0.5064 GB, free: 3.879 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001501/0.1394, allocations: 20.05 kB / 0.5064 GB, free: 3.859 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.535e-05/0.1395, allocations: 7.984 kB / 0.5064 GB, free: 3.852 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.662e-05/0.1395, allocations: 8 kB / 0.5064 GB, free: 3.844 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001139/0.1396, allocations: 155 kB / 0.5066 GB, free: 3.691 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1396, allocations: 0 / 0.5066 GB, free: 3.691 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003237/0.1399, allocations: 55.89 kB / 0.5066 GB, free: 3.637 MB / 398.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.00128/0.1412, allocations: 1.136 MB / 0.5078 GB, free: 2.469 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005312/0.1418, allocations: 311.2 kB / 0.508 GB, free: 2.152 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.1418, allocations: 0 / 0.508 GB, free: 2.152 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002739/0.1421, allocations: 191.3 kB / 0.5082 GB, free: 1.953 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003828/0.1425, allocations: 39.97 kB / 0.5083 GB, free: 1.914 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003043/0.1455, allocations: 2.451 MB / 0.5107 GB, free: 15.35 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002819/0.1458, allocations: 0.7279 MB / 0.5114 GB, free: 14.6 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.197e-05/0.1459, allocations: 8.656 kB / 0.5114 GB, free: 14.59 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.207e-05/0.146, allocations: 43.42 kB / 0.5114 GB, free: 14.55 MB / 414.1 MB Notification: Performance of SimCode: time 4.51e-07/0.146, allocations: 0 / 0.5114 GB, free: 14.55 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02446/0.1704, allocations: 4.267 MB / 0.5156 GB, free: 10.23 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.436/7.606, allocations: 14.05 kB / 0.5156 GB, free: 10.21 MB / 414.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)