Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.HeatingOfWater.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(Chemical.Examples.HeatingOfWater,fileNamePrefix="Chemical_Chemical_Examples_HeatingOfWater",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.HeatingOfWater,fileNamePrefix="Chemical_Chemical_Examples_HeatingOfWater",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009647/0.0009647, allocations: 99.62 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001179/0.001179, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.389/1.389, allocations: 223.2 MB / 239.9 MB, free: 5.453 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.2355/0.2355, allocations: 15.26 MB / 306.2 MB, free: 15.75 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005054/0.0005056, allocations: 11.98 kB / 371.5 MB, free: 3.914 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3272/0.3277, allocations: 54.62 MB / 426.1 MB, free: 40.17 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.HeatingOfWater): time 0.002774/0.3305, allocations: 2.993 MB / 429.1 MB, free: 39.96 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004793/0.3354, allocations: 4.079 MB / 433.1 MB, free: 38.24 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003024/0.3357, allocations: 9.75 kB / 433.2 MB, free: 38.24 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002955/0.336, allocations: 98.7 kB / 433.2 MB, free: 38.19 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009311/0.3369, allocations: 454.7 kB / 433.7 MB, free: 37.89 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001125/0.3381, allocations: 474 kB / 434.2 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005503/0.3386, allocations: 406.4 kB / 434.6 MB, free: 37.39 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003379/0.339, allocations: 281.2 kB / 434.8 MB, free: 37.29 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002673/0.3393, allocations: 219.4 kB / 435 MB, free: 37.2 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002709/0.3395, allocations: 262.5 kB / 435.3 MB, free: 37.09 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.533e-05/0.3396, allocations: 28.66 kB / 435.3 MB, free: 37.09 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009904/0.3406, allocations: 0.4986 MB / 435.8 MB, free: 37.01 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.867e-05/0.3407, allocations: 89.97 kB / 435.9 MB, free: 36.96 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.439e-05/0.3408, allocations: 115.9 kB / 436 MB, free: 36.88 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006699/0.3414, allocations: 0.6408 MB / 436.7 MB, free: 36.68 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.065e-06/0.3415, allocations: 3.938 kB / 436.7 MB, free: 36.68 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.304e-06/0.3415, allocations: 0 / 436.7 MB, free: 36.68 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.3415, allocations: 6.812 kB / 436.7 MB, free: 36.68 MB / 350.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.001031/0.3425, allocations: 0.7601 MB / 437.4 MB, free: 36.1 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.608e-05/0.3426, allocations: 9.344 kB / 437.4 MB, free: 36.1 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.545e-05/0.3426, allocations: 83.86 kB / 437.5 MB, free: 36.04 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003053/0.343, allocations: 96.45 kB / 437.6 MB, free: 36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003402/0.3433, allocations: 342.7 kB / 438 MB, free: 35.71 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.702e-05/0.3433, allocations: 35.75 kB / 438 MB, free: 35.69 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.19e-05/0.3434, allocations: 45.78 kB / 438 MB, free: 35.68 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005757/0.344, allocations: 450.3 kB / 438.5 MB, free: 35.48 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.195e-05/0.344, allocations: 3 kB / 438.5 MB, free: 35.48 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.961e-05/0.3441, allocations: 15.12 kB / 438.5 MB, free: 35.47 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.977e-06/0.3441, allocations: 13.88 kB / 438.5 MB, free: 35.47 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006341/0.3447, allocations: 0.5037 MB / 439 MB, free: 35.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001797/0.3465, allocations: 1.526 MB / 440.5 MB, free: 34.32 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006129/0.3471, allocations: 364.6 kB / 440.9 MB, free: 34.18 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001608/0.3488, allocations: 1.527 MB / 442.4 MB, free: 32.9 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.883e-05/0.3488, allocations: 46.19 kB / 442.5 MB, free: 32.85 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.853e-06/0.3488, allocations: 0 / 442.5 MB, free: 32.85 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.01328/0.3621, allocations: 2.381 MB / 444.8 MB, free: 31.85 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.688e-05/0.3622, allocations: 58.58 kB / 444.9 MB, free: 31.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003217/0.3625, allocations: 291.5 kB / 445.2 MB, free: 31.62 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.091e-05/0.3625, allocations: 29.7 kB / 445.2 MB, free: 31.59 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001275/0.3627, allocations: 269.8 kB / 445.5 MB, free: 31.37 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.222e-05/0.3628, allocations: 115.7 kB / 445.6 MB, free: 31.28 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.327e-05/0.3628, allocations: 8 kB / 445.6 MB, free: 31.27 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 8.449e-05/0.3629, allocations: 341.7 kB / 445.9 MB, free: 30.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001957/0.3631, allocations: 138.2 kB / 446.1 MB, free: 30.89 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002409/0.3633, allocations: 252.4 kB / 446.3 MB, free: 30.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002348/0.3636, allocations: 175.9 kB / 446.5 MB, free: 30.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.3636, allocations: 0 / 446.5 MB, free: 30.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.003716/0.3673, allocations: 0.8241 MB / 447.3 MB, free: 30.31 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.289e-05/0.3674, allocations: 10.67 kB / 447.3 MB, free: 30.3 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/0.3674, allocations: 10.22 kB / 447.3 MB, free: 30.3 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003299/0.3707, allocations: 420.5 kB / 447.7 MB, free: 30.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002679/0.371, allocations: 83.56 kB / 447.8 MB, free: 30.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005367/0.3763, allocations: 3.783 MB / 451.6 MB, free: 27.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004248/0.3768, allocations: 30.39 kB / 451.6 MB, free: 27.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.185e-05/0.3768, allocations: 20.09 kB / 451.7 MB, free: 27.06 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 5} * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0002045/0.377, allocations: 172.8 kB / 451.8 MB, free: 26.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.542e-05/0.3771, allocations: 40.28 kB / 451.9 MB, free: 26.88 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004557/0.3817, allocations: 0.8475 MB / 452.7 MB, free: 26.58 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.893e-06/0.3817, allocations: 2.781 kB / 452.7 MB, free: 26.58 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.179e-06/0.3817, allocations: 10.77 kB / 452.7 MB, free: 26.57 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.292e-06/0.3817, allocations: 3.234 kB / 452.7 MB, free: 26.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006621/0.3824, allocations: 0.6208 MB / 453.3 MB, free: 26.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.3824, allocations: 3.062 kB / 453.4 MB, free: 26.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001654/0.3826, allocations: 48.03 kB / 453.4 MB, free: 26.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004299/0.3869, allocations: 0.502 MB / 453.9 MB, free: 26.02 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.02e-05/0.387, allocations: 20.05 kB / 453.9 MB, free: 26.01 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005726/0.3927, allocations: 5.003 MB / 458.9 MB, free: 21.56 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.206e-06/0.3927, allocations: 6.938 kB / 458.9 MB, free: 21.56 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004759/0.3975, allocations: 1.228 MB / 460.2 MB, free: 20.88 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000131/0.3976, allocations: 116.6 kB / 460.3 MB, free: 20.76 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.447e-05/0.3977, allocations: 10.27 kB / 460.3 MB, free: 20.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003026/0.398, allocations: 21.25 kB / 460.3 MB, free: 20.75 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001129/0.3981, allocations: 40.73 kB / 460.3 MB, free: 20.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.571e-05/0.3982, allocations: 18.64 kB / 460.4 MB, free: 20.73 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000184/0.3984, allocations: 198.6 kB / 460.6 MB, free: 20.62 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.11e-07/0.3984, allocations: 0 / 460.6 MB, free: 20.62 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000879/0.3993, allocations: 236.9 kB / 460.8 MB, free: 20.58 MB / 350.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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(3,77.8%) 5} * Non-linear torn systems: 2 {1 1,2 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.00552/0.4048, allocations: 2.488 MB / 463.3 MB, free: 18.77 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001246/0.4061, allocations: 0.6784 MB / 464 MB, free: 18.38 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.737e-06/0.4061, allocations: 5.125 kB / 464 MB, free: 18.38 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007895/0.4069, allocations: 0.6244 MB / 464.6 MB, free: 17.92 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000612/0.4075, allocations: 84.98 kB / 464.7 MB, free: 17.9 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002872/0.4104, allocations: 4.297 MB / 469 MB, free: 14.07 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003816/0.4108, allocations: 0.8442 MB / 469.8 MB, free: 13.36 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003181/0.4111, allocations: 79.45 kB / 469.9 MB, free: 13.33 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002228/0.4113, allocations: 174.5 kB / 470.1 MB, free: 13.22 MB / 350.1 MB Notification: Performance of SimCode: time 6.11e-07/0.4113, allocations: 1.188 kB / 470.1 MB, free: 13.22 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03792/0.4493, allocations: 14.17 MB / 484.2 MB, free: 9.145 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001471/0.4495, allocations: 187.5 kB / 484.4 MB, free: 8.906 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.979/2.429, allocations: 0 / 484.4 MB, free: 8.906 MB / 350.1 MB (rm -f Chemical_Chemical.Examples.HeatingOfWater.pipe ; mkfifo Chemical_Chemical.Examples.HeatingOfWater.pipe ; head -c 1048576 < Chemical_Chemical.Examples.HeatingOfWater.pipe >> ../files/Chemical_Chemical.Examples.HeatingOfWater.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_HeatingOfWater_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_HeatingOfWater.fmu > Chemical_Chemical.Examples.HeatingOfWater.pipe 2>&1) Environment - environmentSimulation: