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.0009382/0.000938, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005688/0.005688, allocations: 169.9 kB / 16.26 MB, free: 6.676 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.422/1.422, allocations: 223.3 MB / 240.3 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1965/0.1965, allocations: 15.27 MB / 306.7 MB, free: 15.71 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003224/0.0003224, allocations: 8 kB / 372.1 MB, free: 3.617 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3096/0.31, allocations: 54.62 MB / 426.7 MB, free: 40.79 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.HeatingOfWater): time 0.003355/0.3134, allocations: 3.391 MB / 430.1 MB, free: 40.07 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.004215/0.3176, allocations: 4.689 MB / 434.8 MB, free: 37.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003015/0.318, allocations: 7.344 kB / 434.8 MB, free: 37.31 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003569/0.3183, allocations: 98.84 kB / 434.9 MB, free: 37.27 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000907/0.3192, allocations: 385.1 kB / 435.3 MB, free: 37.06 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001162/0.3204, allocations: 473 kB / 435.7 MB, free: 36.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005086/0.3209, allocations: 0.5576 MB / 436.3 MB, free: 36.72 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003269/0.3213, allocations: 306.5 kB / 436.6 MB, free: 36.67 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002194/0.3215, allocations: 262.9 kB / 436.8 MB, free: 36.59 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002615/0.3218, allocations: 281.5 kB / 437.1 MB, free: 36.48 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.904e-05/0.3218, allocations: 25.78 kB / 437.1 MB, free: 36.48 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007879/0.3226, allocations: 454.7 kB / 437.6 MB, free: 36.37 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.682e-05/0.3227, allocations: 91.95 kB / 437.7 MB, free: 36.32 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001809/0.3229, allocations: 279.9 kB / 437.9 MB, free: 36.14 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009186/0.3238, allocations: 0.9622 MB / 438.9 MB, free: 35.79 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.437e-06/0.3238, allocations: 0 / 438.9 MB, free: 35.79 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.465e-06/0.3239, allocations: 0 / 438.9 MB, free: 35.79 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.905e-06/0.3239, allocations: 3.938 kB / 438.9 MB, free: 35.78 MB / 350.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.001012/0.3249, allocations: 0.7673 MB / 439.7 MB, free: 35.2 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.375e-05/0.3249, allocations: 9.719 kB / 439.7 MB, free: 35.2 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003136/0.3253, allocations: 92.23 kB / 439.8 MB, free: 35.17 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003537/0.3256, allocations: 345.2 kB / 440.1 MB, free: 34.88 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.378e-05/0.3257, allocations: 40.03 kB / 440.2 MB, free: 34.86 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.392e-05/0.3257, allocations: 41.12 kB / 440.2 MB, free: 34.85 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006187/0.3264, allocations: 464.8 kB / 440.7 MB, free: 34.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.346e-05/0.3264, allocations: 0 / 440.7 MB, free: 34.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.467e-05/0.3264, allocations: 17.75 kB / 440.7 MB, free: 34.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.586e-06/0.3264, allocations: 9.125 kB / 440.7 MB, free: 34.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006443/0.3271, allocations: 0.5123 MB / 441.2 MB, free: 34.49 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001818/0.3289, allocations: 1.537 MB / 442.7 MB, free: 33.49 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006028/0.3295, allocations: 366.2 kB / 443.1 MB, free: 33.35 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001573/0.3297, allocations: 116.9 kB / 443.2 MB, free: 33.3 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001579/0.3313, allocations: 1.544 MB / 444.7 MB, free: 32.01 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.503e-05/0.3313, allocations: 34.03 kB / 444.8 MB, free: 31.97 MB / 350.1 MB Notification: Performance of pre-optimization done (n=22): time 1.372e-06/0.3313, allocations: 0 / 444.8 MB, free: 31.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=31): time 0.01483/0.3462, allocations: 2.387 MB / 447.2 MB, free: 30.97 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.409e-05/0.3462, allocations: 54.47 kB / 447.2 MB, free: 30.91 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003416/0.3466, allocations: 302.2 kB / 447.5 MB, free: 30.73 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.158e-05/0.3466, allocations: 33.08 kB / 447.5 MB, free: 30.7 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001298/0.3468, allocations: 271 kB / 447.8 MB, free: 30.48 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.651e-05/0.3469, allocations: 107.7 kB / 447.9 MB, free: 30.39 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.498e-05/0.3469, allocations: 40.89 kB / 448 MB, free: 30.37 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.176e-05/0.347, allocations: 346.5 kB / 448.3 MB, free: 30.04 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00021/0.3472, allocations: 135.8 kB / 448.4 MB, free: 29.98 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002438/0.3475, allocations: 256.1 kB / 448.7 MB, free: 29.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005004/0.348, allocations: 439.3 kB / 449.1 MB, free: 29.45 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.348, allocations: 4 kB / 449.1 MB, free: 29.45 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.00415/0.3521, allocations: 0.8277 MB / 449.9 MB, free: 29.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.312e-05/0.3522, allocations: 16.12 kB / 450 MB, free: 29.15 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.968e-06/0.3522, allocations: 5.391 kB / 450 MB, free: 29.15 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003723/0.3559, allocations: 428 kB / 450.4 MB, free: 29.08 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002485/0.3562, allocations: 74.84 kB / 450.4 MB, free: 29.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005716/0.3619, allocations: 3.738 MB / 454.2 MB, free: 25.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004495/0.3624, allocations: 38.16 kB / 454.2 MB, free: 25.93 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.241e-05/0.3624, allocations: 22.31 kB / 454.2 MB, free: 25.92 MB / 350.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.0002472/0.3627, allocations: 169.7 kB / 454.4 MB, free: 25.77 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.957e-05/0.3628, allocations: 30.44 kB / 454.4 MB, free: 25.75 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004965/0.3678, allocations: 0.8496 MB / 455.3 MB, free: 25.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.061e-05/0.3678, allocations: 3.312 kB / 455.3 MB, free: 25.45 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.907e-06/0.3678, allocations: 7.188 kB / 455.3 MB, free: 25.45 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.04e-05/0.3678, allocations: 3.375 kB / 455.3 MB, free: 25.45 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008706/0.3687, allocations: 0.6221 MB / 455.9 MB, free: 24.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.108e-06/0.3687, allocations: 0 / 455.9 MB, free: 24.99 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001653/0.3689, allocations: 49.38 kB / 456 MB, free: 24.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004692/0.3736, allocations: 0.5012 MB / 456.5 MB, free: 24.9 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.496e-05/0.3737, allocations: 16.44 kB / 456.5 MB, free: 24.89 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006147/0.3798, allocations: 4.948 MB / 461.4 MB, free: 20.46 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.799e-06/0.3799, allocations: 2.156 kB / 461.4 MB, free: 20.46 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005353/0.3852, allocations: 1.141 MB / 462.6 MB, free: 19.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001457/0.3854, allocations: 118.7 kB / 462.7 MB, free: 19.8 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.853e-05/0.3855, allocations: 8.219 kB / 462.7 MB, free: 19.8 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003135/0.3858, allocations: 18.64 kB / 462.7 MB, free: 19.79 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001489/0.386, allocations: 38.27 kB / 462.8 MB, free: 19.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.236e-05/0.386, allocations: 23.5 kB / 462.8 MB, free: 19.78 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002618/0.3863, allocations: 198.4 kB / 463 MB, free: 19.67 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3863, allocations: 0 / 463 MB, free: 19.67 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001184/0.3875, allocations: 239.2 kB / 463.2 MB, free: 19.63 MB / 350.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.0006334/0.3881, allocations: 293.9 kB / 463.5 MB, free: 19.46 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001331/0.3895, allocations: 0.6874 MB / 464.2 MB, free: 19.06 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.3895, allocations: 1 kB / 464.2 MB, free: 19.06 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008243/0.3903, allocations: 0.6205 MB / 464.8 MB, free: 18.61 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007717/0.3911, allocations: 101.4 kB / 464.9 MB, free: 18.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001763/0.3929, allocations: 1.285 MB / 466.2 MB, free: 17.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003008/0.3932, allocations: 0.828 MB / 467 MB, free: 17.05 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003361/0.3935, allocations: 77.92 kB / 467.1 MB, free: 17.01 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001263/0.3937, allocations: 62.38 kB / 467.2 MB, free: 17 MB / 350.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3937, allocations: 4 kB / 467.2 MB, free: 16.99 MB / 350.1 MB Notification: Performance of Templates: time 0.02393/0.4176, allocations: 10.83 MB / 478 MB, free: 14.5 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 -lv LOG_STATS > Chemical_Chemical.Examples.HeatingOfWater.pipe 2>&1)