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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.06612/0.06612, allocations: 15.27 MB / 22.54 MB, free: 1.105 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.0009072/0.0009072, allocations: 191.6 kB / 27.31 MB, free: 6.18 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.092/1.092, allocations: 221.4 MB / 253.3 MB, free: 10.68 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.0008841/0.0008841, allocations: 92.61 kB / 308.4 MB, free: 10.61 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 5.52e-06/5.55e-06, allocations: 1.062 kB / 369 MB, free: 54.09 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07077/0.07078, allocations: 54.63 MB / 423.7 MB, free: 14.34 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2348/0.3057, allocations: 98.88 MB / 0.5103 GB, free: 8.25 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001303/0.3058, allocations: 64.48 kB / 0.5104 GB, free: 8.25 MB / 362.7 MB Notification: Performance of FrontEnd: time 0.03238/0.3382, allocations: 15.12 MB / 0.5251 GB, free: 6.684 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.742e-05/0.3382, allocations: 7.75 kB / 0.5251 GB, free: 6.684 MB / 362.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.001045/0.3393, allocations: 0.7396 MB / 0.5258 GB, free: 6.105 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.945e-05/0.3393, allocations: 7.875 kB / 0.5259 GB, free: 6.105 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003548/0.3397, allocations: 95.53 kB / 0.5259 GB, free: 6.066 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000527/0.3402, allocations: 393.2 kB / 0.5263 GB, free: 5.777 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.655e-05/0.3403, allocations: 19.53 kB / 0.5263 GB, free: 5.773 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.478e-05/0.3403, allocations: 27.25 kB / 0.5264 GB, free: 5.773 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008157/0.3411, allocations: 0.7805 MB / 0.5271 GB, free: 5.688 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000549/0.3417, allocations: 456.2 kB / 0.5276 GB, free: 5.594 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.249e-05/0.3417, allocations: 0 / 0.5276 GB, free: 5.594 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.08e-05/0.3418, allocations: 3.984 kB / 0.5276 GB, free: 5.59 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.727e-06/0.3418, allocations: 11.75 kB / 0.5276 GB, free: 5.59 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002094/0.3439, allocations: 1.815 MB / 0.5293 GB, free: 20.68 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005005/0.3444, allocations: 0.4953 MB / 0.5298 GB, free: 20.6 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001906/0.3446, allocations: 223.4 kB / 0.53 GB, free: 20.57 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.41e-05/0.3447, allocations: 77.06 kB / 0.5301 GB, free: 20.56 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.067e-05/0.3447, allocations: 46.09 kB / 0.5302 GB, free: 20.51 MB / 378.7 MB Notification: Performance of pre-optimization done (n=32): time 1.523e-06/0.3447, allocations: 1.859 kB / 0.5302 GB, free: 20.51 MB / 378.7 MB Notification: Performance of matching and sorting (n=49): time 0.01848/0.3632, allocations: 3.495 MB / 0.5336 GB, free: 19.21 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.341e-05/0.3633, allocations: 59.47 kB / 0.5336 GB, free: 19.15 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000204/0.3635, allocations: 232.4 kB / 0.5339 GB, free: 19.04 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.653e-05/0.3635, allocations: 33.58 kB / 0.5339 GB, free: 19 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.192e-05/0.3636, allocations: 221.3 kB / 0.5341 GB, free: 18.82 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.256e-05/0.3637, allocations: 161.8 kB / 0.5343 GB, free: 18.7 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.748e-05/0.3637, allocations: 0 / 0.5343 GB, free: 18.7 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001019/0.3638, allocations: 349.1 kB / 0.5346 GB, free: 18.38 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000333/0.3642, allocations: 346 kB / 0.5349 GB, free: 18.35 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003516/0.3645, allocations: 431.2 kB / 0.5353 GB, free: 18.23 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000771/0.3653, allocations: 450.8 kB / 0.5358 GB, free: 18.13 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.3653, allocations: 0 / 0.5358 GB, free: 18.13 MB / 378.7 MB Notification: Performance of matching and sorting (n=64) (initialization): time 0.005265/0.3706, allocations: 1.365 MB / 0.5371 GB, free: 17.74 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.129e-05/0.3706, allocations: 3.875 kB / 0.5371 GB, free: 17.74 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.3706, allocations: 7.703 kB / 0.5371 GB, free: 17.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004302/0.3749, allocations: 0.5497 MB / 0.5376 GB, free: 17.54 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003589/0.3753, allocations: 88.78 kB / 0.5377 GB, free: 17.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00645/0.3818, allocations: 4.452 MB / 0.5421 GB, free: 14.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000528/0.3823, allocations: 34.86 kB / 0.5421 GB, free: 14.2 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.837e-05/0.3824, allocations: 30.16 kB / 0.5421 GB, free: 14.19 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.0001434/0.3825, allocations: 121.6 kB / 0.5422 GB, free: 14.07 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.179e-05/0.3826, allocations: 38.78 kB / 0.5423 GB, free: 14.04 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006485/0.3891, allocations: 1.391 MB / 0.5436 GB, free: 13.59 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.006284/0.3954, allocations: 1.276 MB / 0.5449 GB, free: 13.19 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.3954, allocations: 7.734 kB / 0.5449 GB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.3954, allocations: 0 / 0.5449 GB, free: 13.18 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007988/0.4034, allocations: 2.471 MB / 0.5473 GB, free: 12.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-06/0.4034, allocations: 3.875 kB / 0.5473 GB, free: 12.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002578/0.4037, allocations: 68.78 kB / 0.5474 GB, free: 12.12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00589/0.4096, allocations: 0.6391 MB / 0.548 GB, free: 11.88 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.625e-05/0.4097, allocations: 11.61 kB / 0.548 GB, free: 11.87 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007418/0.4171, allocations: 4.614 MB / 0.5525 GB, free: 8.5 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.004693/0.4218, allocations: 1.957 MB / 0.5544 GB, free: 6.977 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.007337/0.4291, allocations: 2.056 MB / 0.5564 GB, free: 6.07 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001573/0.4293, allocations: 118.1 kB / 0.5566 GB, free: 5.953 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.891e-05/0.4294, allocations: 10.62 kB / 0.5566 GB, free: 5.949 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004996/0.4299, allocations: 33.62 kB / 0.5566 GB, free: 5.93 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.337e-05/0.43, allocations: 31.98 kB / 0.5566 GB, free: 5.918 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.672e-05/0.4301, allocations: 23.02 kB / 0.5566 GB, free: 5.914 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0002125/0.4303, allocations: 188.2 kB / 0.5568 GB, free: 5.82 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001414/0.4317, allocations: 297.8 kB / 0.5571 GB, free: 5.785 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.0006912/0.4324, allocations: 309.6 kB / 0.5574 GB, free: 5.617 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001989/0.4344, allocations: 1.031 MB / 0.5584 GB, free: 5.312 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/0.4344, allocations: 1.062 kB / 0.5584 GB, free: 5.312 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001074/0.4355, allocations: 0.659 MB / 0.5591 GB, free: 5.023 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005373/0.4361, allocations: 86.2 kB / 0.5591 GB, free: 4.996 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00181/0.4379, allocations: 0.9791 MB / 0.5601 GB, free: 4.465 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005602/0.4384, allocations: 0.8988 MB / 0.561 GB, free: 3.68 MB / 378.7 MB Notification: Performance of SimCode: time 3.61e-07/0.4385, allocations: 0 / 0.561 GB, free: 3.68 MB / 378.7 MB Notification: Performance of Templates: time 0.01999/0.4585, allocations: 13.04 MB / 0.5737 GB, free: 10.01 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)