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.001339/0.001339, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001456/0.001456, allocations: 214.9 kB / 24.52 MB, free: 3.941 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.516/1.516, allocations: 207.7 MB / 235.4 MB, free: 9.781 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.3066/0.3066, allocations: 49.6 MB / 337.2 MB, free: 3.879 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Examples.HRB.Simulators.TestPI,fileNamePrefix="ThermoPower_ThermoPower_Examples_HRB_Simulators_TestPI",fmuType="cs",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.00216/0.00216, allocations: 75.89 kB / 477.1 MB, free: 12.77 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1349/0.137, allocations: 62.41 MB / 0.5269 GB, free: 14.16 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.HRB.Simulators.TestPI): time 0.003198/0.1402, allocations: 1.631 MB / 0.5285 GB, free: 12.51 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.00129/0.1415, allocations: 0.6631 MB / 0.5291 GB, free: 11.84 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.747e-05/0.1416, allocations: 3.938 kB / 0.5291 GB, free: 11.84 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002064/0.1418, allocations: 51.81 kB / 0.5292 GB, free: 11.79 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 9.928e-05/0.1419, allocations: 59.73 kB / 0.5292 GB, free: 11.73 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004839/0.1424, allocations: 119.7 kB / 0.5294 GB, free: 11.61 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002394/0.1426, allocations: 159.6 kB / 0.5295 GB, free: 11.45 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001062/0.1427, allocations: 21.61 kB / 0.5295 GB, free: 11.43 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000111/0.1428, allocations: 79.69 kB / 0.5296 GB, free: 11.35 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001756/0.143, allocations: 103.7 kB / 0.5297 GB, free: 11.25 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.678e-05/0.143, allocations: 8 kB / 0.5297 GB, free: 11.24 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001441/0.1432, allocations: 83.94 kB / 0.5298 GB, free: 11.16 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 7.441e-05/0.1432, allocations: 35.84 kB / 0.5298 GB, free: 11.12 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 8.456e-05/0.1433, allocations: 51.72 kB / 0.5299 GB, free: 11.07 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000307/0.1436, allocations: 199.2 kB / 0.5301 GB, free: 10.88 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.117e-06/0.1436, allocations: 0 / 0.5301 GB, free: 10.88 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.1436, allocations: 0 / 0.5301 GB, free: 10.88 MB / 414.1 MB Notification: Performance of Transformations before backend: time 6.042e-06/0.1436, allocations: 0 / 0.5301 GB, free: 10.88 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.0007959/0.1444, allocations: 456.8 kB / 0.5305 GB, free: 10.39 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.584e-05/0.1445, allocations: 15.97 kB / 0.5305 GB, free: 10.38 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.407e-05/0.1445, allocations: 192 / 0.5305 GB, free: 10.38 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.095e-05/0.1445, allocations: 38.75 kB / 0.5306 GB, free: 10.33 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.906e-05/0.1446, allocations: 28.78 kB / 0.5306 GB, free: 10.3 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003286/0.1449, allocations: 174 kB / 0.5307 GB, free: 10.11 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.924e-05/0.145, allocations: 12.36 kB / 0.5308 GB, free: 10.09 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.344e-05/0.145, allocations: 4.375 kB / 0.5308 GB, free: 10.09 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004047/0.1454, allocations: 213.8 kB / 0.531 GB, free: 9.859 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.1454, allocations: 0 / 0.531 GB, free: 9.859 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.994e-05/0.1454, allocations: 4 kB / 0.531 GB, free: 9.855 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.109e-06/0.1454, allocations: 0 / 0.531 GB, free: 9.855 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002557/0.1457, allocations: 129.6 kB / 0.5311 GB, free: 9.723 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000641/0.1463, allocations: 492.1 kB / 0.5316 GB, free: 9.191 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000332/0.1467, allocations: 160.1 kB / 0.5317 GB, free: 9.02 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002034/0.1469, allocations: 122.5 kB / 0.5318 GB, free: 8.891 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.676e-05/0.1469, allocations: 4 kB / 0.5318 GB, free: 8.887 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003664/0.1473, allocations: 214.6 kB / 0.532 GB, free: 8.652 MB / 414.1 MB Notification: Performance of pre-optimization done (n=17): time 1.593e-06/0.1473, allocations: 0 / 0.532 GB, free: 8.652 MB / 414.1 MB Notification: Performance of matching and sorting (n=17): time 0.0009136/0.1482, allocations: 495 kB / 0.5325 GB, free: 8.145 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.669e-05/0.1482, allocations: 85.11 kB / 0.5326 GB, free: 8.043 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002036/0.1484, allocations: 202.8 kB / 0.5328 GB, free: 7.832 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.455e-05/0.1485, allocations: 25.7 kB / 0.5328 GB, free: 7.801 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001046/0.1486, allocations: 120.4 kB / 0.5329 GB, free: 7.68 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.86e-05/0.1486, allocations: 47.81 kB / 0.533 GB, free: 7.633 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.522e-05/0.1487, allocations: 41.7 kB / 0.533 GB, free: 7.586 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001481/0.1488, allocations: 330.8 kB / 0.5333 GB, free: 7.254 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002076/0.149, allocations: 113.7 kB / 0.5334 GB, free: 7.137 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000228/0.1493, allocations: 149.8 kB / 0.5336 GB, free: 6.969 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00102/0.1503, allocations: 494.8 kB / 0.5341 GB, free: 6.445 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.434e-06/0.1503, allocations: 0 / 0.5341 GB, free: 6.445 MB / 414.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006451/0.1509, allocations: 372.7 kB / 0.5344 GB, free: 6.062 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.161e-05/0.151, allocations: 33.7 kB / 0.5344 GB, free: 6.023 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.151, allocations: 0 / 0.5344 GB, free: 6.023 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.644e-05/0.151, allocations: 7.984 kB / 0.5344 GB, free: 6.016 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001589/0.1512, allocations: 31.92 kB / 0.5345 GB, free: 5.984 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.254e-05/0.1512, allocations: 11.88 kB / 0.5345 GB, free: 5.973 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001323/0.1513, allocations: 20.05 kB / 0.5345 GB, free: 5.953 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.411e-05/0.1514, allocations: 8 kB / 0.5345 GB, free: 5.945 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.0002707/0.1516, allocations: 187.3 kB / 0.5347 GB, free: 5.746 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.952e-05/0.1517, allocations: 19.91 kB / 0.5347 GB, free: 5.727 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.965e-05/0.1517, allocations: 21.8 kB / 0.5347 GB, free: 5.699 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.551e-06/0.1517, allocations: 4 kB / 0.5347 GB, free: 5.695 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.207e-06/0.1517, allocations: 3.938 kB / 0.5347 GB, free: 5.691 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.747e-06/0.1517, allocations: 0 / 0.5347 GB, free: 5.691 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001065/0.1528, allocations: 0.6765 MB / 0.5354 GB, free: 4.953 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.1528, allocations: 4 kB / 0.5354 GB, free: 4.949 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.177e-05/0.1529, allocations: 4 kB / 0.5354 GB, free: 4.945 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.1529, allocations: 3.938 kB / 0.5354 GB, free: 4.941 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.673e-05/0.1529, allocations: 11.98 kB / 0.5354 GB, free: 4.93 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.587e-06/0.1529, allocations: 4 kB / 0.5354 GB, free: 4.926 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.1529, allocations: 0 / 0.5354 GB, free: 4.926 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001021/0.1539, allocations: 0.6447 MB / 0.5361 GB, free: 4.246 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.448e-05/0.1539, allocations: 15.88 kB / 0.5361 GB, free: 4.23 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.123e-05/0.154, allocations: 8 kB / 0.5361 GB, free: 4.223 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001497/0.1541, allocations: 15.98 kB / 0.5361 GB, free: 4.207 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.002e-05/0.1542, allocations: 7.984 kB / 0.5361 GB, free: 4.199 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.396e-05/0.1542, allocations: 11.98 kB / 0.5361 GB, free: 4.188 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.00014/0.1544, allocations: 156.1 kB / 0.5363 GB, free: 4.035 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1544, allocations: 64 / 0.5363 GB, free: 4.035 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0003468/0.1547, allocations: 63.89 kB / 0.5363 GB, free: 3.973 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.001346/0.1561, allocations: 1.205 MB / 0.5375 GB, free: 2.723 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00057/0.1566, allocations: 342.6 kB / 0.5378 GB, free: 2.363 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1566, allocations: 0 / 0.5378 GB, free: 2.363 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002733/0.1569, allocations: 193 kB / 0.538 GB, free: 2.156 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003917/0.1573, allocations: 31.97 kB / 0.538 GB, free: 2.125 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2159/0.3732, allocations: 2.625 MB / 0.5406 GB, free: 22.33 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001117/0.3733, allocations: 117.7 kB / 0.5407 GB, free: 22.26 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 7.624e-05/0.3734, allocations: 10.05 kB / 0.5407 GB, free: 22.26 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.583e-05/0.3734, allocations: 45.22 kB / 0.5408 GB, free: 22.25 MB / 414.1 MB Notification: Performance of SimCode: time 8.92e-07/0.3734, allocations: 0.5625 kB / 0.5408 GB, free: 22.25 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02645/0.3999, allocations: 4.675 MB / 0.5453 GB, free: 21.42 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.09/11.49, allocations: 6.375 kB / 0.5453 GB, free: 21.42 MB / 414.1 MB " [Timeout remaining time 648] (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: 14.543349939049222] Failed to read output from testmodel.py, exit status != 0: 11.658371196012013 11.684709235 11.536475581 Calling exit ...