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.001205/0.001205, allocations: 116.7 kB / 16.37 MB, free: 6.012 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.001156/0.001156, allocations: 192.6 kB / 17.31 MB, free: 5.609 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.347/1.347, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.09966/0.09966, allocations: 15.32 MB / 306.5 MB, free: 15.42 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001391/0.001391, allocations: 63.09 kB / 371.7 MB, free: 50.86 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.107, allocations: 53.62 MB / 425.4 MB, free: 13.32 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.HeatingOfWater): time 0.004655/0.1117, allocations: 3.427 MB / 428.8 MB, free: 9.871 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005041/0.1168, allocations: 4.743 MB / 433.5 MB, free: 5.109 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005879/0.1174, allocations: 7.938 kB / 433.5 MB, free: 5.102 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005312/0.118, allocations: 119.1 kB / 433.7 MB, free: 4.984 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001188/0.1192, allocations: 440.8 kB / 434.1 MB, free: 4.551 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00115/0.1204, allocations: 0.5244 MB / 434.6 MB, free: 4.023 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004739/0.1209, allocations: 0.5844 MB / 435.2 MB, free: 3.438 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003493/0.1212, allocations: 364.3 kB / 435.6 MB, free: 3.074 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002356/0.1215, allocations: 279.2 kB / 435.8 MB, free: 2.801 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002889/0.1218, allocations: 310.8 kB / 436.1 MB, free: 2.496 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.639e-05/0.1218, allocations: 56 kB / 436.2 MB, free: 2.441 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001004/0.1228, allocations: 475.4 kB / 436.6 MB, free: 1.977 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001153/0.123, allocations: 111.6 kB / 436.8 MB, free: 1.867 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002443/0.1232, allocations: 294.6 kB / 437 MB, free: 1.578 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001204/0.1244, allocations: 1.028 MB / 438.1 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.1244, allocations: 0 / 438.1 MB, free: 0.5469 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.044e-06/0.1244, allocations: 4 kB / 438.1 MB, free: 0.543 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.476e-06/0.1245, allocations: 0 / 438.1 MB, free: 0.543 MB / 302.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.00122/0.1257, allocations: 0.8693 MB / 438.9 MB, free: 15.62 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.981e-05/0.1257, allocations: 12.02 kB / 439 MB, free: 15.61 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000347/0.1261, allocations: 88.25 kB / 439 MB, free: 15.53 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005699/0.1267, allocations: 362.4 kB / 439.4 MB, free: 15.14 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.544e-05/0.1267, allocations: 37.38 kB / 439.4 MB, free: 15.1 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.928e-05/0.1268, allocations: 48.38 kB / 439.5 MB, free: 15.05 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006992/0.1275, allocations: 454.6 kB / 439.9 MB, free: 14.61 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.198e-05/0.1275, allocations: 0 / 439.9 MB, free: 14.61 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.281e-05/0.1276, allocations: 20 kB / 439.9 MB, free: 14.59 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.159e-05/0.1276, allocations: 16 kB / 440 MB, free: 14.57 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007884/0.1284, allocations: 0.5114 MB / 440.5 MB, free: 14.06 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002269/0.1307, allocations: 1.529 MB / 442 MB, free: 12.42 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007103/0.1314, allocations: 362.6 kB / 442.4 MB, free: 12.06 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001853/0.1316, allocations: 120.8 kB / 442.5 MB, free: 11.94 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002165/0.1338, allocations: 1.584 MB / 444.1 MB, free: 10.17 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.342e-05/0.1338, allocations: 38.56 kB / 444.1 MB, free: 10.12 MB / 318.1 MB Notification: Performance of pre-optimization done (n=22): time 1.623e-06/0.1338, allocations: 0 / 444.1 MB, free: 10.12 MB / 318.1 MB Notification: Performance of matching and sorting (n=31): time 0.01499/0.1488, allocations: 2.329 MB / 446.4 MB, free: 7.691 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.724e-05/0.1489, allocations: 55.41 kB / 446.5 MB, free: 7.625 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003477/0.1492, allocations: 300.4 kB / 446.8 MB, free: 7.32 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.564e-05/0.1493, allocations: 33.7 kB / 446.8 MB, free: 7.281 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000158/0.1494, allocations: 271.4 kB / 447.1 MB, free: 7.012 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.002e-05/0.1495, allocations: 110.4 kB / 447.2 MB, free: 6.902 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001421/0.1497, allocations: 82.12 kB / 447.3 MB, free: 6.816 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000126/0.1498, allocations: 342.7 kB / 447.6 MB, free: 6.473 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002338/0.1501, allocations: 132.8 kB / 447.7 MB, free: 6.344 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000313/0.1504, allocations: 264 kB / 448 MB, free: 6.031 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005679/0.151, allocations: 429.7 kB / 448.4 MB, free: 5.559 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.151, allocations: 7.938 kB / 448.4 MB, free: 5.551 MB / 318.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.00406/0.155, allocations: 0.8078 MB / 449.2 MB, free: 4.73 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.559e-05/0.1551, allocations: 11.94 kB / 449.2 MB, free: 4.719 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.849e-06/0.1551, allocations: 4 kB / 449.2 MB, free: 4.715 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003663/0.1588, allocations: 409.8 kB / 449.6 MB, free: 4.309 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002733/0.159, allocations: 87.83 kB / 449.7 MB, free: 4.223 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006605/0.1657, allocations: 3.969 MB / 453.7 MB, free: 15.97 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004113/0.1661, allocations: 20 kB / 453.7 MB, free: 15.95 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.162e-05/0.1662, allocations: 24.03 kB / 453.7 MB, free: 15.93 MB / 334.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.0002593/0.1664, allocations: 169.7 kB / 453.9 MB, free: 15.75 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.864e-05/0.1665, allocations: 35.56 kB / 453.9 MB, free: 15.72 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005022/0.1716, allocations: 0.8311 MB / 454.8 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.686e-06/0.1716, allocations: 0 / 454.8 MB, free: 14.87 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.1716, allocations: 4 kB / 454.8 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.588e-06/0.1716, allocations: 7.984 kB / 454.8 MB, free: 14.86 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009233/0.1726, allocations: 0.6195 MB / 455.4 MB, free: 14.15 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.14e-06/0.1726, allocations: 0 / 455.4 MB, free: 14.15 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000191/0.1728, allocations: 60.16 kB / 455.5 MB, free: 14.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004798/0.1776, allocations: 486 kB / 455.9 MB, free: 13.61 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.591e-05/0.1777, allocations: 15.92 kB / 455.9 MB, free: 13.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007565/0.1852, allocations: 5.311 MB / 461.3 MB, free: 7.855 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.614e-06/0.1853, allocations: 7.938 kB / 461.3 MB, free: 7.848 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00533/0.1906, allocations: 1.12 MB / 462.4 MB, free: 6.68 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002398/0.1909, allocations: 112.6 kB / 462.5 MB, free: 6.551 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.879e-05/0.191, allocations: 12 kB / 462.5 MB, free: 6.539 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003019/0.1913, allocations: 16.05 kB / 462.5 MB, free: 6.523 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001512/0.1914, allocations: 43.83 kB / 462.6 MB, free: 6.48 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.938e-05/0.1915, allocations: 19.98 kB / 462.6 MB, free: 6.461 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002799/0.1918, allocations: 203.1 kB / 462.8 MB, free: 6.266 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1918, allocations: 0 / 462.8 MB, free: 6.266 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.00105/0.1928, allocations: 239.9 kB / 463 MB, free: 6.031 MB / 334.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.0006155/0.1935, allocations: 290.9 kB / 463.3 MB, free: 5.738 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.001442/0.1949, allocations: 0.6895 MB / 464 MB, free: 5.023 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.628e-06/0.1949, allocations: 4 kB / 464 MB, free: 5.02 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008646/0.1958, allocations: 0.6174 MB / 464.6 MB, free: 4.363 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006278/0.1964, allocations: 108.7 kB / 464.7 MB, free: 4.266 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001778/0.1982, allocations: 1.005 MB / 465.7 MB, free: 3.207 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005128/0.1988, allocations: 0.8275 MB / 466.5 MB, free: 2.355 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.000242/0.199, allocations: 75.34 kB / 466.6 MB, free: 2.281 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001232/0.1991, allocations: 59.41 kB / 466.7 MB, free: 2.223 MB / 334.1 MB Notification: Performance of SimCode: time 7.72e-07/0.1991, allocations: 0 / 466.7 MB, free: 2.223 MB / 334.1 MB Notification: Performance of Templates: time 0.01742/0.2166, allocations: 11.24 MB / 477.9 MB, free: 7.031 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 -s cvode -lv LOG_STATS > Chemical_Chemical.Examples.HeatingOfWater.pipe 2>&1)