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-master/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-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.001009/0.001009, allocations: 99.7 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.0009774/0.0009775, 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.351/1.351, allocations: 223.2 MB / 239.9 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.2011/0.2011, allocations: 15.26 MB / 306.2 MB, free: 15.75 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003076/0.0003077, allocations: 8 kB / 371.4 MB, free: 3.957 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2912/0.2916, allocations: 54.61 MB / 426 MB, free: 40.61 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.HeatingOfWater): time 0.004335/0.296, allocations: 2.995 MB / 429 MB, free: 40.39 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006545/0.3026, allocations: 4.079 MB / 433.1 MB, free: 38.46 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004354/0.303, allocations: 13.75 kB / 433.1 MB, free: 38.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004212/0.3035, allocations: 104.9 kB / 433.2 MB, free: 38.4 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001411/0.3049, allocations: 451.1 kB / 433.6 MB, free: 38.11 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001641/0.3066, allocations: 472.9 kB / 434.1 MB, free: 37.82 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008474/0.3074, allocations: 404.3 kB / 434.5 MB, free: 37.61 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005006/0.3079, allocations: 284.6 kB / 434.7 MB, free: 37.5 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003304/0.3083, allocations: 211.9 kB / 435 MB, free: 37.41 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003815/0.3087, allocations: 266.4 kB / 435.2 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.268e-05/0.3088, allocations: 28.84 kB / 435.2 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001406/0.3102, allocations: 0.4938 MB / 435.7 MB, free: 37.23 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001079/0.3103, allocations: 98.27 kB / 435.8 MB, free: 37.17 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001132/0.3104, allocations: 117.3 kB / 435.9 MB, free: 37.1 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009755/0.3114, allocations: 0.6311 MB / 436.6 MB, free: 36.9 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.098e-06/0.3114, allocations: 0 / 436.6 MB, free: 36.9 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.3114, allocations: 0 / 436.6 MB, free: 36.9 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.335e-05/0.3114, allocations: 0 / 436.6 MB, free: 36.9 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.001395/0.3129, allocations: 0.7654 MB / 437.3 MB, free: 36.32 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.805e-05/0.3129, allocations: 10.09 kB / 437.3 MB, free: 36.32 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003344/0.3132, allocations: 93.44 kB / 437.4 MB, free: 36.29 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003762/0.3136, allocations: 343.7 kB / 437.8 MB, free: 36 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.569e-05/0.3137, allocations: 43.19 kB / 437.8 MB, free: 35.98 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.559e-05/0.3138, allocations: 50.72 kB / 437.9 MB, free: 35.96 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006224/0.3144, allocations: 443.1 kB / 438.3 MB, free: 35.77 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.296e-05/0.3144, allocations: 0 / 438.3 MB, free: 35.77 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.549e-05/0.3145, allocations: 22.44 kB / 438.3 MB, free: 35.76 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.106e-05/0.3145, allocations: 9.969 kB / 438.3 MB, free: 35.76 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006824/0.3152, allocations: 0.5094 MB / 438.8 MB, free: 35.6 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001927/0.3171, allocations: 1.517 MB / 440.4 MB, free: 34.61 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006395/0.3177, allocations: 365 kB / 440.7 MB, free: 34.47 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001701/0.3195, allocations: 1.528 MB / 442.2 MB, free: 33.19 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.042e-05/0.3195, allocations: 33.84 kB / 442.3 MB, free: 33.15 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.233e-06/0.3195, allocations: 0 / 442.3 MB, free: 33.15 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.01395/0.3335, allocations: 2.386 MB / 444.7 MB, free: 32.14 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.444e-05/0.3335, allocations: 58.06 kB / 444.7 MB, free: 32.08 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002944/0.3338, allocations: 298.6 kB / 445 MB, free: 31.91 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.136e-05/0.3339, allocations: 29.7 kB / 445 MB, free: 31.88 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001203/0.334, allocations: 276.2 kB / 445.3 MB, free: 31.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.277e-05/0.3341, allocations: 113.1 kB / 445.4 MB, free: 31.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.095e-05/0.3341, allocations: 4 kB / 445.4 MB, free: 31.56 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.745e-05/0.3342, allocations: 346.5 kB / 445.8 MB, free: 31.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001969/0.3344, allocations: 135.5 kB / 445.9 MB, free: 31.18 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002364/0.3346, allocations: 258.3 kB / 446.1 MB, free: 30.97 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002322/0.3349, allocations: 167.9 kB / 446.3 MB, free: 30.89 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.3349, allocations: 0 / 446.3 MB, free: 30.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.003916/0.3388, allocations: 0.8238 MB / 447.1 MB, free: 30.6 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/0.3388, allocations: 5.75 kB / 447.1 MB, free: 30.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.668e-06/0.3388, allocations: 14.02 kB / 447.2 MB, free: 30.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003561/0.3424, allocations: 425.1 kB / 447.6 MB, free: 30.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002571/0.3427, allocations: 79.77 kB / 447.6 MB, free: 30.51 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0059/0.3486, allocations: 3.789 MB / 451.4 MB, free: 27.36 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004519/0.3491, allocations: 30.8 kB / 451.5 MB, free: 27.35 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.546e-05/0.3491, allocations: 19.09 kB / 451.5 MB, free: 27.35 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.000236/0.3494, allocations: 163.2 kB / 451.6 MB, free: 27.2 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.659e-05/0.3495, allocations: 35.11 kB / 451.7 MB, free: 27.18 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004807/0.3543, allocations: 0.861 MB / 452.5 MB, free: 26.87 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.751e-06/0.3543, allocations: 7.031 kB / 452.5 MB, free: 26.86 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.3543, allocations: 0 / 452.5 MB, free: 26.86 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.885e-06/0.3543, allocations: 7.281 kB / 452.6 MB, free: 26.86 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006927/0.355, allocations: 0.6175 MB / 453.2 MB, free: 26.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.568e-06/0.355, allocations: 6.875 kB / 453.2 MB, free: 26.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001669/0.3552, allocations: 50.33 kB / 453.2 MB, free: 26.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0045/0.3597, allocations: 0.4963 MB / 453.7 MB, free: 26.31 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.757e-05/0.3598, allocations: 15.56 kB / 453.7 MB, free: 26.31 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00592/0.3657, allocations: 5.006 MB / 458.7 MB, free: 21.86 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.168e-06/0.3658, allocations: 6.75 kB / 458.7 MB, free: 21.86 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005011/0.3708, allocations: 1.238 MB / 460 MB, free: 21.17 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001331/0.3709, allocations: 112.9 kB / 460.1 MB, free: 21.05 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.243e-05/0.371, allocations: 14.31 kB / 460.1 MB, free: 21.04 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002958/0.3713, allocations: 14.16 kB / 460.1 MB, free: 21.04 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001175/0.3714, allocations: 47.31 kB / 460.2 MB, free: 21.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.51e-05/0.3715, allocations: 16.78 kB / 460.2 MB, free: 21.02 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001824/0.3716, allocations: 202.4 kB / 460.4 MB, free: 20.91 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3717, allocations: 0 / 460.4 MB, free: 20.91 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008332/0.3725, allocations: 222.9 kB / 460.6 MB, free: 20.88 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.000435/0.3729, allocations: 294.5 kB / 460.9 MB, free: 20.7 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001178/0.3741, allocations: 0.6829 MB / 461.6 MB, free: 20.3 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.3741, allocations: 0 / 461.6 MB, free: 20.3 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007981/0.3749, allocations: 0.611 MB / 462.2 MB, free: 19.86 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005258/0.3755, allocations: 99.69 kB / 462.3 MB, free: 19.83 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001544/0.377, allocations: 1.255 MB / 463.5 MB, free: 19.03 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002832/0.3773, allocations: 0.8403 MB / 464.4 MB, free: 18.33 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000311/0.3777, allocations: 72.66 kB / 464.4 MB, free: 18.3 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001207/0.3778, allocations: 63.88 kB / 464.5 MB, free: 18.29 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3778, allocations: 1.094 kB / 464.5 MB, free: 18.29 MB / 350.1 MB Notification: Performance of Templates: time 0.02043/0.3982, allocations: 10.44 MB / 475 MB, free: 16.07 MB / 350.1 MB make -j1 -f Chemical_Chemical.Examples.HeatingOfWater.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: