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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001835/0.001835, allocations: 115.8 kB / 20.43 MB, free: 1.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002428/0.002428, allocations: 213.9 kB / 23.74 MB, free: 4.656 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.389/1.389, allocations: 207.6 MB / 234.5 MB, free: 10 MB / 190.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower master/package.mo): time 0.293/0.293, allocations: 49.57 MB / 336.3 MB, free: 4.191 MB / 270.1 MB " [Timeout remaining time 179] Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.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.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002174/0.002174, allocations: 83.88 kB / 476.3 MB, free: 12.94 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.1213, allocations: 62.41 MB / 0.5261 GB, free: 14.34 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.HRB.Simulators.TestPI): time 0.002986/0.1243, allocations: 1.673 MB / 0.5278 GB, free: 12.65 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.001239/0.1255, allocations: 0.707 MB / 0.5284 GB, free: 11.93 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.831e-05/0.1256, allocations: 7.938 kB / 0.5284 GB, free: 11.93 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001751/0.1258, allocations: 51.8 kB / 0.5285 GB, free: 11.88 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 9.09e-05/0.1259, allocations: 59.73 kB / 0.5286 GB, free: 11.82 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004376/0.1263, allocations: 123.7 kB / 0.5287 GB, free: 11.7 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.000213/0.1265, allocations: 159.6 kB / 0.5288 GB, free: 11.54 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001025/0.1266, allocations: 25.61 kB / 0.5288 GB, free: 11.51 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.805e-05/0.1267, allocations: 79.69 kB / 0.5289 GB, free: 11.43 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001713/0.1269, allocations: 99.69 kB / 0.529 GB, free: 11.34 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.412e-05/0.1269, allocations: 8 kB / 0.529 GB, free: 11.33 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001347/0.1271, allocations: 79.94 kB / 0.5291 GB, free: 11.25 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 6.172e-05/0.1271, allocations: 39.84 kB / 0.5291 GB, free: 11.21 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 8.551e-05/0.1272, allocations: 67.59 kB / 0.5292 GB, free: 11.14 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002956/0.1275, allocations: 199.2 kB / 0.5294 GB, free: 10.95 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.968e-06/0.1275, allocations: 0 / 0.5294 GB, free: 10.95 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1275, allocations: 0 / 0.5294 GB, free: 10.95 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.1275, allocations: 7.938 kB / 0.5294 GB, free: 10.94 MB / 414.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.0007383/0.1283, allocations: 452.8 kB / 0.5298 GB, free: 10.46 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.229e-05/0.1283, allocations: 8.031 kB / 0.5298 GB, free: 10.45 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.284e-05/0.1283, allocations: 38.75 kB / 0.5299 GB, free: 10.4 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.867e-05/0.1284, allocations: 24.8 kB / 0.5299 GB, free: 10.38 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002893/0.1287, allocations: 182 kB / 0.5301 GB, free: 10.18 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.639e-05/0.1287, allocations: 12.38 kB / 0.5301 GB, free: 10.16 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.014e-05/0.1287, allocations: 8.359 kB / 0.5301 GB, free: 10.16 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003504/0.1291, allocations: 172.2 kB / 0.5303 GB, free: 9.973 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.267e-06/0.1291, allocations: 0 / 0.5303 GB, free: 9.973 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.833e-05/0.1291, allocations: 11.94 kB / 0.5303 GB, free: 9.961 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.311e-06/0.1291, allocations: 3.984 kB / 0.5303 GB, free: 9.957 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002142/0.1293, allocations: 99.89 kB / 0.5304 GB, free: 9.859 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006312/0.13, allocations: 0.5 MB / 0.5309 GB, free: 9.309 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003019/0.1303, allocations: 126.5 kB / 0.531 GB, free: 9.176 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001764/0.1304, allocations: 84.95 kB / 0.5311 GB, free: 9.09 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.185e-05/0.1305, allocations: 4 kB / 0.5311 GB, free: 9.086 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003282/0.1308, allocations: 189 kB / 0.5312 GB, free: 8.883 MB / 414.1 MB Notification: Performance of pre-optimization done (n=17): time 1.312e-06/0.1308, allocations: 0 / 0.5312 GB, free: 8.883 MB / 414.1 MB Notification: Performance of matching and sorting (n=17): time 0.0008359/0.1316, allocations: 423.6 kB / 0.5317 GB, free: 8.457 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.681e-05/0.1317, allocations: 85.11 kB / 0.5317 GB, free: 8.355 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001898/0.1319, allocations: 198.8 kB / 0.5319 GB, free: 8.148 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.486e-05/0.1319, allocations: 29.7 kB / 0.5319 GB, free: 8.113 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.902e-05/0.132, allocations: 124.5 kB / 0.5321 GB, free: 7.988 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.964e-05/0.132, allocations: 43.62 kB / 0.5321 GB, free: 7.945 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.569e-05/0.1321, allocations: 37.7 kB / 0.5321 GB, free: 7.902 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.1323, allocations: 334.8 kB / 0.5325 GB, free: 7.566 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002237/0.1325, allocations: 83.94 kB / 0.5325 GB, free: 7.484 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001919/0.1327, allocations: 120.2 kB / 0.5327 GB, free: 7.352 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009071/0.1336, allocations: 482.8 kB / 0.5331 GB, free: 6.84 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.225e-06/0.1336, allocations: 0 / 0.5331 GB, free: 6.84 MB / 414.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005204/0.1341, allocations: 327 kB / 0.5334 GB, free: 6.508 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.319e-05/0.1341, allocations: 41.69 kB / 0.5335 GB, free: 6.461 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.358e-06/0.1341, allocations: 0 / 0.5335 GB, free: 6.461 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/0.1342, allocations: 4 kB / 0.5335 GB, free: 6.457 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001387/0.1343, allocations: 27.92 kB / 0.5335 GB, free: 6.43 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.308e-05/0.1343, allocations: 7.984 kB / 0.5335 GB, free: 6.422 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001156/0.1344, allocations: 20 kB / 0.5335 GB, free: 6.402 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.613e-05/0.1345, allocations: 15.98 kB / 0.5335 GB, free: 6.387 MB / 414.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.0002084/0.1347, allocations: 187.4 kB / 0.5337 GB, free: 6.188 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.412e-05/0.1347, allocations: 19.91 kB / 0.5337 GB, free: 6.168 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.794e-05/0.1347, allocations: 17.75 kB / 0.5338 GB, free: 6.145 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.1347, allocations: 7.984 kB / 0.5338 GB, free: 6.137 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.038e-06/0.1347, allocations: 0 / 0.5338 GB, free: 6.137 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.1348, allocations: 11.92 kB / 0.5338 GB, free: 6.125 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009142/0.1357, allocations: 0.6552 MB / 0.5344 GB, free: 5.414 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.1357, allocations: 0 / 0.5344 GB, free: 5.414 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.878e-05/0.1357, allocations: 11.98 kB / 0.5344 GB, free: 5.402 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.1357, allocations: 3.938 kB / 0.5344 GB, free: 5.398 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.131e-05/0.1357, allocations: 11.98 kB / 0.5344 GB, free: 5.387 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.165e-06/0.1357, allocations: 4 kB / 0.5344 GB, free: 5.383 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.01e-07/0.1357, allocations: 4 kB / 0.5345 GB, free: 5.379 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008661/0.1366, allocations: 0.5634 MB / 0.535 GB, free: 4.793 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.242e-05/0.1366, allocations: 27.86 kB / 0.535 GB, free: 4.766 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.153e-05/0.1367, allocations: 0 / 0.535 GB, free: 4.766 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001432/0.1368, allocations: 20.05 kB / 0.535 GB, free: 4.746 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.327e-05/0.1369, allocations: 11.98 kB / 0.5351 GB, free: 4.734 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.428e-05/0.1369, allocations: 8 kB / 0.5351 GB, free: 4.727 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0001278/0.137, allocations: 156.1 kB / 0.5352 GB, free: 4.574 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.137, allocations: 0 / 0.5352 GB, free: 4.574 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002987/0.1373, allocations: 59.89 kB / 0.5353 GB, free: 4.516 MB / 414.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.001226/0.1385, allocations: 1.143 MB / 0.5364 GB, free: 3.34 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0005064/0.139, allocations: 271.3 kB / 0.5366 GB, free: 3.062 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.1391, allocations: 0 / 0.5366 GB, free: 3.062 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002423/0.1393, allocations: 155.2 kB / 0.5368 GB, free: 2.898 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003516/0.1396, allocations: 31.97 kB / 0.5368 GB, free: 2.867 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003067/0.1427, allocations: 2.461 MB / 0.5392 GB, free: 300 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2063/0.349, allocations: 0.7236 MB / 0.5399 GB, free: 22.61 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.635e-05/0.3491, allocations: 10.08 kB / 0.5399 GB, free: 22.61 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.63e-05/0.3492, allocations: 45.39 kB / 0.54 GB, free: 22.6 MB / 414.1 MB Notification: Performance of SimCode: time 1.172e-06/0.3492, allocations: 0 / 0.54 GB, free: 22.6 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03197/0.3811, allocations: 4.504 MB / 0.5444 GB, free: 21.98 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.7/11.08, allocations: 8.891 kB / 0.5444 GB, free: 21.97 MB / 414.1 MB " [Timeout remaining time 649] (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/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Examples_HRB_Simulators_TestPI_fmu --startTime=0 --stopTime=120 --stepSize=0.048 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Examples_HRB_Simulators_TestPI.fmu > ThermoPower_ThermoPower.Examples.HRB.Simulators.TestPI.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 13.87589636608027] Failed to read output from testmodel.py, exit status != 0: 11.186523183016106 11.206814562 11.075574483 Calling exit ...