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.001365/0.001365, allocations: 114.3 kB / 18.94 MB, free: 2.934 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.001705/0.001705, allocations: 214.6 kB / 22.26 MB, free: 5.082 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.421/1.421, allocations: 230.6 MB / 256 MB, free: 8.004 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.1397/0.1397, allocations: 23.9 MB / 336.3 MB, free: 11.13 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.002002/0.002002, allocations: 67.91 kB / 471.2 MB, free: 7.629 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3282/0.3302, allocations: 59.88 MB / 0.5186 GB, free: 9.605 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.HeatingOfWater): time 0.004345/0.3345, allocations: 3.491 MB / 0.5221 GB, free: 7.141 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.005423/0.34, allocations: 4.803 MB / 0.5267 GB, free: 3.66 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004457/0.3404, allocations: 12.62 kB / 0.5268 GB, free: 3.652 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004744/0.3409, allocations: 107.7 kB / 0.5269 GB, free: 3.594 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001133/0.342, allocations: 456.5 kB / 0.5273 GB, free: 3.316 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001327/0.3433, allocations: 0.5318 MB / 0.5278 GB, free: 3.004 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007818/0.3441, allocations: 0.5814 MB / 0.5284 GB, free: 2.711 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004272/0.3445, allocations: 317.9 kB / 0.5287 GB, free: 2.547 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003462/0.3449, allocations: 292.2 kB / 0.529 GB, free: 2.434 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004457/0.3453, allocations: 309.3 kB / 0.5293 GB, free: 2.301 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.594e-05/0.3454, allocations: 52.19 kB / 0.5293 GB, free: 2.301 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001356/0.3468, allocations: 475.6 kB / 0.5298 GB, free: 2.191 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001189/0.3469, allocations: 122.4 kB / 0.5299 GB, free: 2.109 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002379/0.3471, allocations: 281.4 kB / 0.5301 GB, free: 1.945 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001753/0.3489, allocations: 1.077 MB / 0.5312 GB, free: 1.484 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.3489, allocations: 0.5625 kB / 0.5312 GB, free: 1.484 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3489, allocations: 0 / 0.5312 GB, free: 1.484 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.019e-05/0.3489, allocations: 0.5 kB / 0.5312 GB, free: 1.484 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.001618/0.3505, allocations: 0.8052 MB / 0.532 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.951e-05/0.3506, allocations: 9.781 kB / 0.532 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.994e-05/0.3507, allocations: 88.08 kB / 0.5321 GB, free: 0.8555 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003633/0.351, allocations: 87.19 kB / 0.5322 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005895/0.3516, allocations: 317.4 kB / 0.5325 GB, free: 0.5898 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.778e-05/0.3517, allocations: 36.75 kB / 0.5325 GB, free: 0.5703 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.042e-05/0.3517, allocations: 43.25 kB / 0.5325 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007205/0.3525, allocations: 458 kB / 0.533 GB, free: 380 kB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.654e-05/0.3525, allocations: 4 kB / 0.533 GB, free: 376 kB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.086e-05/0.3525, allocations: 16.91 kB / 0.533 GB, free: 364 kB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.286e-05/0.3525, allocations: 10.41 kB / 0.533 GB, free: 364 kB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007911/0.3533, allocations: 0.5132 MB / 0.5335 GB, free: 204 kB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002652/0.356, allocations: 1.498 MB / 0.535 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007885/0.3568, allocations: 350.2 kB / 0.5353 GB, free: 15.1 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001924/0.357, allocations: 104.5 kB / 0.5354 GB, free: 15.05 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002131/0.3591, allocations: 0.9184 MB / 0.5363 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.283e-05/0.3591, allocations: 36.06 kB / 0.5363 GB, free: 14.52 MB / 398.1 MB Notification: Performance of pre-optimization done (n=22): time 1.573e-06/0.3591, allocations: 0 / 0.5363 GB, free: 14.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.01523/0.3744, allocations: 2.12 MB / 0.5384 GB, free: 13.79 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.146e-05/0.3744, allocations: 55.53 kB / 0.5385 GB, free: 13.73 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004453/0.3749, allocations: 303.2 kB / 0.5387 GB, free: 13.56 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.279e-05/0.3749, allocations: 31.92 kB / 0.5388 GB, free: 13.52 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002154/0.3751, allocations: 278.6 kB / 0.539 GB, free: 13.29 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001205/0.3752, allocations: 113.7 kB / 0.5392 GB, free: 13.2 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001517/0.3754, allocations: 85.64 kB / 0.5392 GB, free: 13.16 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001831/0.3756, allocations: 349.1 kB / 0.5396 GB, free: 12.82 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002466/0.3758, allocations: 132.6 kB / 0.5397 GB, free: 12.77 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003563/0.3762, allocations: 259.8 kB / 0.5399 GB, free: 12.56 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006328/0.3768, allocations: 430.4 kB / 0.5404 GB, free: 12.25 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.3768, allocations: 0 / 0.5404 GB, free: 12.25 MB / 398.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.004248/0.3811, allocations: 0.8209 MB / 0.5412 GB, free: 11.95 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.237e-05/0.3811, allocations: 6.484 kB / 0.5412 GB, free: 11.95 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.08e-05/0.3811, allocations: 3.812 kB / 0.5412 GB, free: 11.95 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00362/0.3847, allocations: 413.4 kB / 0.5416 GB, free: 11.88 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002961/0.385, allocations: 78.12 kB / 0.5416 GB, free: 11.87 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006646/0.3917, allocations: 3.78 MB / 0.5453 GB, free: 8.754 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004568/0.3921, allocations: 13.59 kB / 0.5453 GB, free: 8.75 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.078e-05/0.3922, allocations: 23.88 kB / 0.5454 GB, free: 8.746 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.0002859/0.3924, allocations: 172 kB / 0.5455 GB, free: 8.59 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001087/0.3926, allocations: 38.56 kB / 0.5456 GB, free: 8.566 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004973/0.3975, allocations: 0.8195 MB / 0.5464 GB, free: 8.27 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.863e-06/0.3975, allocations: 3.812 kB / 0.5464 GB, free: 8.27 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.982e-06/0.3975, allocations: 2.594 kB / 0.5464 GB, free: 8.27 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.856e-06/0.3976, allocations: 5.391 kB / 0.5464 GB, free: 8.266 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001023/0.3986, allocations: 0.6012 MB / 0.547 GB, free: 7.797 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.189e-06/0.3986, allocations: 1.531 kB / 0.547 GB, free: 7.797 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001868/0.3988, allocations: 51.58 kB / 0.547 GB, free: 7.785 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004581/0.4033, allocations: 496.9 kB / 0.5475 GB, free: 7.547 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.208e-05/0.4034, allocations: 18.61 kB / 0.5475 GB, free: 7.535 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007563/0.411, allocations: 4.984 MB / 0.5524 GB, free: 2.914 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.552e-06/0.411, allocations: 6.266 kB / 0.5524 GB, free: 2.91 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005389/0.4164, allocations: 1.122 MB / 0.5535 GB, free: 2.191 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001826/0.4166, allocations: 39.05 kB / 0.5535 GB, free: 2.164 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.779e-05/0.4166, allocations: 8.75 kB / 0.5535 GB, free: 2.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002978/0.4169, allocations: 16.41 kB / 0.5535 GB, free: 2.148 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001403/0.417, allocations: 51.52 kB / 0.5536 GB, free: 2.113 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.971e-05/0.4171, allocations: 19.86 kB / 0.5536 GB, free: 2.105 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002559/0.4173, allocations: 202.9 kB / 0.5538 GB, free: 1.973 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4173, allocations: 0 / 0.5538 GB, free: 1.973 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001072/0.4184, allocations: 240.2 kB / 0.554 GB, free: 1.922 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.006246/0.4247, allocations: 1.855 MB / 0.5558 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001532/0.4262, allocations: 0.6619 MB / 0.5565 GB, free: 116 kB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 6.862e-06/0.4262, allocations: 0 / 0.5565 GB, free: 116 kB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001026/0.4272, allocations: 0.6037 MB / 0.5571 GB, free: 15.62 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007655/0.428, allocations: 103.8 kB / 0.5572 GB, free: 15.57 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01226/0.4402, allocations: 4.605 MB / 0.5617 GB, free: 12.24 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005146/0.4408, allocations: 0.8324 MB / 0.5625 GB, free: 11.48 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003115/0.4411, allocations: 75.75 kB / 0.5625 GB, free: 11.45 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002716/0.4413, allocations: 177.8 kB / 0.5627 GB, free: 11.31 MB / 414.1 MB Notification: Performance of SimCode: time 8.22e-07/0.4413, allocations: 0 / 0.5627 GB, free: 11.31 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06026/0.5016, allocations: 15.98 MB / 0.5783 GB, free: 11.51 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.56/14.06, allocations: 3.938 kB / 0.5783 GB, free: 11.51 MB / 430.1 MB " [Timeout remaining time 646] (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.742715048836544] Failed to read output from testmodel.py, exit status != 0: 14.181412321981043 14.196472573 13.844452639 Calling exit ...