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.001315/0.001315, allocations: 128.5 kB / 17.79 MB, free: 5.246 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.001371/0.001371, allocations: 207.2 kB / 20.75 MB, free: 2.297 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.438/1.438, allocations: 207.6 MB / 231.1 MB, free: 4.109 MB / 174.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.4201/0.4201, allocations: 49.51 MB / 332.5 MB, free: 0.7422 MB / 254.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.002079/0.002079, allocations: 64.72 kB / 470.8 MB, free: 41.05 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1124/0.1145, allocations: 62.34 MB / 0.5206 GB, free: 2.348 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.HRB.Simulators.TestPI): time 0.00257/0.117, allocations: 1.654 MB / 0.5223 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001064/0.1181, allocations: 0.7149 MB / 0.523 GB, free: 15.95 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.587e-05/0.1182, allocations: 0 / 0.523 GB, free: 15.95 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002334/0.1184, allocations: 55.75 kB / 0.523 GB, free: 15.9 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 9.902e-05/0.1185, allocations: 63.72 kB / 0.5231 GB, free: 15.84 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005058/0.119, allocations: 123.6 kB / 0.5232 GB, free: 15.71 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002507/0.1193, allocations: 159.6 kB / 0.5233 GB, free: 15.56 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000114/0.1194, allocations: 21.42 kB / 0.5234 GB, free: 15.53 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001031/0.1195, allocations: 75.75 kB / 0.5234 GB, free: 15.46 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001868/0.1197, allocations: 103.6 kB / 0.5235 GB, free: 15.36 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.851e-05/0.1197, allocations: 12 kB / 0.5235 GB, free: 15.34 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001549/0.1198, allocations: 83.92 kB / 0.5236 GB, free: 15.26 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 7.342e-05/0.1199, allocations: 35.84 kB / 0.5237 GB, free: 15.23 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.766e-05/0.12, allocations: 67.61 kB / 0.5237 GB, free: 15.16 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003028/0.1203, allocations: 199.2 kB / 0.5239 GB, free: 14.96 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.1203, allocations: 0 / 0.5239 GB, free: 14.96 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.382e-06/0.1203, allocations: 0 / 0.5239 GB, free: 14.96 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.372e-06/0.1203, allocations: 0 / 0.5239 GB, free: 14.96 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.0008479/0.1212, allocations: 0.5136 MB / 0.5244 GB, free: 14.39 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.9e-05/0.1212, allocations: 11.89 kB / 0.5244 GB, free: 14.38 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.067e-05/0.1213, allocations: 50.67 kB / 0.5245 GB, free: 14.32 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.151e-05/0.1213, allocations: 20.8 kB / 0.5245 GB, free: 14.3 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003216/0.1216, allocations: 232 kB / 0.5247 GB, free: 14.03 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.079e-05/0.1216, allocations: 12.31 kB / 0.5247 GB, free: 14.02 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.852e-05/0.1217, allocations: 4.375 kB / 0.5247 GB, free: 14.02 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003733/0.122, allocations: 176.3 kB / 0.5249 GB, free: 13.83 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.206e-06/0.1221, allocations: 0 / 0.5249 GB, free: 13.83 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.073e-05/0.1221, allocations: 8 kB / 0.5249 GB, free: 13.82 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.1221, allocations: 0 / 0.5249 GB, free: 13.82 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002298/0.1223, allocations: 99.88 kB / 0.525 GB, free: 13.72 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006451/0.123, allocations: 0.5244 MB / 0.5255 GB, free: 13.14 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003182/0.1233, allocations: 126.4 kB / 0.5256 GB, free: 13.01 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002011/0.1235, allocations: 88.8 kB / 0.5257 GB, free: 12.92 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.324e-05/0.1235, allocations: 7.984 kB / 0.5257 GB, free: 12.91 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003452/0.1238, allocations: 188.9 kB / 0.5259 GB, free: 12.71 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 1.302e-06/0.1238, allocations: 0 / 0.5259 GB, free: 12.71 MB / 398.1 MB Notification: Performance of matching and sorting (n=17): time 0.0008805/0.1247, allocations: 427.2 kB / 0.5263 GB, free: 12.28 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.999e-05/0.1248, allocations: 93.09 kB / 0.5264 GB, free: 12.17 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002319/0.125, allocations: 194.6 kB / 0.5266 GB, free: 11.96 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.455e-05/0.1251, allocations: 33.69 kB / 0.5266 GB, free: 11.93 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.748e-05/0.1252, allocations: 120.4 kB / 0.5267 GB, free: 11.8 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.995e-05/0.1252, allocations: 35.84 kB / 0.5268 GB, free: 11.77 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.332e-05/0.1253, allocations: 37.7 kB / 0.5268 GB, free: 11.73 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000162/0.1254, allocations: 338.8 kB / 0.5271 GB, free: 11.39 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001921/0.1256, allocations: 83.95 kB / 0.5272 GB, free: 11.3 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002003/0.1258, allocations: 112.2 kB / 0.5273 GB, free: 11.18 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001003/0.1268, allocations: 482.8 kB / 0.5278 GB, free: 10.67 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.1268, allocations: 0 / 0.5278 GB, free: 10.67 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0005958/0.1274, allocations: 335.5 kB / 0.5281 GB, free: 10.33 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.218e-05/0.1275, allocations: 37.7 kB / 0.5281 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.266e-06/0.1275, allocations: 8.062 kB / 0.5281 GB, free: 10.28 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.911e-05/0.1275, allocations: 11.98 kB / 0.5282 GB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000146/0.1277, allocations: 27.92 kB / 0.5282 GB, free: 10.24 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.618e-06/0.1277, allocations: 4 kB / 0.5282 GB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001325/0.1278, allocations: 23.8 kB / 0.5282 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.983e-05/0.1278, allocations: 12 kB / 0.5282 GB, free: 10.2 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.000239/0.1281, allocations: 184.5 kB / 0.5284 GB, free: 10 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.993e-05/0.1281, allocations: 23.91 kB / 0.5284 GB, free: 9.98 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.961e-05/0.1281, allocations: 17.86 kB / 0.5284 GB, free: 9.961 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.1281, allocations: 4 kB / 0.5284 GB, free: 9.957 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.1281, allocations: 0 / 0.5284 GB, free: 9.957 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.612e-06/0.1282, allocations: 3.938 kB / 0.5284 GB, free: 9.953 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001125/0.1293, allocations: 0.6834 MB / 0.5291 GB, free: 9.207 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.854e-06/0.1293, allocations: 0 / 0.5291 GB, free: 9.207 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.219e-05/0.1293, allocations: 12 kB / 0.5291 GB, free: 9.195 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.49e-06/0.1293, allocations: 7.875 kB / 0.5291 GB, free: 9.188 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.228e-05/0.1294, allocations: 15.97 kB / 0.5291 GB, free: 9.172 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.1294, allocations: 0 / 0.5291 GB, free: 9.172 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.573e-06/0.1294, allocations: 0 / 0.5291 GB, free: 9.172 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001061/0.1304, allocations: 0.5673 MB / 0.5297 GB, free: 8.582 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.539e-05/0.1305, allocations: 92.98 kB / 0.5298 GB, free: 8.473 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.052e-05/0.1306, allocations: 8 kB / 0.5298 GB, free: 8.465 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001599/0.1307, allocations: 19.97 kB / 0.5298 GB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.699e-05/0.1308, allocations: 8 kB / 0.5298 GB, free: 8.438 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.683e-05/0.1308, allocations: 11.97 kB / 0.5298 GB, free: 8.426 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000162/0.131, allocations: 143.2 kB / 0.53 GB, free: 8.285 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.131, allocations: 0 / 0.53 GB, free: 8.285 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003794/0.1314, allocations: 63.95 kB / 0.53 GB, free: 8.223 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.001615/0.133, allocations: 1.147 MB / 0.5311 GB, free: 7.043 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006553/0.1336, allocations: 255.2 kB / 0.5314 GB, free: 6.781 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.1336, allocations: 0 / 0.5314 GB, free: 6.781 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002858/0.1339, allocations: 163.2 kB / 0.5315 GB, free: 6.609 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004632/0.1344, allocations: 41.2 kB / 0.5316 GB, free: 6.57 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003776/0.1382, allocations: 2.455 MB / 0.534 GB, free: 4.008 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003747/0.1385, allocations: 0.724 MB / 0.5347 GB, free: 3.258 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.678e-05/0.1386, allocations: 12.64 kB / 0.5347 GB, free: 3.246 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.127e-05/0.1387, allocations: 43.42 kB / 0.5347 GB, free: 3.203 MB / 398.1 MB Notification: Performance of SimCode: time 1.573e-06/0.1387, allocations: 0 / 0.5347 GB, free: 3.203 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02815/0.1668, allocations: 4.285 MB / 0.5389 GB, free: 14.87 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.871/8.038, allocations: 11.92 kB / 0.5389 GB, free: 14.86 MB / 414.1 MB " [Timeout remaining time 652] (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) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.039935833992786] Failed to read output from testmodel.py, exit status != 0: 8.105613100007758 8.130351903 8.005630024 Calling exit ...