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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001305/0.001305, allocations: 125.2 kB / 17.79 MB, free: 5.121 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00129/0.00129, allocations: 190.9 kB / 20.73 MB, free: 2.184 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.426/1.426, allocations: 207.6 MB / 231.1 MB, free: 4.129 MB / 174.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.4048/0.4048, allocations: 49.52 MB / 332.5 MB, free: 0.7656 MB / 254.1 MB " [Timeout remaining time 179] Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002103/0.002103, allocations: 66.08 kB / 470.7 MB, free: 41.1 MB / 382.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09432/0.09642, allocations: 62.34 MB / 0.5206 GB, free: 2.379 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ThermoPower.Examples.HRB.Simulators.TestPI): time 0.0026/0.09902, allocations: 1.666 MB / 0.5222 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001159/0.1002, allocations: 0.711 MB / 0.5229 GB, free: 15.98 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001115/0.1003, allocations: 0 / 0.5229 GB, free: 15.98 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000236/0.1005, allocations: 51.8 kB / 0.523 GB, free: 15.93 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001305/0.1007, allocations: 63.73 kB / 0.523 GB, free: 15.86 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005635/0.1012, allocations: 127.6 kB / 0.5231 GB, free: 15.74 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002803/0.1015, allocations: 151.6 kB / 0.5233 GB, free: 15.59 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001109/0.1016, allocations: 25.42 kB / 0.5233 GB, free: 15.56 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001418/0.1018, allocations: 67.75 kB / 0.5234 GB, free: 15.49 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001978/0.102, allocations: 103.7 kB / 0.5235 GB, free: 15.39 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.999e-05/0.102, allocations: 8 kB / 0.5235 GB, free: 15.38 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001557/0.1021, allocations: 87.92 kB / 0.5236 GB, free: 15.3 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.815e-05/0.1022, allocations: 43.78 kB / 0.5236 GB, free: 15.25 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 9.093e-05/0.1023, allocations: 63.59 kB / 0.5237 GB, free: 15.19 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003578/0.1027, allocations: 191.2 kB / 0.5239 GB, free: 15 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.1027, allocations: 3.938 kB / 0.5239 GB, free: 15 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1027, allocations: 0 / 0.5239 GB, free: 15 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.17e-05/0.1027, allocations: 0 / 0.5239 GB, free: 15 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.0008972/0.1036, allocations: 0.5253 MB / 0.5244 GB, free: 14.41 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.701e-05/0.1036, allocations: 15.89 kB / 0.5244 GB, free: 14.4 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.835e-05/0.1037, allocations: 42.73 kB / 0.5244 GB, free: 14.35 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.697e-05/0.1038, allocations: 24.73 kB / 0.5245 GB, free: 14.32 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004023/0.1042, allocations: 224 kB / 0.5247 GB, free: 14.06 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.988e-05/0.1042, allocations: 4.375 kB / 0.5247 GB, free: 14.06 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.058e-05/0.1042, allocations: 12.36 kB / 0.5247 GB, free: 14.05 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003862/0.1046, allocations: 176.2 kB / 0.5248 GB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.1046, allocations: 0 / 0.5248 GB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.55e-05/0.1046, allocations: 0 / 0.5248 GB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.176e-06/0.1046, allocations: 4 kB / 0.5249 GB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002342/0.1049, allocations: 95.94 kB / 0.5249 GB, free: 13.76 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008005/0.1057, allocations: 0.5282 MB / 0.5255 GB, free: 13.18 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003333/0.106, allocations: 134.4 kB / 0.5256 GB, free: 13.04 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002002/0.1062, allocations: 92.8 kB / 0.5257 GB, free: 12.94 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.316e-05/0.1062, allocations: 0 / 0.5257 GB, free: 12.94 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003853/0.1066, allocations: 184.8 kB / 0.5259 GB, free: 12.74 MB / 398.1 MB Notification: Performance of pre-optimization done (n=17): time 2.114e-06/0.1066, allocations: 4 kB / 0.5259 GB, free: 12.74 MB / 398.1 MB Notification: Performance of matching and sorting (n=17): time 0.0009551/0.1076, allocations: 427.2 kB / 0.5263 GB, free: 12.31 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.587e-05/0.1077, allocations: 81.11 kB / 0.5263 GB, free: 12.21 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002657/0.1079, allocations: 202.6 kB / 0.5265 GB, free: 12 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.07e-05/0.108, allocations: 25.7 kB / 0.5266 GB, free: 11.97 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001082/0.1081, allocations: 120.4 kB / 0.5267 GB, free: 11.85 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.069e-05/0.1081, allocations: 47.81 kB / 0.5267 GB, free: 11.8 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000105/0.1082, allocations: 41.7 kB / 0.5268 GB, free: 11.75 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001778/0.1084, allocations: 338.8 kB / 0.5271 GB, free: 11.41 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00019/0.1086, allocations: 75.95 kB / 0.5272 GB, free: 11.34 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002257/0.1088, allocations: 128.2 kB / 0.5273 GB, free: 11.2 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001053/0.1099, allocations: 482.8 kB / 0.5277 GB, free: 10.69 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.1099, allocations: 0 / 0.5277 GB, free: 10.69 MB / 398.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0006862/0.1106, allocations: 327.5 kB / 0.5281 GB, free: 10.36 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.085e-05/0.1106, allocations: 41.81 kB / 0.5281 GB, free: 10.31 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.1107, allocations: 4 kB / 0.5281 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.708e-05/0.1107, allocations: 0 / 0.5281 GB, free: 10.3 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000168/0.1108, allocations: 31.97 kB / 0.5281 GB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.415e-06/0.1108, allocations: 0 / 0.5281 GB, free: 10.27 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001575/0.111, allocations: 27.86 kB / 0.5282 GB, free: 10.25 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.324e-05/0.111, allocations: 11.92 kB / 0.5282 GB, free: 10.23 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.0003394/0.1114, allocations: 199.3 kB / 0.5284 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.699e-05/0.1114, allocations: 15.91 kB / 0.5284 GB, free: 10.01 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.35e-05/0.1115, allocations: 21.86 kB / 0.5284 GB, free: 9.984 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.857e-06/0.1115, allocations: 0 / 0.5284 GB, free: 9.984 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.745e-06/0.1115, allocations: 0 / 0.5284 GB, free: 9.984 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.226e-05/0.1115, allocations: 3.938 kB / 0.5284 GB, free: 9.98 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001219/0.1127, allocations: 0.699 MB / 0.5291 GB, free: 9.219 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.494e-06/0.1127, allocations: 0 / 0.5291 GB, free: 9.219 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.819e-05/0.1128, allocations: 4 kB / 0.5291 GB, free: 9.215 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.022e-06/0.1128, allocations: 3.938 kB / 0.5291 GB, free: 9.211 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.107e-05/0.1128, allocations: 4 kB / 0.5291 GB, free: 9.207 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.1128, allocations: 0 / 0.5291 GB, free: 9.207 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.074e-06/0.1128, allocations: 0 / 0.5291 GB, free: 9.207 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001055/0.1139, allocations: 0.5829 MB / 0.5297 GB, free: 8.602 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001088/0.114, allocations: 92.95 kB / 0.5297 GB, free: 8.492 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.336e-05/0.114, allocations: 4 kB / 0.5297 GB, free: 8.488 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001695/0.1142, allocations: 15.98 kB / 0.5298 GB, free: 8.473 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.405e-05/0.1142, allocations: 7.984 kB / 0.5298 GB, free: 8.465 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.244e-05/0.1143, allocations: 8 kB / 0.5298 GB, free: 8.457 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001638/0.1144, allocations: 155.3 kB / 0.5299 GB, free: 8.305 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1144, allocations: 0 / 0.5299 GB, free: 8.305 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003702/0.1148, allocations: 51.89 kB / 0.53 GB, free: 8.254 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.001465/0.1163, allocations: 1.147 MB / 0.5311 GB, free: 7.074 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0005647/0.1168, allocations: 263.2 kB / 0.5313 GB, free: 6.805 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.1168, allocations: 4 kB / 0.5314 GB, free: 6.801 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002688/0.1171, allocations: 160.4 kB / 0.5315 GB, free: 6.633 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003923/0.1175, allocations: 35.97 kB / 0.5315 GB, free: 6.598 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003503/0.121, allocations: 2.468 MB / 0.5339 GB, free: 4.023 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003948/0.1214, allocations: 0.7279 MB / 0.5347 GB, free: 3.27 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 5.196e-05/0.1214, allocations: 8.641 kB / 0.5347 GB, free: 3.262 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.403e-05/0.1215, allocations: 47.42 kB / 0.5347 GB, free: 3.215 MB / 398.1 MB Notification: Performance of SimCode: time 7.22e-07/0.1215, allocations: 0 / 0.5347 GB, free: 3.215 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02959/0.1511, allocations: 4.277 MB / 0.5389 GB, free: 14.89 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.699/8.85, allocations: 11.98 kB / 0.5389 GB, free: 14.88 MB / 414.1 MB " [Timeout remaining time 651] (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.697706665378064] Failed to read output from testmodel.py, exit status != 0: 8.92229127464816 8.94344358 8.836735327 Calling exit ...