Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Obsolete.Examples.HeatingOfWater.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.001424/0.001424, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001536/0.001536, allocations: 212.2 kB / 22.24 MB, free: 4.855 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.525/1.525, allocations: 230.6 MB / 256 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo): time 0.1477/0.1477, allocations: 23.88 MB / 336.3 MB, free: 10.95 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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(Chemical.Obsolete.Examples.HeatingOfWater,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_HeatingOfWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.HeatingOfWater,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_HeatingOfWater",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Chemical requested package Modelica of version 4.0.0. Modelica 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.002008/0.002008, allocations: 67.91 kB / 471.1 MB, free: 7.492 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3951/0.3971, allocations: 59.86 MB / 0.5185 GB, free: 9.566 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.HeatingOfWater): time 0.005073/0.4022, allocations: 3.221 MB / 0.5217 GB, free: 7.387 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005609/0.4078, allocations: 4.246 MB / 0.5258 GB, free: 4.5 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005328/0.4083, allocations: 7.75 kB / 0.5258 GB, free: 4.496 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004606/0.4088, allocations: 104.8 kB / 0.5259 GB, free: 4.441 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001318/0.4101, allocations: 451.2 kB / 0.5263 GB, free: 4.168 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001567/0.4116, allocations: 0.5327 MB / 0.5269 GB, free: 3.855 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009654/0.4126, allocations: 0.5813 MB / 0.5274 GB, free: 3.562 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004107/0.413, allocations: 299.8 kB / 0.5277 GB, free: 3.418 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003396/0.4134, allocations: 292 kB / 0.528 GB, free: 3.305 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004444/0.4138, allocations: 273.8 kB / 0.5283 GB, free: 3.207 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001129/0.4139, allocations: 51.28 kB / 0.5283 GB, free: 3.207 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001909/0.4158, allocations: 451.7 kB / 0.5287 GB, free: 3.117 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001575/0.416, allocations: 123.5 kB / 0.5289 GB, free: 3.035 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003876/0.4164, allocations: 236.5 kB / 0.5291 GB, free: 2.914 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002388/0.4188, allocations: 1.073 MB / 0.5301 GB, free: 2.461 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.4188, allocations: 0.625 kB / 0.5301 GB, free: 2.461 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.4188, allocations: 0 / 0.5301 GB, free: 2.461 MB / 382.1 MB Notification: Performance of Transformations before backend: time 4.292e-05/0.4188, allocations: 0.5938 kB / 0.5301 GB, free: 2.461 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 117 * Number of variables: 117 Notification: Performance of Generate backend data structure: time 0.002045/0.4209, allocations: 0.8036 MB / 0.5309 GB, free: 1.902 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.368e-05/0.4209, allocations: 9.203 kB / 0.5309 GB, free: 1.902 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001211/0.421, allocations: 88.75 kB / 0.531 GB, free: 1.832 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004596/0.4215, allocations: 98.41 kB / 0.5311 GB, free: 1.793 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007306/0.4222, allocations: 315.1 kB / 0.5314 GB, free: 1.559 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.046e-05/0.4223, allocations: 36.03 kB / 0.5314 GB, free: 1.539 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.348e-05/0.4224, allocations: 50.66 kB / 0.5315 GB, free: 1.52 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000782/0.4231, allocations: 453.5 kB / 0.5319 GB, free: 1.336 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.572e-05/0.4232, allocations: 0 / 0.5319 GB, free: 1.336 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.188e-05/0.4232, allocations: 20.09 kB / 0.5319 GB, free: 1.32 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.309e-05/0.4232, allocations: 11.41 kB / 0.5319 GB, free: 1.32 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008472/0.4241, allocations: 0.4998 MB / 0.5324 GB, free: 1.176 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002356/0.4264, allocations: 1.216 MB / 0.5336 GB, free: 468 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007552/0.4272, allocations: 336.1 kB / 0.5339 GB, free: 336 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002045/0.4274, allocations: 110.9 kB / 0.5341 GB, free: 284 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002232/0.4296, allocations: 0.8757 MB / 0.5349 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.419e-05/0.4296, allocations: 36.33 kB / 0.5349 GB, free: 15.76 MB / 398.1 MB Notification: Performance of pre-optimization done (n=22): time 2.054e-06/0.4296, allocations: 5 kB / 0.5349 GB, free: 15.76 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.01437/0.444, allocations: 2.108 MB / 0.537 GB, free: 15.04 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.149e-05/0.4441, allocations: 54.84 kB / 0.5371 GB, free: 14.98 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004381/0.4445, allocations: 309.2 kB / 0.5374 GB, free: 14.8 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.102e-05/0.4445, allocations: 31.75 kB / 0.5374 GB, free: 14.77 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002177/0.4448, allocations: 278.6 kB / 0.5376 GB, free: 14.54 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001327/0.4449, allocations: 119.6 kB / 0.5378 GB, free: 14.45 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001636/0.4451, allocations: 83.73 kB / 0.5378 GB, free: 14.4 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001699/0.4452, allocations: 346 kB / 0.5382 GB, free: 14.07 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002745/0.4455, allocations: 132.4 kB / 0.5383 GB, free: 14.02 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003959/0.4459, allocations: 263.6 kB / 0.5385 GB, free: 13.8 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007094/0.4466, allocations: 428.5 kB / 0.539 GB, free: 13.5 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.4466, allocations: 1.188 kB / 0.539 GB, free: 13.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.004225/0.4508, allocations: 0.8168 MB / 0.5398 GB, free: 13.2 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.927e-05/0.4509, allocations: 7.266 kB / 0.5398 GB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/0.4509, allocations: 4.5 kB / 0.5398 GB, free: 13.2 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003625/0.4545, allocations: 408 kB / 0.5402 GB, free: 13.13 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003414/0.4548, allocations: 78 kB / 0.5402 GB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007143/0.462, allocations: 3.751 MB / 0.5439 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004937/0.4625, allocations: 17.2 kB / 0.5439 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.797e-05/0.4625, allocations: 18.64 kB / 0.5439 GB, free: 10.02 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,5,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0003124/0.4629, allocations: 172 kB / 0.5441 GB, free: 9.859 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001124/0.463, allocations: 36.72 kB / 0.5441 GB, free: 9.84 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004924/0.4679, allocations: 0.8192 MB / 0.5449 GB, free: 9.543 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.093e-06/0.4679, allocations: 3.281 kB / 0.5449 GB, free: 9.543 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.195e-06/0.4679, allocations: 2.859 kB / 0.5449 GB, free: 9.543 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.207e-06/0.4679, allocations: 5.734 kB / 0.5449 GB, free: 9.539 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001109/0.469, allocations: 0.5444 MB / 0.5455 GB, free: 9.133 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.651e-06/0.469, allocations: 2.156 kB / 0.5455 GB, free: 9.133 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002098/0.4692, allocations: 57.33 kB / 0.5455 GB, free: 9.121 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004488/0.4737, allocations: 491.4 kB / 0.546 GB, free: 9.004 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.037e-05/0.4738, allocations: 18.8 kB / 0.546 GB, free: 8.992 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008087/0.4819, allocations: 4.947 MB / 0.5508 GB, free: 4.414 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.819e-06/0.4819, allocations: 2.406 kB / 0.5508 GB, free: 4.414 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005229/0.4871, allocations: 1.122 MB / 0.5519 GB, free: 3.699 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001885/0.4873, allocations: 38.94 kB / 0.552 GB, free: 3.672 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.113e-05/0.4873, allocations: 16.23 kB / 0.552 GB, free: 3.66 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002889/0.4876, allocations: 9.469 kB / 0.552 GB, free: 3.656 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001405/0.4878, allocations: 47.42 kB / 0.5521 GB, free: 3.625 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.06e-05/0.4878, allocations: 16.94 kB / 0.5521 GB, free: 3.621 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002734/0.4881, allocations: 202.7 kB / 0.5523 GB, free: 3.488 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4881, allocations: 0 / 0.5523 GB, free: 3.488 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001122/0.4892, allocations: 240.3 kB / 0.5525 GB, free: 3.438 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (liquidWater.amountOfBonds,liquidWater.logn) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(3,5,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 2 systems {(1,1), (2,2)} Notification: Performance of Backend phase and start with SimCode phase: time 0.006312/0.4955, allocations: 1.833 MB / 0.5543 GB, free: 2.102 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001617/0.4971, allocations: 0.6687 MB / 0.5549 GB, free: 1.648 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 7.514e-06/0.4971, allocations: 1.375 kB / 0.5549 GB, free: 1.648 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001034/0.4982, allocations: 0.6024 MB / 0.5555 GB, free: 1.156 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007843/0.499, allocations: 105.5 kB / 0.5556 GB, free: 1.098 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01362/0.5126, allocations: 4.607 MB / 0.5601 GB, free: 13.73 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003784/0.513, allocations: 232.1 kB / 0.5603 GB, free: 13.48 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000375/0.5133, allocations: 79.23 kB / 0.5604 GB, free: 13.41 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003046/0.5136, allocations: 171.4 kB / 0.5606 GB, free: 13.24 MB / 414.1 MB Notification: Performance of SimCode: time 1.472e-06/0.5136, allocations: 0 / 0.5606 GB, free: 13.24 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06139/0.575, allocations: 16.65 MB / 0.5768 GB, free: 12.8 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.49/14.07, allocations: 0 / 0.5768 GB, free: 12.8 MB / 430.1 MB " [Timeout remaining time 646] (rm -f Chemical_Chemical.Obsolete.Examples.HeatingOfWater.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.HeatingOfWater.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.HeatingOfWater.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.HeatingOfWater.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Obsolete_Examples_HeatingOfWater_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Obsolete_Examples_HeatingOfWater.fmu > Chemical_Chemical.Obsolete.Examples.HeatingOfWater.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 16.875238741282374] Failed to read output from testmodel.py, exit status != 0: 14.197965019382536 14.213937922 13.791823467 Calling exit ...