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.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/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: translateModel(Chemical.Examples.HeatingOfWater,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.HeatingOfWater") translateModel(Chemical.Examples.HeatingOfWater,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Chemical_Chemical.Examples.HeatingOfWater") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00103/0.00103, allocations: 92.16 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001302/0.001302, allocations: 172.9 kB / 16.92 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.363/1.363, allocations: 223.3 MB / 241 MB, free: 5.348 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1923/0.1923, allocations: 15.27 MB / 307.4 MB, free: 15.62 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003349/0.000335, allocations: 8 kB / 372.7 MB, free: 3.633 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2554/0.2558, allocations: 54.62 MB / 427.4 MB, free: 41.12 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.HeatingOfWater): time 0.003345/0.2591, allocations: 3.392 MB / 430.8 MB, free: 40.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004359/0.2635, allocations: 4.682 MB / 435.4 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003151/0.2639, allocations: 10.53 kB / 435.4 MB, free: 37.66 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003124/0.2642, allocations: 95.94 kB / 435.5 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008477/0.2651, allocations: 394 kB / 435.9 MB, free: 37.4 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001118/0.2662, allocations: 471.6 kB / 436.4 MB, free: 37.22 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007248/0.2669, allocations: 0.5555 MB / 436.9 MB, free: 37.07 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003866/0.2673, allocations: 299 kB / 437.2 MB, free: 36.99 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002576/0.2676, allocations: 269.7 kB / 437.5 MB, free: 36.9 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002814/0.2679, allocations: 276.7 kB / 437.8 MB, free: 36.79 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.033e-05/0.2679, allocations: 27.09 kB / 437.8 MB, free: 36.79 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001002/0.2689, allocations: 452.6 kB / 438.2 MB, free: 36.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.848e-05/0.269, allocations: 94.06 kB / 438.3 MB, free: 36.63 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002117/0.2693, allocations: 278.8 kB / 438.6 MB, free: 36.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007032/0.27, allocations: 0.7578 MB / 439.4 MB, free: 36.19 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.27e-06/0.27, allocations: 0 / 439.4 MB, free: 36.19 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.863e-06/0.27, allocations: 3.938 kB / 439.4 MB, free: 36.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.046e-06/0.27, allocations: 0 / 439.4 MB, free: 36.18 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.001086/0.2711, allocations: 0.7653 MB / 440.1 MB, free: 35.61 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.539e-05/0.2711, allocations: 9.344 kB / 440.1 MB, free: 35.61 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003259/0.2715, allocations: 90.73 kB / 440.2 MB, free: 35.57 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003606/0.2718, allocations: 351.9 kB / 440.6 MB, free: 35.28 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.866e-05/0.2719, allocations: 35.78 kB / 440.6 MB, free: 35.27 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.419e-05/0.272, allocations: 49.06 kB / 440.7 MB, free: 35.25 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006457/0.2726, allocations: 453.7 kB / 441.1 MB, free: 35.06 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.437e-05/0.2726, allocations: 0 / 441.1 MB, free: 35.06 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.183e-05/0.2727, allocations: 18.16 kB / 441.1 MB, free: 35.05 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.173e-05/0.2727, allocations: 15.75 kB / 441.1 MB, free: 35.04 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006975/0.2734, allocations: 0.5113 MB / 441.6 MB, free: 34.89 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00194/0.2753, allocations: 1.536 MB / 443.2 MB, free: 33.89 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006661/0.276, allocations: 369.2 kB / 443.5 MB, free: 33.75 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001682/0.2762, allocations: 117.2 kB / 443.7 MB, free: 33.7 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00171/0.2779, allocations: 1.547 MB / 445.2 MB, free: 32.4 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.54e-05/0.278, allocations: 41.11 kB / 445.2 MB, free: 32.36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 2.154e-06/0.278, allocations: 0 / 445.2 MB, free: 32.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.01538/0.2933, allocations: 2.381 MB / 447.6 MB, free: 31.36 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.784e-05/0.2934, allocations: 54.75 kB / 447.7 MB, free: 31.3 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000318/0.2937, allocations: 305.6 kB / 448 MB, free: 31.12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.379e-05/0.2938, allocations: 29.7 kB / 448 MB, free: 31.09 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000116/0.2939, allocations: 272 kB / 448.3 MB, free: 30.87 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.451e-05/0.294, allocations: 106 kB / 448.4 MB, free: 30.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.335e-05/0.2941, allocations: 41.48 kB / 448.4 MB, free: 30.76 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.349e-05/0.2941, allocations: 343.5 kB / 448.7 MB, free: 30.43 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002105/0.2943, allocations: 138.1 kB / 448.9 MB, free: 30.37 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002439/0.2946, allocations: 261.2 kB / 449.1 MB, free: 30.16 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005051/0.2951, allocations: 430.1 kB / 449.6 MB, free: 29.85 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.2951, allocations: 7.219 kB / 449.6 MB, free: 29.84 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.004315/0.2994, allocations: 0.8271 MB / 450.4 MB, free: 29.56 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.588e-05/0.2995, allocations: 10.41 kB / 450.4 MB, free: 29.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.028e-05/0.2995, allocations: 3.156 kB / 450.4 MB, free: 29.55 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003882/0.3034, allocations: 429 kB / 450.8 MB, free: 29.48 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002819/0.3037, allocations: 75.31 kB / 450.9 MB, free: 29.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005885/0.3096, allocations: 3.74 MB / 454.6 MB, free: 26.35 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004844/0.3101, allocations: 34.22 kB / 454.7 MB, free: 26.33 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.489e-05/0.3102, allocations: 21.94 kB / 454.7 MB, free: 26.33 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 (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.0002519/0.3104, allocations: 169.9 kB / 454.9 MB, free: 26.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.991e-05/0.3105, allocations: 34.56 kB / 454.9 MB, free: 26.16 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005307/0.3158, allocations: 0.847 MB / 455.7 MB, free: 25.85 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.942e-06/0.3159, allocations: 9.938 kB / 455.7 MB, free: 25.85 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.411e-06/0.3159, allocations: 3.188 kB / 455.7 MB, free: 25.85 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/0.3159, allocations: 0 / 455.7 MB, free: 25.85 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007017/0.3166, allocations: 0.6281 MB / 456.4 MB, free: 25.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.931e-06/0.3166, allocations: 2.938 kB / 456.4 MB, free: 25.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001746/0.3168, allocations: 50.03 kB / 456.4 MB, free: 25.39 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005024/0.3218, allocations: 0.4939 MB / 456.9 MB, free: 25.3 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.581e-05/0.3219, allocations: 17.05 kB / 456.9 MB, free: 25.29 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006333/0.3282, allocations: 4.953 MB / 461.9 MB, free: 20.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.3283, allocations: 0 / 461.9 MB, free: 20.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00577/0.334, allocations: 1.144 MB / 463 MB, free: 20.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001484/0.3342, allocations: 122.9 kB / 463.2 MB, free: 20.2 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.803e-05/0.3343, allocations: 11.72 kB / 463.2 MB, free: 20.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003233/0.3346, allocations: 15.56 kB / 463.2 MB, free: 20.18 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001543/0.3348, allocations: 39.86 kB / 463.2 MB, free: 20.18 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.267e-05/0.3348, allocations: 23.44 kB / 463.2 MB, free: 20.17 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002323/0.3351, allocations: 201.2 kB / 463.4 MB, free: 20.06 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3351, allocations: 0 / 463.4 MB, free: 20.06 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001146/0.3362, allocations: 236.5 kB / 463.7 MB, free: 20.02 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 (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.0005318/0.3368, allocations: 290 kB / 464 MB, free: 19.86 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001362/0.3381, allocations: 0.681 MB / 464.6 MB, free: 19.46 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.527e-06/0.3382, allocations: 0 / 464.6 MB, free: 19.46 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009297/0.3391, allocations: 0.6289 MB / 465.3 MB, free: 19 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007864/0.3399, allocations: 92.36 kB / 465.4 MB, free: 18.97 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001774/0.3417, allocations: 1.324 MB / 466.7 MB, free: 18.11 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003518/0.342, allocations: 0.8288 MB / 467.5 MB, free: 17.41 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001719/0.3422, allocations: 74.98 kB / 467.6 MB, free: 17.39 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3422, allocations: 0 / 467.6 MB, free: 17.39 MB / 350.1 MB Notification: Performance of Templates: time 0.01758/0.3598, allocations: 12.01 MB / 479.6 MB, free: 13.8 MB / 350.1 MB make -j1 -f Chemical_Chemical.Examples.HeatingOfWater.makefile (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 & ./Chemical_Chemical.Examples.HeatingOfWater -abortSlowSimulation -alarm=480 -lv LOG_STATS > Chemical_Chemical.Examples.HeatingOfWater.pipe 2>&1)