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.001552/0.001552, allocations: 110.5 kB / 17.06 MB, free: 6.113 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.001618/0.001618, allocations: 197.4 kB / 18 MB, free: 5.191 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.438/1.438, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.2883/0.2883, 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.002077/0.002077, allocations: 63.91 kB / 450 MB, free: 9.066 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.122, allocations: 59.16 MB / 0.4972 GB, free: 13.77 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.HRB.Simulators.TestPI): time 0.002999/0.125, allocations: 1.65 MB / 0.4989 GB, free: 12.11 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.001234/0.1263, allocations: 0.7097 MB / 0.4995 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.692e-05/0.1264, allocations: 0 / 0.4995 GB, free: 11.39 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001948/0.1266, allocations: 51.81 kB / 0.4996 GB, free: 11.34 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.241e-05/0.1267, allocations: 63.67 kB / 0.4997 GB, free: 11.27 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000496/0.1272, allocations: 119.7 kB / 0.4998 GB, free: 11.16 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002266/0.1274, allocations: 159.6 kB / 0.4999 GB, free: 11 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001094/0.1275, allocations: 25.41 kB / 0.5 GB, free: 10.97 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.729e-05/0.1276, allocations: 71.75 kB / 0.5 GB, free: 10.9 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001881/0.1278, allocations: 107.6 kB / 0.5001 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.671e-05/0.1279, allocations: 8 kB / 0.5001 GB, free: 10.79 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001473/0.128, allocations: 79.94 kB / 0.5002 GB, free: 10.71 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.238e-05/0.1281, allocations: 39.83 kB / 0.5002 GB, free: 10.67 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.572e-05/0.1282, allocations: 67.59 kB / 0.5003 GB, free: 10.6 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002995/0.1285, allocations: 191.2 kB / 0.5005 GB, free: 10.41 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.876e-06/0.1285, allocations: 0 / 0.5005 GB, free: 10.41 MB / 398.1 MB Notification: Performance of FrontEnd: time 3.236e-06/0.1285, allocations: 0 / 0.5005 GB, free: 10.41 MB / 398.1 MB Notification: Performance of Transformations before backend: time 5.06e-06/0.1285, allocations: 3.938 kB / 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.000788/0.1293, allocations: 0.5214 MB / 0.501 GB, free: 9.828 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.498e-05/0.1294, allocations: 11.89 kB / 0.501 GB, free: 9.816 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.836e-05/0.1294, allocations: 42.73 kB / 0.5011 GB, free: 9.766 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.547e-05/0.1295, allocations: 20.8 kB / 0.5011 GB, free: 9.746 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002881/0.1298, allocations: 228 kB / 0.5013 GB, free: 9.484 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.996e-05/0.1298, allocations: 12.38 kB / 0.5013 GB, free: 9.473 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.667e-05/0.1298, allocations: 12.31 kB / 0.5013 GB, free: 9.461 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003496/0.1302, allocations: 172.2 kB / 0.5015 GB, free: 9.277 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.1302, allocations: 0 / 0.5015 GB, free: 9.277 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.046e-05/0.1302, allocations: 8 kB / 0.5015 GB, free: 9.27 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.1302, allocations: 0 / 0.5015 GB, free: 9.27 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002205/0.1305, allocations: 95.94 kB / 0.5016 GB, free: 9.176 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006461/0.1311, allocations: 0.536 MB / 0.5021 GB, free: 8.582 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000321/0.1315, allocations: 142.5 kB / 0.5022 GB, free: 8.434 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002052/0.1317, allocations: 100.8 kB / 0.5023 GB, free: 8.332 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.812e-05/0.1317, allocations: 0 / 0.5023 GB, free: 8.332 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000338/0.132, allocations: 192.9 kB / 0.5025 GB, free: 8.125 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 1.433e-06/0.1321, allocations: 7.938 kB / 0.5025 GB, free: 8.117 MB / 398.1 MB Notification: Performance of matching and sorting (n=17): time 0.000886/0.1329, allocations: 419.2 kB / 0.5029 GB, free: 7.695 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8e-05/0.133, allocations: 85.11 kB / 0.503 GB, free: 7.594 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002089/0.1333, allocations: 194.6 kB / 0.5032 GB, free: 7.391 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.954e-05/0.1333, allocations: 33.7 kB / 0.5032 GB, free: 7.352 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.956e-05/0.1334, allocations: 128.4 kB / 0.5033 GB, free: 7.223 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.518e-05/0.1335, allocations: 43.67 kB / 0.5034 GB, free: 7.18 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.154e-05/0.1335, allocations: 37.7 kB / 0.5034 GB, free: 7.137 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001686/0.1337, allocations: 334.8 kB / 0.5037 GB, free: 6.801 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001978/0.1339, allocations: 83.94 kB / 0.5038 GB, free: 6.719 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002487/0.1342, allocations: 120.2 kB / 0.5039 GB, free: 6.586 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001016/0.1352, allocations: 478.8 kB / 0.5044 GB, free: 6.078 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1352, allocations: 0 / 0.5044 GB, free: 6.078 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005601/0.1358, allocations: 331.6 kB / 0.5047 GB, free: 5.742 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.455e-05/0.1358, allocations: 49.53 kB / 0.5048 GB, free: 5.688 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.1358, allocations: 0 / 0.5048 GB, free: 5.688 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.422e-05/0.1359, allocations: 4 kB / 0.5048 GB, free: 5.684 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001634/0.136, allocations: 23.98 kB / 0.5048 GB, free: 5.66 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.233e-05/0.1361, allocations: 7.984 kB / 0.5048 GB, free: 5.652 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001721/0.1362, allocations: 24 kB / 0.5048 GB, free: 5.629 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.523e-05/0.1363, 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.0002538/0.1365, allocations: 188 kB / 0.505 GB, free: 5.418 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.924e-05/0.1366, allocations: 23.91 kB / 0.505 GB, free: 5.395 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.594e-05/0.1366, allocations: 13.88 kB / 0.505 GB, free: 5.379 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.87e-06/0.1367, allocations: 3.984 kB / 0.505 GB, free: 5.375 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.34e-06/0.1367, allocations: 4 kB / 0.5051 GB, free: 5.371 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.983e-06/0.1367, allocations: 3.938 kB / 0.5051 GB, free: 5.367 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009977/0.1377, allocations: 0.6834 MB / 0.5057 GB, free: 4.621 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.1377, allocations: 0 / 0.5057 GB, free: 4.621 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.095e-05/0.1378, allocations: 7.984 kB / 0.5057 GB, free: 4.613 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.617e-06/0.1378, allocations: 7.875 kB / 0.5057 GB, free: 4.605 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.026e-05/0.1378, allocations: 8 kB / 0.5057 GB, free: 4.598 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.1378, allocations: 0 / 0.5057 GB, free: 4.598 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.1378, allocations: 4 kB / 0.5057 GB, free: 4.594 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009011/0.1387, allocations: 0.5673 MB / 0.5063 GB, free: 4.004 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.429e-05/0.1388, allocations: 104.9 kB / 0.5064 GB, free: 3.883 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.673e-05/0.1388, allocations: 8 kB / 0.5064 GB, free: 3.875 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001472/0.139, allocations: 16.05 kB / 0.5064 GB, free: 3.859 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.965e-05/0.139, allocations: 11.98 kB / 0.5064 GB, free: 3.848 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.542e-05/0.1391, allocations: 8 kB / 0.5064 GB, free: 3.84 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000124/0.1392, allocations: 151 kB / 0.5066 GB, free: 3.691 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1392, allocations: 0 / 0.5066 GB, free: 3.691 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002944/0.1395, 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.001262/0.1408, allocations: 1.139 MB / 0.5078 GB, free: 2.465 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005324/0.1413, allocations: 311.7 kB / 0.5081 GB, free: 2.148 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/0.1413, allocations: 0 / 0.5081 GB, free: 2.148 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002698/0.1416, allocations: 187.6 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.0003992/0.142, allocations: 36.12 kB / 0.5083 GB, free: 1.918 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00314/0.1452, allocations: 2.458 MB / 0.5107 GB, free: 15.35 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003458/0.1455, allocations: 0.7201 MB / 0.5114 GB, free: 14.61 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.238e-05/0.1456, allocations: 12.66 kB / 0.5114 GB, free: 14.59 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.474e-05/0.1457, allocations: 43.42 kB / 0.5114 GB, free: 14.55 MB / 414.1 MB Notification: Performance of SimCode: time 3.5e-07/0.1457, allocations: 4 kB / 0.5114 GB, free: 14.55 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02987/0.1755, allocations: 4.262 MB / 0.5156 GB, free: 10.23 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.872/8.047, allocations: 18.17 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)