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.1615/0.1615, allocations: 15.26 MB / 30.21 MB, free: 3.297 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.001481/0.001481, allocations: 183.1 kB / 35.29 MB, free: 2.379 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.474/1.474, allocations: 223.2 MB / 263.4 MB, free: 6.535 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.000846/0.000846, allocations: 90.83 kB / 318.8 MB, free: 3.461 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002911/0.000291, allocations: 8.969 kB / 383.9 MB, free: 50.73 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09978/0.1001, allocations: 54.64 MB / 438.6 MB, free: 404 kB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3784/0.4785, allocations: 99.68 MB / 0.5256 GB, free: 15.57 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002871/0.4789, allocations: 70.95 kB / 0.5257 GB, free: 15.57 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03716/0.5161, allocations: 15.58 MB / 0.5409 GB, free: 30.13 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.5161, allocations: 0 / 0.5409 GB, free: 30.13 MB / 394.7 MB Notification: Performance of Transformations before backend: time 2.485e-05/0.5161, allocations: 7.812 kB / 0.5409 GB, free: 30.13 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.001306/0.5175, allocations: 0.7697 MB / 0.5417 GB, free: 29.59 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/0.5175, allocations: 7.75 kB / 0.5417 GB, free: 29.59 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000322/0.5178, allocations: 101.9 kB / 0.5418 GB, free: 29.56 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000526/0.5184, allocations: 381.8 kB / 0.5421 GB, free: 29.32 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.578e-05/0.5184, allocations: 46.64 kB / 0.5422 GB, free: 29.3 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.691e-05/0.5185, allocations: 44.97 kB / 0.5422 GB, free: 29.3 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007439/0.5192, allocations: 0.6078 MB / 0.5428 GB, free: 29.26 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.377e-05/0.5193, allocations: 0 / 0.5428 GB, free: 29.26 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.668e-05/0.5193, allocations: 15.25 kB / 0.5428 GB, free: 29.26 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.416e-06/0.5193, allocations: 11.5 kB / 0.5428 GB, free: 29.26 MB / 394.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008245/0.5201, allocations: 0.8077 MB / 0.5436 GB, free: 29.25 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002311/0.5225, allocations: 1.908 MB / 0.5455 GB, free: 28.6 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000645/0.5231, allocations: 0.5575 MB / 0.546 GB, free: 28.57 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001239/0.5233, allocations: 90.47 kB / 0.5461 GB, free: 28.56 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.665e-05/0.5233, allocations: 30.56 kB / 0.5462 GB, free: 28.52 MB / 394.7 MB Notification: Performance of pre-optimization done (n=32): time 1.834e-06/0.5233, allocations: 3.938 kB / 0.5462 GB, free: 28.52 MB / 394.7 MB Notification: Performance of matching and sorting (n=46): time 0.01758/0.5409, allocations: 3.521 MB / 0.5496 GB, free: 27.95 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.781e-05/0.541, allocations: 55.28 kB / 0.5496 GB, free: 27.88 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003273/0.5413, allocations: 268.2 kB / 0.5499 GB, free: 27.78 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 7.377e-05/0.5414, allocations: 32.45 kB / 0.5499 GB, free: 27.75 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001324/0.5415, allocations: 244.5 kB / 0.5502 GB, free: 27.6 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001099/0.5416, allocations: 157.6 kB / 0.5503 GB, free: 27.5 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.462e-05/0.5417, allocations: 10.94 kB / 0.5503 GB, free: 27.5 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001367/0.5418, allocations: 357.5 kB / 0.5507 GB, free: 27.17 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003457/0.5422, allocations: 319 kB / 0.551 GB, free: 27.17 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003458/0.5425, allocations: 394.3 kB / 0.5514 GB, free: 27.1 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003835/0.5429, allocations: 355.4 kB / 0.5517 GB, free: 27.09 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.5429, allocations: 0 / 0.5517 GB, free: 27.09 MB / 394.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.005576/0.5485, allocations: 1.269 MB / 0.5529 GB, free: 26.79 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.649e-05/0.5486, allocations: 9.344 kB / 0.5529 GB, free: 26.79 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.5486, allocations: 0 / 0.5529 GB, free: 26.79 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004813/0.5534, allocations: 0.5884 MB / 0.5535 GB, free: 26.58 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003751/0.5538, allocations: 81.41 kB / 0.5536 GB, free: 26.57 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007608/0.5614, allocations: 4.854 MB / 0.5583 GB, free: 23.09 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005772/0.562, allocations: 27 kB / 0.5584 GB, free: 23.08 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.071e-05/0.5621, allocations: 18.97 kB / 0.5584 GB, free: 23.08 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.0002797/0.5624, allocations: 181 kB / 0.5585 GB, free: 22.95 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.247e-05/0.5624, allocations: 34.91 kB / 0.5586 GB, free: 22.93 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006175/0.5686, allocations: 1.245 MB / 0.5598 GB, free: 22.54 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.478e-06/0.5687, allocations: 7.719 kB / 0.5598 GB, free: 22.54 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.688e-06/0.5687, allocations: 0 / 0.5598 GB, free: 22.54 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.818e-06/0.5687, allocations: 0 / 0.5598 GB, free: 22.54 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007228/0.5759, allocations: 2.174 MB / 0.5619 GB, free: 21.63 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.627e-06/0.576, allocations: 0 / 0.5619 GB, free: 21.63 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002459/0.5763, allocations: 65.97 kB / 0.562 GB, free: 21.62 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005748/0.582, allocations: 0.58 MB / 0.5626 GB, free: 21.38 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.004e-05/0.5821, allocations: 15 kB / 0.5626 GB, free: 21.38 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007904/0.59, allocations: 5.652 MB / 0.5681 GB, free: 16.7 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.918e-06/0.59, allocations: 7.688 kB / 0.5681 GB, free: 16.7 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006809/0.5969, allocations: 1.852 MB / 0.5699 GB, free: 15.93 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001909/0.5971, allocations: 120.1 kB / 0.57 GB, free: 15.81 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.785e-05/0.5972, allocations: 15.59 kB / 0.57 GB, free: 15.81 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000417/0.5976, allocations: 23.47 kB / 0.5701 GB, free: 15.8 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001189/0.5977, allocations: 54.67 kB / 0.5701 GB, free: 15.78 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.501e-05/0.5978, allocations: 15.69 kB / 0.5701 GB, free: 15.78 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0002275/0.598, allocations: 217.4 kB / 0.5703 GB, free: 15.67 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.598, allocations: 0 / 0.5703 GB, free: 15.67 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0009435/0.5989, allocations: 271 kB / 0.5706 GB, free: 15.63 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.0006201/0.5996, allocations: 318.4 kB / 0.5709 GB, free: 15.46 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.001607/0.6012, allocations: 1.026 MB / 0.5719 GB, free: 15.1 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.6012, allocations: 3.969 kB / 0.5719 GB, free: 15.1 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009657/0.6022, allocations: 0.7679 MB / 0.5726 GB, free: 14.67 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005058/0.6027, allocations: 100.6 kB / 0.5727 GB, free: 14.64 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001634/0.6043, allocations: 1.435 MB / 0.5741 GB, free: 13.74 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003812/0.6047, allocations: 0.8446 MB / 0.575 GB, free: 12.97 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.000232/0.605, allocations: 62.23 kB / 0.575 GB, free: 12.94 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.319e-05/0.6051, allocations: 38.02 kB / 0.5751 GB, free: 12.93 MB / 394.7 MB Notification: Performance of SimCode: time 3.91e-07/0.6051, allocations: 0 / 0.5751 GB, free: 12.93 MB / 394.7 MB Notification: Performance of Templates: time 0.01668/0.6217, allocations: 12.16 MB / 0.5869 GB, free: 6.801 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)