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.0008897/0.0008897, allocations: 91.38 kB / 15.06 MB, free: 1.094 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.0008628/0.0008628, allocations: 172.7 kB / 15.95 MB, free: 204 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.248/1.248, allocations: 223.3 MB / 240 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.19/0.19, allocations: 15.26 MB / 306.3 MB, free: 15.75 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002944/0.0002945, allocations: 8.219 kB / 371.6 MB, free: 3.891 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2742/0.2745, allocations: 54.61 MB / 426.2 MB, free: 40.11 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.HeatingOfWater): time 0.003457/0.278, allocations: 3.22 MB / 429.4 MB, free: 39.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004479/0.2825, allocations: 4.356 MB / 433.8 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002633/0.2828, allocations: 10.44 kB / 433.8 MB, free: 37.8 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003367/0.2832, allocations: 97.78 kB / 433.9 MB, free: 37.75 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007966/0.284, allocations: 396.6 kB / 434.2 MB, free: 37.51 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009076/0.2849, allocations: 431.7 kB / 434.7 MB, free: 37.26 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004758/0.2854, allocations: 0.5306 MB / 435.2 MB, free: 36.99 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002991/0.2857, allocations: 283.2 kB / 435.5 MB, free: 36.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002212/0.2859, allocations: 232 kB / 435.7 MB, free: 36.8 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002734/0.2862, allocations: 273.1 kB / 436 MB, free: 36.7 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.757e-05/0.2863, allocations: 25.31 kB / 436 MB, free: 36.7 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008447/0.2871, allocations: 426.3 kB / 436.4 MB, free: 36.6 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.496e-05/0.2872, allocations: 94.67 kB / 436.5 MB, free: 36.55 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.52e-05/0.2873, allocations: 115.8 kB / 436.6 MB, free: 36.47 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006158/0.2879, allocations: 0.7667 MB / 437.4 MB, free: 36.2 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.2879, allocations: 0 / 437.4 MB, free: 36.2 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.252e-06/0.2879, allocations: 3.438 kB / 437.4 MB, free: 36.2 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.288, allocations: 0 / 437.4 MB, free: 36.2 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.001004/0.289, allocations: 0.7598 MB / 438.1 MB, free: 35.62 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.837e-05/0.289, allocations: 9.031 kB / 438.2 MB, free: 35.62 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.565e-05/0.2891, allocations: 95.23 kB / 438.2 MB, free: 35.55 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002986/0.2894, allocations: 87.42 kB / 438.3 MB, free: 35.52 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003426/0.2898, allocations: 349.8 kB / 438.7 MB, free: 35.22 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.565e-05/0.2898, allocations: 36.12 kB / 438.7 MB, free: 35.21 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.936e-05/0.2899, allocations: 51.69 kB / 438.8 MB, free: 35.19 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000607/0.2905, allocations: 452.7 kB / 439.2 MB, free: 35 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.236e-05/0.2905, allocations: 0 / 439.2 MB, free: 35 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.757e-05/0.2905, allocations: 19.28 kB / 439.2 MB, free: 34.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.799e-06/0.2905, allocations: 9.844 kB / 439.2 MB, free: 34.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006593/0.2912, allocations: 0.5057 MB / 439.7 MB, free: 34.83 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001735/0.293, allocations: 1.529 MB / 441.3 MB, free: 33.84 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006021/0.2936, allocations: 372.9 kB / 441.6 MB, free: 33.7 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001508/0.2937, allocations: 116.2 kB / 441.7 MB, free: 33.64 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001535/0.2953, allocations: 1.541 MB / 443.3 MB, free: 32.36 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.721e-05/0.2953, allocations: 41.22 kB / 443.3 MB, free: 32.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.252e-06/0.2953, allocations: 0 / 443.3 MB, free: 32.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.01287/0.3082, allocations: 2.374 MB / 445.7 MB, free: 31.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.329e-05/0.3083, allocations: 58.61 kB / 445.8 MB, free: 31.26 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003425/0.3086, allocations: 295.2 kB / 446 MB, free: 31.09 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.188e-05/0.3086, allocations: 32.86 kB / 446.1 MB, free: 31.06 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001118/0.3088, allocations: 273.9 kB / 446.3 MB, free: 30.84 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.985e-05/0.3088, allocations: 112.6 kB / 446.5 MB, free: 30.75 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.222e-05/0.3089, allocations: 11.16 kB / 446.5 MB, free: 30.74 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.611e-05/0.3089, allocations: 343.2 kB / 446.8 MB, free: 30.41 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001952/0.3091, allocations: 131 kB / 446.9 MB, free: 30.36 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002341/0.3094, allocations: 260.7 kB / 447.2 MB, free: 30.15 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002512/0.3096, allocations: 173.3 kB / 447.4 MB, free: 30.06 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.106e-06/0.3097, allocations: 3.281 kB / 447.4 MB, free: 30.06 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.00362/0.3133, allocations: 0.8203 MB / 448.2 MB, free: 29.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.927e-05/0.3133, allocations: 10.42 kB / 448.2 MB, free: 29.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/0.3133, allocations: 17.83 kB / 448.2 MB, free: 29.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003289/0.3166, allocations: 423.6 kB / 448.6 MB, free: 29.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002495/0.3169, allocations: 78.23 kB / 448.7 MB, free: 29.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005118/0.322, allocations: 3.732 MB / 452.4 MB, free: 26.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003941/0.3224, allocations: 26.53 kB / 452.4 MB, free: 26.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.988e-05/0.3225, allocations: 25.83 kB / 452.5 MB, free: 26.55 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.0001982/0.3227, allocations: 171.1 kB / 452.6 MB, free: 26.39 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.144e-05/0.3228, allocations: 34.86 kB / 452.7 MB, free: 26.37 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0044/0.3272, allocations: 0.8472 MB / 453.5 MB, free: 26.07 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.3272, allocations: 6.656 kB / 453.5 MB, free: 26.07 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.3272, allocations: 11.08 kB / 453.5 MB, free: 26.06 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.681e-06/0.3272, allocations: 0 / 453.5 MB, free: 26.06 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007301/0.328, allocations: 0.6231 MB / 454.2 MB, free: 25.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.328, allocations: 4.25 kB / 454.2 MB, free: 25.6 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001679/0.3281, allocations: 53.98 kB / 454.2 MB, free: 25.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004183/0.3323, allocations: 0.4987 MB / 454.7 MB, free: 25.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.362e-05/0.3324, allocations: 17.22 kB / 454.7 MB, free: 25.5 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005544/0.338, allocations: 4.936 MB / 459.7 MB, free: 21.08 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/0.338, allocations: 7.062 kB / 459.7 MB, free: 21.07 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004764/0.3428, allocations: 1.138 MB / 460.8 MB, free: 20.54 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001373/0.3429, allocations: 112.9 kB / 460.9 MB, free: 20.42 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.462e-05/0.343, allocations: 10.41 kB / 460.9 MB, free: 20.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002942/0.3433, allocations: 17.25 kB / 461 MB, free: 20.41 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001071/0.3434, allocations: 49.34 kB / 461 MB, free: 20.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.1e-05/0.3434, allocations: 14.7 kB / 461 MB, free: 20.39 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001782/0.3436, allocations: 201.9 kB / 461.2 MB, free: 20.28 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.3436, allocations: 0 / 461.2 MB, free: 20.28 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009144/0.3445, allocations: 229.9 kB / 461.4 MB, free: 20.24 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.005457/0.35, allocations: 1.86 MB / 463.3 MB, free: 19.09 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001399/0.3515, allocations: 0.6862 MB / 464 MB, free: 18.69 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.97e-06/0.3515, allocations: 0 / 464 MB, free: 18.69 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008946/0.3524, allocations: 0.6129 MB / 464.6 MB, free: 18.24 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008177/0.3532, allocations: 102.6 kB / 464.7 MB, free: 18.21 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007034/0.3603, allocations: 2.956 MB / 467.7 MB, free: 16.57 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003452/0.3606, allocations: 0.8288 MB / 468.5 MB, free: 15.87 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003482/0.361, allocations: 78.02 kB / 468.6 MB, free: 15.84 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002398/0.3613, allocations: 175.2 kB / 468.7 MB, free: 15.73 MB / 350.1 MB Notification: Performance of SimCode: time 4.11e-07/0.3613, allocations: 0 / 468.7 MB, free: 15.73 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02818/0.3894, allocations: 14.28 MB / 483 MB, free: 11.38 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001368/0.3896, allocations: 196.4 kB / 483.2 MB, free: 11.13 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.955/2.344, allocations: 0 / 483.2 MB, free: 11.13 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: