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.001121/0.001121, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001086/0.001086, allocations: 195.2 kB / 16.53 MB, free: 6.664 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.175/1.175, allocations: 222.9 MB / 240.2 MB, free: 4.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.168/0.168, allocations: 15.33 MB / 305.7 MB, free: 15.3 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001127/0.001127, allocations: 63.89 kB / 370.3 MB, free: 3.938 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07973/0.08087, allocations: 53.61 MB / 423.9 MB, free: 14.28 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.HeatingOfWater): time 0.004076/0.08497, allocations: 3.43 MB / 427.4 MB, free: 10.82 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.004656/0.08965, allocations: 4.732 MB / 432.1 MB, free: 6.074 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002419/0.08991, allocations: 11.94 kB / 432.1 MB, free: 6.062 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003073/0.09023, allocations: 111.1 kB / 432.2 MB, free: 5.953 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008199/0.09107, allocations: 441.1 kB / 432.6 MB, free: 5.52 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008704/0.09195, allocations: 0.5244 MB / 433.2 MB, free: 4.992 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004676/0.09242, allocations: 0.5844 MB / 433.8 MB, free: 4.406 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003413/0.09277, allocations: 368.3 kB / 434.1 MB, free: 4.039 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002251/0.09301, allocations: 283.1 kB / 434.4 MB, free: 3.762 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003127/0.09333, allocations: 306.9 kB / 434.7 MB, free: 3.461 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 6.861e-05/0.0934, allocations: 52 kB / 434.7 MB, free: 3.41 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000806/0.09422, allocations: 471.4 kB / 435.2 MB, free: 2.949 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001051/0.09433, allocations: 127.6 kB / 435.3 MB, free: 2.824 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002051/0.09454, allocations: 274.7 kB / 435.6 MB, free: 2.555 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001006/0.09555, allocations: 1.035 MB / 436.6 MB, free: 1.516 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.915e-06/0.09556, allocations: 0 / 436.6 MB, free: 1.516 MB / 366.1 MB Notification: Performance of FrontEnd: time 9.61e-07/0.09557, allocations: 0 / 436.6 MB, free: 1.516 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.582e-06/0.09558, allocations: 0 / 436.6 MB, free: 1.516 MB / 366.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.00112/0.0967, allocations: 0.8551 MB / 437.5 MB, free: 0.6133 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.147e-05/0.09674, allocations: 15.97 kB / 437.5 MB, free: 0.5977 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003105/0.09706, allocations: 92 kB / 437.6 MB, free: 0.5078 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003583/0.09743, allocations: 362.3 kB / 437.9 MB, free: 116 kB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.526e-05/0.09746, allocations: 37.38 kB / 438 MB, free: 80 kB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.32e-05/0.09753, allocations: 44.38 kB / 438 MB, free: 36 kB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1413/0.2388, allocations: 450.1 kB / 438.5 MB, free: 53.66 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.056e-05/0.2388, allocations: 1.906 kB / 438.5 MB, free: 53.66 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.564e-05/0.2389, allocations: 19.81 kB / 438.5 MB, free: 53.66 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.038e-05/0.2389, allocations: 10.12 kB / 438.5 MB, free: 53.66 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006846/0.2396, allocations: 0.5094 MB / 439 MB, free: 53.65 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001948/0.2416, allocations: 1.552 MB / 440.6 MB, free: 53.09 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006018/0.2422, allocations: 362.8 kB / 440.9 MB, free: 53.07 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001462/0.2423, allocations: 122.3 kB / 441 MB, free: 53.06 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001622/0.244, allocations: 1.561 MB / 442.6 MB, free: 51.99 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.29e-05/0.244, allocations: 37.28 kB / 442.6 MB, free: 51.95 MB / 366.1 MB Notification: Performance of pre-optimization done (n=22): time 1.553e-06/0.244, allocations: 5.438 kB / 442.6 MB, free: 51.95 MB / 366.1 MB Notification: Performance of matching and sorting (n=31): time 0.01233/0.2563, allocations: 2.333 MB / 445 MB, free: 51.37 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.09e-05/0.2564, allocations: 58.78 kB / 445 MB, free: 51.3 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002461/0.2566, allocations: 293.4 kB / 445.3 MB, free: 51.19 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.541e-05/0.2567, allocations: 32.7 kB / 445.3 MB, free: 51.16 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.676e-05/0.2568, allocations: 269.9 kB / 445.6 MB, free: 50.98 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.711e-05/0.2568, allocations: 115.1 kB / 445.7 MB, free: 50.91 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001048/0.2569, allocations: 81.55 kB / 445.8 MB, free: 50.89 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 5.281e-05/0.257, allocations: 346 kB / 446.1 MB, free: 50.58 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001905/0.2572, allocations: 134.9 kB / 446.3 MB, free: 50.58 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002149/0.2574, allocations: 262.9 kB / 446.5 MB, free: 50.43 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004364/0.2579, allocations: 432 kB / 446.9 MB, free: 50.28 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.2579, allocations: 3.281 kB / 447 MB, free: 50.28 MB / 366.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.003422/0.2613, allocations: 0.8213 MB / 447.8 MB, free: 50.06 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/0.2613, allocations: 7.938 kB / 447.8 MB, free: 50.06 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.855e-06/0.2613, allocations: 5.938 kB / 447.8 MB, free: 50.06 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00305/0.2644, allocations: 407.2 kB / 448.2 MB, free: 49.99 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002131/0.2646, allocations: 79.84 kB / 448.3 MB, free: 49.99 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005055/0.2697, allocations: 3.983 MB / 452.2 MB, free: 46.66 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000297/0.27, allocations: 13.73 kB / 452.3 MB, free: 46.65 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.591e-05/0.27, allocations: 22.72 kB / 452.3 MB, free: 46.65 MB / 366.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.0001483/0.2702, allocations: 173.1 kB / 452.4 MB, free: 46.5 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.494e-05/0.2703, allocations: 36 kB / 452.5 MB, free: 46.48 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004196/0.2745, allocations: 0.8314 MB / 453.3 MB, free: 46.18 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.308e-06/0.2745, allocations: 3.125 kB / 453.3 MB, free: 46.18 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.2745, allocations: 3.125 kB / 453.3 MB, free: 46.18 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.2745, allocations: 7.094 kB / 453.3 MB, free: 46.18 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005367/0.2751, allocations: 0.6266 MB / 454 MB, free: 45.76 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.488e-06/0.2751, allocations: 3 kB / 454 MB, free: 45.76 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000153/0.2752, allocations: 56.55 kB / 454 MB, free: 45.75 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003983/0.2792, allocations: 499.3 kB / 454.5 MB, free: 45.66 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.116e-05/0.2793, allocations: 9.781 kB / 454.5 MB, free: 45.66 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005286/0.2846, allocations: 5.306 MB / 459.8 MB, free: 40.94 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.715e-06/0.2846, allocations: 3.156 kB / 459.8 MB, free: 40.94 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004298/0.2889, allocations: 1.137 MB / 461 MB, free: 40.4 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.371e-05/0.289, allocations: 109.7 kB / 461.1 MB, free: 40.29 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.319e-05/0.289, allocations: 11.38 kB / 461.1 MB, free: 40.28 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002661/0.2893, allocations: 9.969 kB / 461.1 MB, free: 40.27 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.386e-05/0.2894, allocations: 46.38 kB / 461.1 MB, free: 40.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.666e-05/0.2894, allocations: 20.14 kB / 461.1 MB, free: 40.26 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001378/0.2895, allocations: 206.3 kB / 461.3 MB, free: 40.15 MB / 366.1 MB Notification: Performance of sort global known variables: time 2e-07/0.2896, allocations: 4.062 kB / 461.4 MB, free: 40.14 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006556/0.2902, allocations: 231.5 kB / 461.6 MB, free: 40.12 MB / 366.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.0004473/0.2907, allocations: 294.3 kB / 461.9 MB, free: 40.01 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001073/0.2918, allocations: 0.6971 MB / 462.6 MB, free: 39.63 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.2918, allocations: 0 / 462.6 MB, free: 39.63 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006908/0.2925, allocations: 0.6106 MB / 463.2 MB, free: 39.19 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005788/0.2931, allocations: 113.6 kB / 463.3 MB, free: 39.16 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001297/0.2944, allocations: 1.031 MB / 464.3 MB, free: 38.55 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002189/0.2946, allocations: 0.8303 MB / 465.1 MB, free: 37.85 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002679/0.2949, allocations: 73.92 kB / 465.2 MB, free: 37.83 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.219e-05/0.295, allocations: 56.98 kB / 465.3 MB, free: 37.82 MB / 366.1 MB Notification: Performance of SimCode: time 4.01e-07/0.295, allocations: 1.859 kB / 465.3 MB, free: 37.82 MB / 366.1 MB Notification: Performance of Templates: time 0.01642/0.3114, allocations: 11.24 MB / 476.5 MB, free: 36.98 MB / 366.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)