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/Chemical 1.4.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/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/Chemical 1.4.0-master/package.mo): time 0.08907/0.08907, allocations: 15.26 MB / 31.21 MB, free: 3.219 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000941/0.0009409, allocations: 175.8 kB / 36.3 MB, free: 2.258 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.355/1.355, allocations: 223.3 MB / 264.5 MB, free: 6.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008702/0.0008702, allocations: 95.73 kB / 319.9 MB, free: 3.16 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003578/0.0003578, allocations: 11.73 kB / 385.2 MB, free: 50.51 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1012/0.1016, allocations: 54.65 MB / 439.8 MB, free: 100 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3471/0.4488, allocations: 99.7 MB / 0.5269 GB, free: 15.82 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002716/0.4491, allocations: 69.16 kB / 0.527 GB, free: 15.82 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03568/0.4848, allocations: 15.49 MB / 0.5421 GB, free: 30.39 MB / 394.7 MB Notification: Performance of FrontEnd: time 2.775e-06/0.4849, allocations: 0 / 0.5421 GB, free: 30.39 MB / 394.7 MB Notification: Performance of Transformations before backend: time 4.04e-05/0.4849, allocations: 11.72 kB / 0.5421 GB, free: 30.39 MB / 394.7 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.001531/0.4864, allocations: 0.7616 MB / 0.5428 GB, free: 29.85 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.4865, allocations: 16.38 kB / 0.5429 GB, free: 29.84 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003672/0.4869, allocations: 97.77 kB / 0.5429 GB, free: 29.82 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005751/0.4875, allocations: 387.2 kB / 0.5433 GB, free: 29.57 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.871e-05/0.4875, allocations: 30.78 kB / 0.5433 GB, free: 29.57 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.943e-05/0.4876, allocations: 53.34 kB / 0.5434 GB, free: 29.57 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007433/0.4883, allocations: 0.6148 MB / 0.544 GB, free: 29.52 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.463e-05/0.4883, allocations: 192 / 0.544 GB, free: 29.52 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.819e-05/0.4884, allocations: 22.12 kB / 0.544 GB, free: 29.52 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.718e-06/0.4884, allocations: 15.66 kB / 0.544 GB, free: 29.51 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008702/0.4893, allocations: 0.8149 MB / 0.5448 GB, free: 29.5 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002295/0.4916, allocations: 1.902 MB / 0.5467 GB, free: 28.85 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006395/0.4922, allocations: 0.5537 MB / 0.5472 GB, free: 28.82 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002137/0.4925, allocations: 239 kB / 0.5475 GB, free: 28.8 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001076/0.4926, allocations: 85.02 kB / 0.5475 GB, free: 28.8 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.394e-05/0.4926, allocations: 37.94 kB / 0.5476 GB, free: 28.75 MB / 394.7 MB Notification: Performance of pre-optimization done (n=32): time 1.894e-06/0.4926, allocations: 0 / 0.5476 GB, free: 28.75 MB / 394.7 MB Notification: Performance of matching and sorting (n=46): time 0.01606/0.5087, allocations: 3.521 MB / 0.551 GB, free: 28.18 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.071e-05/0.5088, allocations: 63.16 kB / 0.5511 GB, free: 28.12 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003924/0.5092, allocations: 298.2 kB / 0.5514 GB, free: 28 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.743e-05/0.5093, allocations: 32.83 kB / 0.5514 GB, free: 27.97 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001451/0.5094, allocations: 245.2 kB / 0.5516 GB, free: 27.81 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001387/0.5096, allocations: 157.7 kB / 0.5518 GB, free: 27.71 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.62e-05/0.5096, allocations: 7.5 kB / 0.5518 GB, free: 27.71 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001314/0.5098, allocations: 341.6 kB / 0.5521 GB, free: 27.4 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003772/0.5101, allocations: 324.2 kB / 0.5524 GB, free: 27.4 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004288/0.5106, allocations: 400.6 kB / 0.5528 GB, free: 27.29 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008402/0.5114, allocations: 0.7081 MB / 0.5535 GB, free: 27.15 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.5114, allocations: 0 / 0.5535 GB, free: 27.15 MB / 394.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.005002/0.5165, allocations: 1.28 MB / 0.5547 GB, free: 26.8 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.517e-05/0.5165, allocations: 7.719 kB / 0.5547 GB, free: 26.8 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.102e-05/0.5165, allocations: 7.859 kB / 0.5548 GB, free: 26.8 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004353/0.5209, allocations: 0.5736 MB / 0.5553 GB, free: 26.59 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003948/0.5213, allocations: 85 kB / 0.5554 GB, free: 26.57 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007206/0.5285, allocations: 4.782 MB / 0.5601 GB, free: 23.11 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005344/0.5291, allocations: 29.47 kB / 0.5601 GB, free: 23.1 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.544e-05/0.5291, allocations: 18.61 kB / 0.5601 GB, free: 23.09 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (49): * Single equations (assignments): 46 * 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,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.0003348/0.5295, allocations: 168 kB / 0.5603 GB, free: 22.98 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001043/0.5296, allocations: 38.66 kB / 0.5603 GB, free: 22.96 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005378/0.535, allocations: 1.243 MB / 0.5615 GB, free: 22.57 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.649e-06/0.535, allocations: 3.875 kB / 0.5615 GB, free: 22.57 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.742e-06/0.535, allocations: 3.375 kB / 0.5615 GB, free: 22.57 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.099e-05/0.5351, allocations: 3.984 kB / 0.5615 GB, free: 22.56 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006575/0.5416, allocations: 2.159 MB / 0.5636 GB, free: 21.66 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.897e-06/0.5417, allocations: 0 / 0.5636 GB, free: 21.66 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000241/0.5419, allocations: 65.72 kB / 0.5637 GB, free: 21.65 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004863/0.5468, allocations: 0.586 MB / 0.5643 GB, free: 21.41 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.839e-05/0.5469, allocations: 11.22 kB / 0.5643 GB, free: 21.41 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007189/0.5541, allocations: 5.581 MB / 0.5697 GB, free: 16.73 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.318e-06/0.5541, allocations: 7.906 kB / 0.5697 GB, free: 16.73 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005951/0.5601, allocations: 1.737 MB / 0.5714 GB, free: 16.14 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001875/0.5603, allocations: 115.9 kB / 0.5716 GB, free: 16.02 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.808e-05/0.5604, allocations: 14.95 kB / 0.5716 GB, free: 16.02 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003903/0.5608, allocations: 26.73 kB / 0.5716 GB, free: 16.01 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001465/0.561, allocations: 50.31 kB / 0.5716 GB, free: 15.99 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.572e-05/0.561, allocations: 23.39 kB / 0.5717 GB, free: 15.98 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.000284/0.5613, allocations: 214.9 kB / 0.5719 GB, free: 15.88 MB / 394.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.5613, allocations: 0 / 0.5719 GB, free: 15.88 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001075/0.5624, allocations: 273.7 kB / 0.5721 GB, free: 15.84 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (41): * Single equations (assignments): 37 * 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: 4 * 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: 3 {1 1,1 1,2 2} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006669/0.5631, allocations: 305.2 kB / 0.5724 GB, free: 15.68 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001709/0.5648, allocations: 1.036 MB / 0.5734 GB, free: 15.31 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 4.208e-06/0.5648, allocations: 0 / 0.5734 GB, free: 15.31 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001062/0.5659, allocations: 0.773 MB / 0.5742 GB, free: 14.88 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007706/0.5666, allocations: 100.8 kB / 0.5743 GB, free: 14.85 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001838/0.5685, allocations: 1.447 MB / 0.5757 GB, free: 13.95 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004837/0.569, allocations: 0.8366 MB / 0.5765 GB, free: 13.19 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002878/0.5693, allocations: 54.42 kB / 0.5766 GB, free: 13.16 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.992e-05/0.5694, allocations: 42.52 kB / 0.5766 GB, free: 13.15 MB / 394.7 MB Notification: Performance of SimCode: time 8.52e-07/0.5694, allocations: 0 / 0.5766 GB, free: 13.15 MB / 394.7 MB Notification: Performance of Templates: time 0.01883/0.5882, allocations: 12.34 MB / 0.5887 GB, free: 6.934 MB / 394.7 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)