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.1149/0.1149, allocations: 15.26 MB / 22.73 MB, free: 0.9531 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009935/0.0009935, allocations: 185 kB / 27.52 MB, free: 6.113 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.458/1.458, allocations: 221.5 MB / 253.7 MB, free: 10.4 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.0009603/0.0009598, allocations: 104 kB / 308.8 MB, free: 10.45 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 1.477e-05/1.48e-05, allocations: 0 / 369.6 MB, free: 53.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1215/0.1215, allocations: 54.64 MB / 424.2 MB, free: 13.82 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4128/0.5344, allocations: 98.95 MB / 0.5109 GB, free: 12.32 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002238/0.5347, allocations: 65.92 kB / 0.511 GB, free: 12.32 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03495/0.5696, allocations: 15.32 MB / 0.5259 GB, free: 26.88 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.5697, allocations: 7.75 kB / 0.5259 GB, free: 26.87 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.665e-05/0.5697, allocations: 7.719 kB / 0.5259 GB, free: 26.87 MB / 378.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.001438/0.5712, allocations: 0.7238 MB / 0.5266 GB, free: 26.36 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.957e-05/0.5712, allocations: 15.36 kB / 0.5267 GB, free: 26.35 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000444/0.5717, allocations: 94.92 kB / 0.5267 GB, free: 26.32 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006302/0.5723, allocations: 396.2 kB / 0.5271 GB, free: 26.04 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.024e-05/0.5723, allocations: 19.42 kB / 0.5271 GB, free: 26.04 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.632e-05/0.5724, allocations: 26.88 kB / 0.5272 GB, free: 26.04 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000847/0.5733, allocations: 0.7659 MB / 0.5279 GB, free: 25.96 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006059/0.5739, allocations: 467.3 kB / 0.5284 GB, free: 25.86 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.381e-05/0.5739, allocations: 0 / 0.5284 GB, free: 25.86 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.12e-05/0.574, allocations: 0 / 0.5284 GB, free: 25.86 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.658e-06/0.574, allocations: 11.47 kB / 0.5284 GB, free: 25.86 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002353/0.5763, allocations: 1.812 MB / 0.5301 GB, free: 24.95 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006755/0.577, allocations: 0.5525 MB / 0.5307 GB, free: 24.86 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002063/0.5772, allocations: 217.9 kB / 0.5309 GB, free: 24.84 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001365/0.5774, allocations: 83.02 kB / 0.531 GB, free: 24.82 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.639e-05/0.5774, allocations: 41.92 kB / 0.531 GB, free: 24.78 MB / 378.7 MB Notification: Performance of pre-optimization done (n=32): time 1.753e-06/0.5774, allocations: 0 / 0.531 GB, free: 24.78 MB / 378.7 MB Notification: Performance of matching and sorting (n=49): time 0.01748/0.5949, allocations: 3.47 MB / 0.5344 GB, free: 23.48 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.865e-05/0.595, allocations: 55.72 kB / 0.5345 GB, free: 23.42 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003124/0.5953, allocations: 231 kB / 0.5347 GB, free: 23.31 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.12e-05/0.5954, allocations: 25.7 kB / 0.5347 GB, free: 23.28 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000156/0.5956, allocations: 247.8 kB / 0.5349 GB, free: 23.1 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001485/0.5957, allocations: 163.3 kB / 0.5351 GB, free: 22.98 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.311e-05/0.5958, allocations: 3.938 kB / 0.5351 GB, free: 22.97 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.5959, allocations: 349.9 kB / 0.5354 GB, free: 22.64 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004013/0.5963, allocations: 345.7 kB / 0.5358 GB, free: 22.62 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003952/0.5967, allocations: 422 kB / 0.5362 GB, free: 22.51 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008783/0.5976, allocations: 443.5 kB / 0.5366 GB, free: 22.41 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.629e-06/0.5976, allocations: 3.875 kB / 0.5366 GB, free: 22.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.004969/0.6026, allocations: 1.347 MB / 0.5379 GB, free: 22.01 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.775e-05/0.6027, allocations: 7.75 kB / 0.5379 GB, free: 22.01 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.903e-05/0.6027, allocations: 3.906 kB / 0.5379 GB, free: 22.01 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003865/0.6066, allocations: 0.55 MB / 0.5385 GB, free: 21.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004362/0.6071, allocations: 85.52 kB / 0.5385 GB, free: 21.8 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006945/0.614, allocations: 4.526 MB / 0.543 GB, free: 18.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007083/0.6148, allocations: 39.33 kB / 0.543 GB, free: 18.47 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001087/0.6149, allocations: 26.23 kB / 0.543 GB, free: 18.46 MB / 378.7 MB Warning: Iteration variables with default zero start attribute in torn nonlinear equation system: liquidWater.z:DUMMY_STATE(unit = "1" protected = true ) "Charge number of ion" type: Real 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 47 * Array equations: 2 * 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.0002543/0.6151, allocations: 124.6 kB / 0.5431 GB, free: 18.34 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001332/0.6153, allocations: 34.95 kB / 0.5432 GB, free: 18.32 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006187/0.6215, allocations: 1.364 MB / 0.5445 GB, free: 17.87 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006102/0.6276, allocations: 1.269 MB / 0.5457 GB, free: 17.46 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.051e-05/0.6276, allocations: 7.812 kB / 0.5457 GB, free: 17.46 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.527e-05/0.6277, allocations: 7.938 kB / 0.5458 GB, free: 17.45 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008876/0.6366, allocations: 2.466 MB / 0.5482 GB, free: 16.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.171e-05/0.6366, allocations: 3.906 kB / 0.5482 GB, free: 16.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000335/0.637, allocations: 70.33 kB / 0.5482 GB, free: 16.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005702/0.6427, allocations: 0.6367 MB / 0.5489 GB, free: 16.13 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.037e-05/0.6428, allocations: 15.73 kB / 0.5489 GB, free: 16.12 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007516/0.6503, allocations: 4.696 MB / 0.5535 GB, free: 12.74 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004459/0.6548, allocations: 2.013 MB / 0.5554 GB, free: 11.2 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006662/0.6615, allocations: 2.037 MB / 0.5574 GB, free: 10.29 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002761/0.6618, allocations: 118.4 kB / 0.5575 GB, free: 10.17 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001199/0.662, allocations: 15.3 kB / 0.5575 GB, free: 10.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005374/0.6625, allocations: 30.48 kB / 0.5576 GB, free: 10.15 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001662/0.6627, allocations: 56.34 kB / 0.5576 GB, free: 10.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.15e-05/0.6627, allocations: 17.94 kB / 0.5576 GB, free: 10.12 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000235/0.663, allocations: 185 kB / 0.5578 GB, free: 10.04 MB / 378.7 MB Notification: Performance of sort global known variables: time 9.22e-07/0.663, allocations: 4 kB / 0.5578 GB, free: 10.03 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00156/0.6646, allocations: 306.6 kB / 0.5581 GB, free: 9.992 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 2 ($STATESET1.x[2],$STATESET1.x[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 38 * 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,3 5} Notification: Performance of Backend phase and start with SimCode phase: time 0.0008855/0.6655, allocations: 303.8 kB / 0.5584 GB, free: 9.828 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001947/0.6674, allocations: 1.044 MB / 0.5594 GB, free: 9.5 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.997e-06/0.6674, allocations: 0 / 0.5594 GB, free: 9.5 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00118/0.6686, allocations: 0.6986 MB / 0.5601 GB, free: 9.188 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006398/0.6693, allocations: 77.05 kB / 0.5602 GB, free: 9.168 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001628/0.6709, allocations: 0.9342 MB / 0.5611 GB, free: 8.648 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005659/0.6715, allocations: 0.8604 MB / 0.5619 GB, free: 7.871 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003545/0.6719, allocations: 70.12 kB / 0.562 GB, free: 7.84 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00013/0.672, allocations: 49.59 kB / 0.562 GB, free: 7.82 MB / 378.7 MB Notification: Performance of SimCode: time 8.21e-07/0.672, allocations: 0 / 0.562 GB, free: 7.82 MB / 378.7 MB Notification: Performance of Templates: time 0.02109/0.6931, allocations: 12.32 MB / 0.5741 GB, free: 15 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)