Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_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.001578/0.001578, allocations: 108.2 kB / 16.45 MB, free: 6.488 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.001914/0.001914, allocations: 216.2 kB / 19.43 MB, free: 3.656 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.631/1.631, allocations: 230.6 MB / 252.8 MB, free: 8.969 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.1337/0.1337, allocations: 23.89 MB / 332.7 MB, free: 12.34 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/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_master_Chemical_Obsolete_Examples_HeatingOfWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.HeatingOfWater,fileNamePrefix="Chemical_master_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.001945/0.001945, allocations: 67.91 kB / 466 MB, free: 10.09 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.359/0.3609, allocations: 59.83 MB / 0.5135 GB, free: 8.848 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.HeatingOfWater): time 0.005268/0.3662, allocations: 3.486 MB / 0.5169 GB, free: 6.594 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.006331/0.3725, allocations: 4.778 MB / 0.5216 GB, free: 3.133 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003241/0.3728, allocations: 8.375 kB / 0.5216 GB, free: 3.129 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004883/0.3733, allocations: 115.7 kB / 0.5217 GB, free: 3.062 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00125/0.3746, allocations: 452.4 kB / 0.5222 GB, free: 2.785 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001432/0.376, allocations: 0.5323 MB / 0.5227 GB, free: 2.469 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007516/0.3768, allocations: 0.5776 MB / 0.5232 GB, free: 2.18 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004621/0.3772, allocations: 308.9 kB / 0.5235 GB, free: 2.02 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003893/0.3776, allocations: 296.4 kB / 0.5238 GB, free: 1.902 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004883/0.3781, allocations: 306.1 kB / 0.5241 GB, free: 1.773 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.979e-05/0.3782, allocations: 56.78 kB / 0.5242 GB, free: 1.77 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001345/0.3795, allocations: 475.4 kB / 0.5246 GB, free: 1.66 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001425/0.3797, allocations: 126.6 kB / 0.5247 GB, free: 1.574 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003072/0.38, allocations: 279.8 kB / 0.525 GB, free: 1.41 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001779/0.3818, allocations: 1.078 MB / 0.5261 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.47e-06/0.3818, allocations: 1.062 kB / 0.5261 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.3818, allocations: 0 / 0.5261 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.866e-06/0.3818, allocations: 0 / 0.5261 GB, free: 0.9492 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.001648/0.3834, allocations: 0.8774 MB / 0.5269 GB, free: 304 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.991e-05/0.3835, allocations: 9.75 kB / 0.5269 GB, free: 304 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001234/0.3836, allocations: 88.58 kB / 0.527 GB, free: 232 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004748/0.3841, allocations: 90.83 kB / 0.5271 GB, free: 200 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007475/0.3848, allocations: 371.8 kB / 0.5275 GB, free: 15.89 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.445e-05/0.3849, allocations: 36.09 kB / 0.5275 GB, free: 15.88 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001132/0.385, allocations: 43.25 kB / 0.5275 GB, free: 15.86 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001118/0.3861, allocations: 459.9 kB / 0.528 GB, free: 15.67 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.85e-05/0.3861, allocations: 0.6094 kB / 0.528 GB, free: 15.67 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.527e-05/0.3862, allocations: 16.09 kB / 0.528 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.509e-05/0.3862, allocations: 11.59 kB / 0.528 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001203/0.3874, allocations: 0.513 MB / 0.5285 GB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003533/0.3909, allocations: 1.54 MB / 0.53 GB, free: 14.52 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001022/0.392, allocations: 339.9 kB / 0.5303 GB, free: 14.39 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002624/0.3922, allocations: 107.1 kB / 0.5304 GB, free: 14.34 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002974/0.3952, allocations: 1.566 MB / 0.532 GB, free: 13.05 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.428e-05/0.3952, allocations: 31.72 kB / 0.532 GB, free: 13.02 MB / 398.1 MB Notification: Performance of pre-optimization done (n=22): time 2.104e-06/0.3952, allocations: 5.156 kB / 0.532 GB, free: 13.01 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.01776/0.413, allocations: 2.352 MB / 0.5343 GB, free: 12 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.468e-05/0.4131, allocations: 54.66 kB / 0.5343 GB, free: 11.93 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005205/0.4136, allocations: 292.7 kB / 0.5346 GB, free: 11.77 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.147e-05/0.4136, allocations: 34.83 kB / 0.5346 GB, free: 11.73 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002714/0.4139, allocations: 274.3 kB / 0.5349 GB, free: 11.51 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001582/0.4141, allocations: 119.3 kB / 0.535 GB, free: 11.42 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002722/0.4143, allocations: 84.95 kB / 0.5351 GB, free: 11.37 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002619/0.4146, allocations: 343.9 kB / 0.5354 GB, free: 11.04 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003547/0.4149, allocations: 133.1 kB / 0.5356 GB, free: 10.99 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006005/0.4155, allocations: 266 kB / 0.5358 GB, free: 10.77 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009533/0.4165, allocations: 425.5 kB / 0.5362 GB, free: 10.46 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.946e-06/0.4165, allocations: 1.062 kB / 0.5362 GB, free: 10.46 MB / 398.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.005042/0.4215, allocations: 0.8147 MB / 0.537 GB, free: 10.17 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.191e-05/0.4216, allocations: 7.672 kB / 0.537 GB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.043e-05/0.4216, allocations: 4.125 kB / 0.537 GB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00426/0.4258, allocations: 413 kB / 0.5374 GB, free: 10.1 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003876/0.4262, allocations: 82.08 kB / 0.5375 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009137/0.4354, allocations: 3.98 MB / 0.5414 GB, free: 6.715 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005189/0.4359, allocations: 25.97 kB / 0.5414 GB, free: 6.699 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.184e-05/0.4359, allocations: 17.28 kB / 0.5414 GB, free: 6.699 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.0003481/0.4363, allocations: 173 kB / 0.5416 GB, free: 6.543 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001273/0.4364, allocations: 33.05 kB / 0.5416 GB, free: 6.527 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006047/0.4425, allocations: 0.837 MB / 0.5424 GB, free: 6.219 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.462e-06/0.4425, allocations: 3.469 kB / 0.5424 GB, free: 6.219 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.248e-05/0.4425, allocations: 6.828 kB / 0.5424 GB, free: 6.215 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.283e-06/0.4425, allocations: 1.031 kB / 0.5425 GB, free: 6.215 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001214/0.4437, allocations: 0.6263 MB / 0.5431 GB, free: 5.758 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.011e-06/0.4437, allocations: 2.188 kB / 0.5431 GB, free: 5.758 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002542/0.444, allocations: 54.02 kB / 0.5431 GB, free: 5.75 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005475/0.4494, allocations: 493.2 kB / 0.5436 GB, free: 5.656 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.211e-05/0.4495, allocations: 17.14 kB / 0.5436 GB, free: 5.648 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009993/0.4595, allocations: 5.31 MB / 0.5488 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.4595, allocations: 2.812 kB / 0.5488 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006588/0.4661, allocations: 1.118 MB / 0.5499 GB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002102/0.4663, allocations: 116 kB / 0.55 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.243e-05/0.4664, allocations: 7.625 kB / 0.55 GB, free: 15.84 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003953/0.4668, allocations: 17.69 kB / 0.55 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001651/0.4669, allocations: 42.19 kB / 0.5501 GB, free: 15.8 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.173e-05/0.467, allocations: 20.7 kB / 0.5501 GB, free: 15.79 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003198/0.4673, allocations: 202.2 kB / 0.5503 GB, free: 15.66 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4673, allocations: 0 / 0.5503 GB, free: 15.66 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001306/0.4686, allocations: 244.5 kB / 0.5505 GB, free: 15.6 MB / 414.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.007689/0.4763, allocations: 1.848 MB / 0.5523 GB, free: 14.25 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001908/0.4782, allocations: 0.6653 MB / 0.553 GB, free: 13.8 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.4782, allocations: 0 / 0.553 GB, free: 13.8 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001286/0.4795, allocations: 0.611 MB / 0.5536 GB, free: 13.3 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009445/0.4804, allocations: 104.8 kB / 0.5537 GB, free: 13.25 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01542/0.4959, allocations: 4.595 MB / 0.5581 GB, free: 9.93 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006447/0.4965, allocations: 0.8329 MB / 0.559 GB, free: 9.168 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.000384/0.4969, allocations: 74.67 kB / 0.559 GB, free: 9.125 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003568/0.4972, allocations: 174.1 kB / 0.5592 GB, free: 8.992 MB / 414.1 MB Notification: Performance of SimCode: time 7.62e-07/0.4972, allocations: 0 / 0.5592 GB, free: 8.992 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07844/0.5757, allocations: 15.51 MB / 0.5743 GB, free: 11.17 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.59/13.17, allocations: 8.062 kB / 0.5743 GB, free: 11.16 MB / 430.1 MB " [Timeout remaining time 647] (rm -f Chemical_master_Chemical.Obsolete.Examples.HeatingOfWater.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.HeatingOfWater.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.HeatingOfWater.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.HeatingOfWater.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_master_Chemical_Obsolete_Examples_HeatingOfWater_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 Chemical_master_Chemical_Obsolete_Examples_HeatingOfWater.fmu > Chemical_master_Chemical.Obsolete.Examples.HeatingOfWater.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.054605436045676] Failed to read output from testmodel.py, exit status != 0: 13.274014052934945 13.301564815 12.914685528 Calling exit ...