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.001825/0.001825, allocations: 121 kB / 18.5 MB, free: 4.562 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.002173/0.002173, allocations: 213.5 kB / 21.45 MB, free: 1.617 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.531/1.531, allocations: 207.6 MB / 231.8 MB, free: 4.023 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.439/0.439, allocations: 49.51 MB / 333.2 MB, free: 0.8086 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="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.00214/0.00214, allocations: 72.14 kB / 471.5 MB, free: 41.1 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1172, allocations: 62.34 MB / 0.5213 GB, free: 2.359 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.HRB.Simulators.TestPI): time 0.002418/0.1196, allocations: 1.677 MB / 0.523 GB, free: 0.668 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001056/0.1207, allocations: 0.7058 MB / 0.5236 GB, free: 15.95 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.641e-05/0.1208, allocations: 0 / 0.5236 GB, free: 15.95 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000216/0.121, allocations: 55.73 kB / 0.5237 GB, free: 15.9 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001032/0.1211, allocations: 67.67 kB / 0.5238 GB, free: 15.83 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004985/0.1216, allocations: 123.7 kB / 0.5239 GB, free: 15.71 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002357/0.1218, allocations: 155.6 kB / 0.524 GB, free: 15.56 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001097/0.1219, allocations: 21.42 kB / 0.5241 GB, free: 15.53 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001032/0.122, allocations: 67.81 kB / 0.5241 GB, free: 15.46 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001768/0.1222, allocations: 107.6 kB / 0.5242 GB, free: 15.36 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.792e-05/0.1222, allocations: 12 kB / 0.5242 GB, free: 15.35 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001675/0.1224, allocations: 91.86 kB / 0.5243 GB, free: 15.26 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 6.596e-05/0.1225, allocations: 27.91 kB / 0.5243 GB, free: 15.23 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.43e-05/0.1225, allocations: 67.59 kB / 0.5244 GB, free: 15.16 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003043/0.1228, allocations: 191.2 kB / 0.5246 GB, free: 14.98 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.1228, allocations: 3.938 kB / 0.5246 GB, free: 14.97 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1229, allocations: 0 / 0.5246 GB, free: 14.97 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.052e-06/0.1229, allocations: 3.938 kB / 0.5246 GB, free: 14.97 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.0008383/0.1237, allocations: 0.5214 MB / 0.5251 GB, free: 14.39 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.1237, allocations: 15.83 kB / 0.5251 GB, free: 14.37 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.39e-05/0.1238, allocations: 4.188 kB / 0.5251 GB, free: 14.37 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.602e-05/0.1238, allocations: 42.73 kB / 0.5252 GB, free: 14.31 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.453e-05/0.1239, allocations: 20.8 kB / 0.5252 GB, free: 14.29 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003398/0.1242, allocations: 224.1 kB / 0.5254 GB, free: 14.04 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.057e-05/0.1242, allocations: 8.312 kB / 0.5254 GB, free: 14.03 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.305e-05/0.1243, allocations: 12.36 kB / 0.5254 GB, free: 14.02 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003742/0.1246, allocations: 172.1 kB / 0.5256 GB, free: 13.83 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.1246, allocations: 3.984 kB / 0.5256 GB, free: 13.83 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.67e-05/0.1247, allocations: 0 / 0.5256 GB, free: 13.83 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.457e-06/0.1247, allocations: 4 kB / 0.5256 GB, free: 13.82 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002373/0.1249, allocations: 103.9 kB / 0.5257 GB, free: 13.72 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006962/0.1256, allocations: 0.5282 MB / 0.5262 GB, free: 13.14 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003395/0.1259, allocations: 130.4 kB / 0.5263 GB, free: 13 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002141/0.1262, allocations: 92.8 kB / 0.5264 GB, free: 12.91 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.668e-05/0.1262, allocations: 0 / 0.5264 GB, free: 12.91 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000367/0.1265, allocations: 181 kB / 0.5266 GB, free: 12.71 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 1.703e-06/0.1265, allocations: 4 kB / 0.5266 GB, free: 12.71 MB / 398.1 MB Notification: Performance of matching and sorting (n=17): time 0.0009451/0.1275, allocations: 427.2 kB / 0.527 GB, free: 12.28 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.261e-05/0.1276, allocations: 81.11 kB / 0.5271 GB, free: 12.18 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002207/0.1278, allocations: 206.5 kB / 0.5273 GB, free: 11.96 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.486e-05/0.1278, allocations: 25.7 kB / 0.5273 GB, free: 11.93 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001001/0.1279, allocations: 124.4 kB / 0.5274 GB, free: 11.81 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.798e-05/0.128, allocations: 43.81 kB / 0.5275 GB, free: 11.77 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.774e-05/0.128, allocations: 45.7 kB / 0.5275 GB, free: 11.71 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.1282, allocations: 330.8 kB / 0.5278 GB, free: 11.38 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001902/0.1284, allocations: 79.95 kB / 0.5279 GB, free: 11.3 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002157/0.1286, allocations: 116.2 kB / 0.528 GB, free: 11.18 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001025/0.1296, allocations: 483.5 kB / 0.5285 GB, free: 10.66 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.1296, allocations: 0 / 0.5285 GB, free: 10.66 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006436/0.1303, allocations: 334.9 kB / 0.5288 GB, free: 10.32 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.431e-05/0.1303, allocations: 33.7 kB / 0.5288 GB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/0.1303, allocations: 4 kB / 0.5288 GB, free: 10.28 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.02e-05/0.1303, allocations: 4 kB / 0.5288 GB, free: 10.28 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001619/0.1305, allocations: 39.91 kB / 0.5289 GB, free: 10.24 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.217e-06/0.1305, allocations: 7.875 kB / 0.5289 GB, free: 10.23 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001379/0.1306, allocations: 19.92 kB / 0.5289 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.648e-05/0.1307, allocations: 4 kB / 0.5289 GB, free: 10.21 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.000261/0.1309, allocations: 195.5 kB / 0.5291 GB, free: 10 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.761e-05/0.131, allocations: 19.84 kB / 0.5291 GB, free: 9.98 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.606e-05/0.131, allocations: 25.86 kB / 0.5291 GB, free: 9.953 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.131, allocations: 0 / 0.5291 GB, free: 9.953 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.013e-06/0.131, allocations: 3.938 kB / 0.5291 GB, free: 9.949 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.131, allocations: 0 / 0.5291 GB, free: 9.949 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001043/0.1321, allocations: 0.6912 MB / 0.5298 GB, free: 9.195 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.1321, allocations: 0 / 0.5298 GB, free: 9.195 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.368e-05/0.1321, allocations: 4 kB / 0.5298 GB, free: 9.191 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.11e-06/0.1321, allocations: 7.875 kB / 0.5298 GB, free: 9.184 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.11e-05/0.1321, allocations: 4 kB / 0.5298 GB, free: 9.18 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.134e-06/0.1321, allocations: 0 / 0.5298 GB, free: 9.18 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.1322, allocations: 0 / 0.5298 GB, free: 9.18 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000971/0.1331, allocations: 0.5829 MB / 0.5304 GB, free: 8.574 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.058e-05/0.1332, allocations: 92.95 kB / 0.5305 GB, free: 8.465 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.914e-05/0.1332, allocations: 8 kB / 0.5305 GB, free: 8.457 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000155/0.1334, allocations: 11.98 kB / 0.5305 GB, free: 8.445 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.934e-05/0.1334, allocations: 7.984 kB / 0.5305 GB, free: 8.438 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.33e-05/0.1335, allocations: 20.05 kB / 0.5305 GB, free: 8.418 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001385/0.1336, allocations: 143.2 kB / 0.5307 GB, free: 8.277 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1336, allocations: 0 / 0.5307 GB, free: 8.277 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003475/0.1339, allocations: 55.89 kB / 0.5307 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.001411/0.1354, allocations: 1.147 MB / 0.5318 GB, free: 7.043 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005665/0.1359, allocations: 263.2 kB / 0.5321 GB, free: 6.773 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.1359, allocations: 320 / 0.5321 GB, free: 6.773 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002658/0.1362, allocations: 163.3 kB / 0.5322 GB, free: 6.602 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004002/0.1366, allocations: 36.95 kB / 0.5323 GB, free: 6.566 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00356/0.1402, allocations: 2.459 MB / 0.5347 GB, free: 4 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003958/0.1405, allocations: 0.7201 MB / 0.5354 GB, free: 3.254 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.867e-05/0.1406, allocations: 16.58 kB / 0.5354 GB, free: 3.238 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.408e-05/0.1407, allocations: 43.42 kB / 0.5354 GB, free: 3.195 MB / 398.1 MB Notification: Performance of SimCode: time 7.21e-07/0.1407, allocations: 0 / 0.5354 GB, free: 3.195 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02284/0.1635, allocations: 4.325 MB / 0.5397 GB, free: 14.82 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.068/8.232, allocations: 8 kB / 0.5397 GB, free: 14.81 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 & /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: 11.346276163007133] Failed to read output from testmodel.py, exit status != 0: 8.361327293969225 8.388272513 8.260312844 Calling exit ...