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.001237/0.001237, allocations: 99.75 kB / 18.95 MB, free: 2.832 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.001381/0.001381, allocations: 218.5 kB / 22.25 MB, free: 5.105 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.348/1.348, allocations: 230.6 MB / 256 MB, free: 7.812 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.1293/0.1293, allocations: 23.92 MB / 336.3 MB, free: 10.94 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.001879/0.001879, allocations: 76.11 kB / 471.2 MB, free: 7.48 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2735/0.2754, allocations: 59.87 MB / 0.5186 GB, free: 9.535 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.HeatingOfWater): time 0.00371/0.2791, allocations: 3.216 MB / 0.5217 GB, free: 7.359 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004205/0.2833, allocations: 4.247 MB / 0.5259 GB, free: 4.473 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002051/0.2835, allocations: 12.31 kB / 0.5259 GB, free: 4.465 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003216/0.2838, allocations: 103.5 kB / 0.526 GB, free: 4.41 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008442/0.2847, allocations: 456.9 kB / 0.5264 GB, free: 4.133 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009223/0.2856, allocations: 0.5246 MB / 0.5269 GB, free: 3.828 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000534/0.2861, allocations: 0.5841 MB / 0.5275 GB, free: 3.531 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003441/0.2865, allocations: 303.1 kB / 0.5278 GB, free: 3.383 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002754/0.2868, allocations: 293.1 kB / 0.5281 GB, free: 3.27 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004205/0.2872, allocations: 317.5 kB / 0.5284 GB, free: 3.129 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.954e-05/0.2873, allocations: 52.38 kB / 0.5284 GB, free: 3.129 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009091/0.2882, allocations: 466 kB / 0.5289 GB, free: 3.023 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001158/0.2883, allocations: 115 kB / 0.529 GB, free: 2.949 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002167/0.2885, allocations: 237.5 kB / 0.5292 GB, free: 2.828 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001537/0.29, allocations: 1.074 MB / 0.5303 GB, free: 2.375 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.538e-06/0.29, allocations: 0 / 0.5303 GB, free: 2.375 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.29, allocations: 0.6562 kB / 0.5303 GB, free: 2.375 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.017e-05/0.2901, allocations: 0 / 0.5303 GB, free: 2.375 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.001379/0.2914, allocations: 0.8027 MB / 0.531 GB, free: 1.816 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.711e-05/0.2915, allocations: 10.69 kB / 0.5311 GB, free: 1.816 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.181e-05/0.2916, allocations: 88.62 kB / 0.5311 GB, free: 1.746 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000357/0.2919, allocations: 90.12 kB / 0.5312 GB, free: 1.715 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005118/0.2924, allocations: 313.7 kB / 0.5315 GB, free: 1.48 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.312e-05/0.2925, allocations: 36.78 kB / 0.5316 GB, free: 1.461 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.236e-05/0.2925, allocations: 47.66 kB / 0.5316 GB, free: 1.445 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007128/0.2932, allocations: 456.9 kB / 0.532 GB, free: 1.258 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.494e-05/0.2933, allocations: 0.7031 kB / 0.532 GB, free: 1.258 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.214e-05/0.2933, allocations: 17.06 kB / 0.5321 GB, free: 1.246 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.42e-05/0.2933, allocations: 14.88 kB / 0.5321 GB, free: 1.242 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007538/0.2941, allocations: 0.5077 MB / 0.5326 GB, free: 1.086 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002065/0.2961, allocations: 1.206 MB / 0.5337 GB, free: 384 kB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000708/0.2968, allocations: 340.5 kB / 0.5341 GB, free: 248 kB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001729/0.297, allocations: 106.9 kB / 0.5342 GB, free: 200 kB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001982/0.299, allocations: 0.8753 MB / 0.535 GB, free: 15.72 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.899e-05/0.299, allocations: 33.55 kB / 0.5351 GB, free: 15.68 MB / 398.1 MB Notification: Performance of pre-optimization done (n=22): time 1.623e-06/0.299, allocations: 0 / 0.5351 GB, free: 15.68 MB / 398.1 MB Notification: Performance of matching and sorting (n=31): time 0.01626/0.3153, allocations: 2.112 MB / 0.5371 GB, free: 14.96 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.03e-05/0.3153, allocations: 56.16 kB / 0.5372 GB, free: 14.9 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004347/0.3158, allocations: 308.3 kB / 0.5375 GB, free: 14.73 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 5.202e-05/0.3158, allocations: 34.98 kB / 0.5375 GB, free: 14.69 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002185/0.3161, allocations: 283.1 kB / 0.5378 GB, free: 14.45 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000114/0.3162, allocations: 110.6 kB / 0.5379 GB, free: 14.37 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001617/0.3163, allocations: 84.89 kB / 0.538 GB, free: 14.32 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001607/0.3165, allocations: 348.9 kB / 0.5383 GB, free: 13.99 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002527/0.3167, allocations: 132.6 kB / 0.5384 GB, free: 13.93 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003523/0.3171, allocations: 260.2 kB / 0.5387 GB, free: 13.73 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006123/0.3177, allocations: 428.5 kB / 0.5391 GB, free: 13.42 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.3177, allocations: 5.25 kB / 0.5391 GB, free: 13.41 MB / 398.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.004492/0.3222, allocations: 0.825 MB / 0.5399 GB, free: 13.11 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.864e-05/0.3222, allocations: 5.844 kB / 0.5399 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.137e-06/0.3222, allocations: 5.344 kB / 0.5399 GB, free: 13.11 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003955/0.3262, allocations: 403.8 kB / 0.5403 GB, free: 13.05 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002865/0.3265, allocations: 82.28 kB / 0.5404 GB, free: 13.04 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006728/0.3332, allocations: 3.743 MB / 0.544 GB, free: 9.938 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004414/0.3336, allocations: 14.14 kB / 0.544 GB, free: 9.934 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.183e-05/0.3337, allocations: 22.08 kB / 0.5441 GB, free: 9.93 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.0002636/0.334, allocations: 176 kB / 0.5442 GB, free: 9.77 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.671e-05/0.3341, allocations: 37.59 kB / 0.5443 GB, free: 9.75 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005562/0.3396, allocations: 0.8227 MB / 0.5451 GB, free: 9.449 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.3396, allocations: 3.953 kB / 0.5451 GB, free: 9.449 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/0.3396, allocations: 1.062 kB / 0.5451 GB, free: 9.449 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.093e-06/0.3396, allocations: 3.516 kB / 0.5451 GB, free: 9.449 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008374/0.3405, allocations: 0.5437 MB / 0.5456 GB, free: 9.043 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.3405, allocations: 2.281 kB / 0.5456 GB, free: 9.043 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001855/0.3407, allocations: 49.56 kB / 0.5456 GB, free: 9.039 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005253/0.3459, allocations: 492.8 kB / 0.5461 GB, free: 8.895 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.524e-05/0.346, allocations: 18.84 kB / 0.5461 GB, free: 8.883 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007788/0.3537, allocations: 4.94 MB / 0.551 GB, free: 4.312 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.596e-06/0.3537, allocations: 2.094 kB / 0.551 GB, free: 4.312 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005871/0.3596, allocations: 1.115 MB / 0.5521 GB, free: 3.605 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001819/0.3598, allocations: 42.08 kB / 0.5521 GB, free: 3.574 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.194e-05/0.3599, allocations: 9.125 kB / 0.5521 GB, free: 3.57 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003161/0.3602, allocations: 8.406 kB / 0.5521 GB, free: 3.566 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001422/0.3603, allocations: 52.95 kB / 0.5522 GB, free: 3.531 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.088e-05/0.3604, allocations: 23.64 kB / 0.5522 GB, free: 3.52 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000239/0.3606, allocations: 203.2 kB / 0.5524 GB, free: 3.387 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3606, allocations: 0 / 0.5524 GB, free: 3.387 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0009913/0.3616, allocations: 240.3 kB / 0.5526 GB, free: 3.336 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.006541/0.3681, allocations: 1.845 MB / 0.5544 GB, free: 1.988 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001374/0.3695, allocations: 0.6682 MB / 0.5551 GB, free: 1.535 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.3695, allocations: 5.312 kB / 0.5551 GB, free: 1.531 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009507/0.3705, allocations: 0.6035 MB / 0.5557 GB, free: 1.039 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006852/0.3711, allocations: 112.3 kB / 0.5558 GB, free: 0.9766 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01243/0.3836, allocations: 4.594 MB / 0.5602 GB, free: 13.62 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002465/0.3838, allocations: 228.2 kB / 0.5605 GB, free: 13.38 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0002659/0.3841, allocations: 78.95 kB / 0.5605 GB, free: 13.3 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002544/0.3843, allocations: 175.4 kB / 0.5607 GB, free: 13.13 MB / 414.1 MB Notification: Performance of SimCode: time 8.92e-07/0.3844, allocations: 0 / 0.5607 GB, free: 13.13 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05406/0.4384, allocations: 16.8 MB / 0.5771 GB, free: 12.55 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.52/12.96, allocations: 11.92 kB / 0.5771 GB, free: 12.54 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 os._exit(0), Time elapsed: 15.417523793992586] Failed to read output from testmodel.py, exit status != 0: 13.083331854984863 13.100453323 12.807223707 Calling exit ...