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.001031/0.001031, allocations: 91.77 kB / 15.06 MB, free: 1.098 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.001125/0.001126, allocations: 172.7 kB / 15.95 MB, free: 208 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.334/1.334, allocations: 223.3 MB / 240 MB, free: 5.438 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1989/0.1989, allocations: 15.28 MB / 306.4 MB, free: 15.77 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00031/0.00031, allocations: 8 kB / 371.5 MB, free: 3.977 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3/0.3003, allocations: 54.62 MB / 426.1 MB, free: 39.95 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.HeatingOfWater): time 0.003258/0.3036, allocations: 3.227 MB / 429.3 MB, free: 39.75 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004333/0.3079, allocations: 4.379 MB / 433.7 MB, free: 37.6 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002699/0.3083, allocations: 13.5 kB / 433.7 MB, free: 37.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000301/0.3086, allocations: 105.7 kB / 433.8 MB, free: 37.54 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009409/0.3095, allocations: 411.9 kB / 434.2 MB, free: 37.28 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001127/0.3106, allocations: 424.6 kB / 434.6 MB, free: 37.04 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007283/0.3114, allocations: 0.5341 MB / 435.2 MB, free: 36.77 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003551/0.3118, allocations: 280.3 kB / 435.4 MB, free: 36.66 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002569/0.312, allocations: 233.4 kB / 435.7 MB, free: 36.58 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003068/0.3123, allocations: 268.7 kB / 435.9 MB, free: 36.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.955e-05/0.3124, allocations: 29 kB / 436 MB, free: 36.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00112/0.3135, allocations: 436.4 kB / 436.4 MB, free: 36.38 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.027e-05/0.3136, allocations: 86.69 kB / 436.5 MB, free: 36.33 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.118e-05/0.3137, allocations: 126.5 kB / 436.6 MB, free: 36.25 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007048/0.3144, allocations: 0.7711 MB / 437.4 MB, free: 35.98 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.94e-06/0.3144, allocations: 0 / 437.4 MB, free: 35.98 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.194e-06/0.3144, allocations: 0 / 437.4 MB, free: 35.98 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.393e-05/0.3145, allocations: 4 kB / 437.4 MB, free: 35.97 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.001145/0.3156, allocations: 0.7708 MB / 438.1 MB, free: 35.39 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.3157, allocations: 9.344 kB / 438.2 MB, free: 35.39 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003112/0.316, allocations: 92.2 kB / 438.2 MB, free: 35.36 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003769/0.3164, allocations: 345.1 kB / 438.6 MB, free: 35.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.841e-05/0.3164, allocations: 39.94 kB / 438.6 MB, free: 35.05 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.632e-05/0.3165, allocations: 51.91 kB / 438.7 MB, free: 35.03 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006072/0.3171, allocations: 447.1 kB / 439.1 MB, free: 34.84 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.384e-05/0.3171, allocations: 3.25 kB / 439.1 MB, free: 34.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.845e-05/0.3172, allocations: 23.25 kB / 439.1 MB, free: 34.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/0.3172, allocations: 9.875 kB / 439.1 MB, free: 34.82 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006481/0.3178, allocations: 0.5086 MB / 439.6 MB, free: 34.67 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00191/0.3197, allocations: 1.529 MB / 441.2 MB, free: 33.68 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005935/0.3204, allocations: 376.3 kB / 441.5 MB, free: 33.53 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001525/0.3205, allocations: 120.1 kB / 441.7 MB, free: 33.48 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001604/0.3221, allocations: 1.536 MB / 443.2 MB, free: 32.2 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.449e-05/0.3222, allocations: 30.75 kB / 443.2 MB, free: 32.16 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.643e-06/0.3222, allocations: 0 / 443.2 MB, free: 32.16 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.01241/0.3346, allocations: 2.386 MB / 445.6 MB, free: 31.16 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.751e-05/0.3346, allocations: 54.75 kB / 445.7 MB, free: 31.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002581/0.3349, allocations: 293.9 kB / 446 MB, free: 30.93 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.738e-05/0.3349, allocations: 32.92 kB / 446 MB, free: 30.89 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001019/0.335, allocations: 273.2 kB / 446.3 MB, free: 30.67 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.466e-05/0.3351, allocations: 108.9 kB / 446.4 MB, free: 30.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.182e-05/0.3352, allocations: 15.94 kB / 446.4 MB, free: 30.57 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.68e-05/0.3352, allocations: 342.8 kB / 446.7 MB, free: 30.25 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001882/0.3354, allocations: 130.5 kB / 446.8 MB, free: 30.19 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002221/0.3356, allocations: 258.5 kB / 447.1 MB, free: 29.98 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002341/0.3359, allocations: 172.2 kB / 447.3 MB, free: 29.9 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.3359, allocations: 0 / 447.3 MB, free: 29.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.003555/0.3394, allocations: 0.8318 MB / 448.1 MB, free: 29.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.3395, allocations: 8.969 kB / 448.1 MB, free: 29.61 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.135e-06/0.3395, allocations: 3 kB / 448.1 MB, free: 29.61 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003136/0.3426, allocations: 420.1 kB / 448.5 MB, free: 29.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002465/0.3429, allocations: 81.45 kB / 448.6 MB, free: 29.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005209/0.3481, allocations: 3.736 MB / 452.3 MB, free: 26.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000389/0.3485, allocations: 26.62 kB / 452.4 MB, free: 26.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.25e-05/0.3486, allocations: 26.81 kB / 452.4 MB, free: 26.39 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.000216/0.3488, allocations: 167.2 kB / 452.5 MB, free: 26.23 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.407e-05/0.3489, allocations: 37.92 kB / 452.6 MB, free: 26.21 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00436/0.3532, allocations: 0.8498 MB / 453.4 MB, free: 25.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.3533, allocations: 3.281 kB / 453.4 MB, free: 25.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.3533, allocations: 4 kB / 453.4 MB, free: 25.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.613e-06/0.3533, allocations: 6.922 kB / 453.4 MB, free: 25.9 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006327/0.3539, allocations: 0.6223 MB / 454.1 MB, free: 25.45 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.647e-06/0.3539, allocations: 4.25 kB / 454.1 MB, free: 25.45 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001634/0.3541, allocations: 51.34 kB / 454.1 MB, free: 25.44 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003913/0.358, allocations: 0.4912 MB / 454.6 MB, free: 25.36 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.821e-05/0.3581, allocations: 20.38 kB / 454.6 MB, free: 25.35 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005603/0.3637, allocations: 4.95 MB / 459.6 MB, free: 20.91 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.3638, allocations: 3.031 kB / 459.6 MB, free: 20.91 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004523/0.3683, allocations: 1.138 MB / 460.7 MB, free: 20.38 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001395/0.3684, allocations: 108.9 kB / 460.8 MB, free: 20.26 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.336e-05/0.3685, allocations: 10.19 kB / 460.8 MB, free: 20.26 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002683/0.3688, allocations: 21.41 kB / 460.9 MB, free: 20.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001159/0.3689, allocations: 42.41 kB / 460.9 MB, free: 20.24 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.399e-05/0.3689, allocations: 19.17 kB / 460.9 MB, free: 20.23 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001825/0.3691, allocations: 197 kB / 461.1 MB, free: 20.12 MB / 350.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.3691, allocations: 3.938 kB / 461.1 MB, free: 20.12 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0009011/0.3701, allocations: 245 kB / 461.4 MB, free: 20.07 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.0004954/0.3706, allocations: 281.4 kB / 461.6 MB, free: 19.91 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001231/0.3718, allocations: 0.6843 MB / 462.3 MB, free: 19.51 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.3718, allocations: 1.062 kB / 462.3 MB, free: 19.51 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007691/0.3726, allocations: 0.6146 MB / 462.9 MB, free: 19.06 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000654/0.3733, allocations: 100.2 kB / 463 MB, free: 19.03 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001591/0.3749, allocations: 1.253 MB / 464.3 MB, free: 18.24 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002914/0.3752, allocations: 0.8297 MB / 465.1 MB, free: 17.54 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003006/0.3755, allocations: 71.05 kB / 465.2 MB, free: 17.52 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001122/0.3756, allocations: 64.02 kB / 465.2 MB, free: 17.5 MB / 350.1 MB Notification: Performance of SimCode: time 1.483e-06/0.3756, allocations: 0 / 465.2 MB, free: 17.5 MB / 350.1 MB Notification: Performance of Templates: time 0.01928/0.3949, allocations: 10.53 MB / 475.8 MB, free: 15.35 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)