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.0008006/0.0008006, allocations: 79.7 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0007874/0.0007874, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.7884/0.7884, allocations: 158.6 MB / 185.7 MB, free: 3.023 MB / 170.7 MB " [Timeout remaining time 179] 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.1791/0.1791, allocations: 36.35 MB / 274.3 MB, free: 10.9 MB / 266.7 MB " [Timeout remaining time 180] 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: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 414.3 MB, free: 6.109 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.723e-05/1.886e-05, allocations: 10.16 kB / 414.3 MB, free: 6.098 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.HRB.Simulators.TestPI): time 0.002026/0.002045, allocations: 1.628 MB / 416 MB, free: 4.457 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008762/0.002921, allocations: 0.6821 MB / 416.6 MB, free: 3.766 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.935e-05/0.002991, allocations: 3.938 kB / 416.6 MB, free: 3.762 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001829/0.003173, allocations: 43.81 kB / 416.7 MB, free: 3.719 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 6.474e-05/0.003238, allocations: 59.73 kB / 416.7 MB, free: 3.66 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004006/0.003639, allocations: 123.5 kB / 416.9 MB, free: 3.539 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001801/0.003819, allocations: 167.5 kB / 417 MB, free: 3.375 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.845e-05/0.003907, allocations: 17.62 kB / 417 MB, free: 3.355 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.469e-05/0.004002, allocations: 91.78 kB / 417.1 MB, free: 3.266 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001304/0.004132, allocations: 87.81 kB / 417.2 MB, free: 3.18 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 2.313e-05/0.004156, allocations: 12 kB / 417.2 MB, free: 3.168 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001067/0.004262, allocations: 87.86 kB / 417.3 MB, free: 3.082 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.445e-05/0.004317, allocations: 31.84 kB / 417.3 MB, free: 3.051 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 5.423e-05/0.004371, allocations: 43.84 kB / 417.4 MB, free: 3.008 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000216/0.004587, allocations: 207.4 kB / 417.6 MB, free: 2.805 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.034e-06/0.004589, allocations: 4 kB / 417.6 MB, free: 2.801 MB / 346.7 MB Notification: Performance of FrontEnd: time 7.31e-07/0.00459, allocations: 0 / 417.6 MB, free: 2.801 MB / 346.7 MB Notification: Performance of Transformations before backend: time 3.927e-06/0.004594, allocations: 0 / 417.6 MB, free: 2.801 MB / 346.7 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.0005336/0.005127, allocations: 448.8 kB / 418 MB, free: 2.32 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.445e-05/0.005162, allocations: 12.03 kB / 418 MB, free: 2.309 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.305e-05/0.005195, allocations: 46.73 kB / 418.1 MB, free: 2.254 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000188/0.005383, allocations: 16.84 kB / 418.1 MB, free: 2.238 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002043/0.005587, allocations: 181.2 kB / 418.3 MB, free: 2.035 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.666e-05/0.005604, allocations: 8.375 kB / 418.3 MB, free: 2.027 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.154e-05/0.005625, allocations: 8.375 kB / 418.3 MB, free: 2.02 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002568/0.005882, allocations: 198.4 kB / 418.5 MB, free: 1.805 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.375e-06/0.005891, allocations: 4.125 kB / 418.5 MB, free: 1.801 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.469e-05/0.005905, allocations: 12.11 kB / 418.5 MB, free: 1.789 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-06/0.00591, allocations: 8 kB / 418.5 MB, free: 1.781 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001438/0.006054, allocations: 121.6 kB / 418.6 MB, free: 1.656 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004297/0.006484, allocations: 496 kB / 419.1 MB, free: 1.121 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000198/0.006682, allocations: 156.2 kB / 419.3 MB, free: 0.9531 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001138/0.006796, allocations: 114.5 kB / 419.4 MB, free: 0.832 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.627e-05/0.006812, allocations: 4 kB / 419.4 MB, free: 0.8281 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002221/0.007034, allocations: 225.2 kB / 419.6 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of pre-optimization done (n=17): time 1.343e-06/0.007035, allocations: 3.938 kB / 419.6 MB, free: 0.582 MB / 346.7 MB Notification: Performance of matching and sorting (n=17): time 0.0005383/0.007574, allocations: 486.5 kB / 420.1 MB, free: 84 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.427e-05/0.007628, allocations: 89.09 kB / 420.2 MB, free: 15.98 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001271/0.007755, allocations: 194.8 kB / 420.4 MB, free: 15.77 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.534e-05/0.00777, allocations: 29.7 kB / 420.4 MB, free: 15.73 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.589e-05/0.007826, allocations: 116.4 kB / 420.5 MB, free: 15.62 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.093e-05/0.007857, allocations: 51.77 kB / 420.6 MB, free: 15.57 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.58e-05/0.007903, allocations: 37.7 kB / 420.6 MB, free: 15.52 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 7.896e-05/0.007982, allocations: 330.8 kB / 420.9 MB, free: 15.19 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001158/0.008098, allocations: 117.6 kB / 421 MB, free: 15.07 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001273/0.008225, allocations: 157.7 kB / 421.2 MB, free: 14.89 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006337/0.008859, allocations: 489.8 kB / 421.7 MB, free: 14.38 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.008861, allocations: 0 / 421.7 MB, free: 14.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003467/0.009208, allocations: 368.7 kB / 422 MB, free: 14 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.191e-05/0.00924, allocations: 41.69 kB / 422.1 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.009245, allocations: 4 kB / 422.1 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.101e-05/0.009257, allocations: 0 / 422.1 MB, free: 13.95 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.252e-05/0.009339, allocations: 27.98 kB / 422.1 MB, free: 13.92 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.829e-06/0.009344, allocations: 0 / 422.1 MB, free: 13.92 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.24e-05/0.009416, allocations: 27.88 kB / 422.1 MB, free: 13.89 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.127e-05/0.009428, allocations: 4 kB / 422.1 MB, free: 13.89 MB / 362.7 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.0001563/0.009584, allocations: 199.4 kB / 422.3 MB, free: 13.68 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.077e-05/0.009605, allocations: 23.86 kB / 422.3 MB, free: 13.66 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.562e-05/0.00963, allocations: 17.81 kB / 422.4 MB, free: 13.64 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.009632, allocations: 0 / 422.4 MB, free: 13.64 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.009636, allocations: 0 / 422.4 MB, free: 13.64 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.949e-06/0.009641, allocations: 3.984 kB / 422.4 MB, free: 13.64 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005973/0.01024, allocations: 0.6753 MB / 423 MB, free: 12.9 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.01024, allocations: 4 kB / 423 MB, free: 12.9 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.723e-05/0.01028, allocations: 4 kB / 423 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.01028, allocations: 3.984 kB / 423.1 MB, free: 12.89 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.303e-05/0.01029, allocations: 7.938 kB / 423.1 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.01029, allocations: 0 / 423.1 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.954e-06/0.0103, allocations: 7.938 kB / 423.1 MB, free: 12.88 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005577/0.01085, allocations: 0.6409 MB / 423.7 MB, free: 12.2 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.967e-05/0.01087, allocations: 27.89 kB / 423.7 MB, free: 12.17 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.165e-05/0.0109, allocations: 4 kB / 423.7 MB, free: 12.17 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.219e-05/0.01098, allocations: 19.91 kB / 423.8 MB, free: 12.15 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.263e-05/0.01101, allocations: 11.98 kB / 423.8 MB, free: 12.14 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.585e-05/0.01104, allocations: 8 kB / 423.8 MB, free: 12.13 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.498e-05/0.01111, allocations: 148.2 kB / 423.9 MB, free: 11.98 MB / 362.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01111, allocations: 3.938 kB / 423.9 MB, free: 11.98 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002079/0.01132, allocations: 55.92 kB / 424 MB, free: 11.93 MB / 362.7 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.0007972/0.01212, allocations: 1.226 MB / 425.2 MB, free: 10.65 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003317/0.01245, allocations: 326.6 kB / 425.5 MB, free: 10.31 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.01245, allocations: 4.312 kB / 425.5 MB, free: 10.3 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001484/0.0126, allocations: 189 kB / 425.7 MB, free: 10.1 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002441/0.01284, allocations: 31.92 kB / 425.7 MB, free: 10.07 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002058/0.0149, allocations: 2.642 MB / 428.4 MB, free: 7.285 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.406e-05/0.01497, allocations: 115.4 kB / 428.5 MB, free: 7.152 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 4.186e-05/0.01502, allocations: 12.64 kB / 428.5 MB, free: 7.141 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.39e-05/0.01507, allocations: 44.48 kB / 428.6 MB, free: 7.098 MB / 362.7 MB Notification: Performance of SimCode: time 7.61e-07/0.01507, allocations: 0 / 428.6 MB, free: 7.098 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01815/0.03322, allocations: 5.167 MB / 433.7 MB, free: 1.871 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.804/6.837, allocations: 7.859 kB / 433.7 MB, free: 1.863 MB / 362.7 MB " [Timeout remaining time 653] (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: 8.59984878078103] Failed to read output from testmodel.py, exit status != 0: 6.9222837360575795 6.931064075 6.924695612 Calling exit ...