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.01126/0.01126, allocations: 102.6 kB / 15.73 MB, free: 6.496 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.002105/0.002104, allocations: 195.7 kB / 16.67 MB, free: 6.379 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.456/1.456, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2665/0.2665, allocations: 15.32 MB / 305.9 MB, free: 15.27 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001277/0.001277, allocations: 55.91 kB / 425.2 MB, free: 13.1 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3532/0.3545, allocations: 53.61 MB / 478.8 MB, free: 26.07 MB / 366.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.HeatingOfWater): time 0.007459/0.362, allocations: 3.432 MB / 482.2 MB, free: 23.62 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.0084/0.3705, allocations: 4.736 MB / 487 MB, free: 19.9 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007568/0.3713, allocations: 8.469 kB / 487 MB, free: 19.9 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000578/0.3718, allocations: 111 kB / 487.1 MB, free: 19.81 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001798/0.3737, allocations: 446.5 kB / 487.5 MB, free: 19.47 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002675/0.3764, allocations: 0.5199 MB / 488 MB, free: 19.06 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001362/0.3778, allocations: 0.5883 MB / 488.6 MB, free: 18.7 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000648/0.3784, allocations: 362.4 kB / 489 MB, free: 18.48 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004927/0.3789, allocations: 288.9 kB / 489.3 MB, free: 18.33 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005704/0.3795, allocations: 311.2 kB / 489.6 MB, free: 18.14 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001336/0.3797, allocations: 52.47 kB / 489.6 MB, free: 18.14 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002323/0.382, allocations: 475.9 kB / 490.1 MB, free: 17.98 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001368/0.3822, allocations: 119.1 kB / 490.2 MB, free: 17.88 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003118/0.3825, allocations: 282.8 kB / 490.5 MB, free: 17.7 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002181/0.3847, allocations: 1.044 MB / 491.5 MB, free: 17.03 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.215e-06/0.3847, allocations: 7.922 kB / 491.5 MB, free: 17.02 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.795e-06/0.3847, allocations: 0 / 491.5 MB, free: 17.02 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.24e-05/0.3847, allocations: 0 / 491.5 MB, free: 17.02 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.001992/0.3867, allocations: 0.856 MB / 492.4 MB, free: 16.33 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.245e-05/0.3868, allocations: 12.73 kB / 492.4 MB, free: 16.32 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005351/0.3874, allocations: 89.16 kB / 492.5 MB, free: 16.29 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000737/0.3881, allocations: 368.5 kB / 492.8 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.185e-05/0.3882, allocations: 36.44 kB / 492.9 MB, free: 15.93 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001021/0.3883, allocations: 47.16 kB / 492.9 MB, free: 15.91 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000977/0.3893, allocations: 456.7 kB / 493.4 MB, free: 15.65 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.019e-05/0.3893, allocations: 1 kB / 493.4 MB, free: 15.65 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.952e-05/0.3894, allocations: 19.16 kB / 493.4 MB, free: 15.63 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.905e-05/0.3894, allocations: 12.56 kB / 493.4 MB, free: 15.63 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001217/0.3906, allocations: 0.5068 MB / 493.9 MB, free: 15.41 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002702/0.3933, allocations: 1.536 MB / 495.4 MB, free: 14.16 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007199/0.3941, allocations: 364.4 kB / 495.8 MB, free: 13.99 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001888/0.3943, allocations: 120.3 kB / 495.9 MB, free: 13.93 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001937/0.3962, allocations: 1.57 MB / 497.5 MB, free: 12.48 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.11e-05/0.3963, allocations: 40.38 kB / 497.5 MB, free: 12.43 MB / 366.1 MB Notification: Performance of pre-optimization done (n=22): time 1.573e-06/0.3963, allocations: 0 / 497.5 MB, free: 12.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=31): time 0.01333/0.4096, allocations: 2.335 MB / 499.9 MB, free: 11.02 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.058e-05/0.4097, allocations: 54.16 kB / 499.9 MB, free: 10.96 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003744/0.4101, allocations: 293.1 kB / 0.4885 GB, free: 10.75 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.25e-05/0.4101, allocations: 31.55 kB / 0.4885 GB, free: 10.72 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000144/0.4103, allocations: 273.9 kB / 0.4888 GB, free: 10.47 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.074e-05/0.4103, allocations: 108.5 kB / 0.4889 GB, free: 10.38 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001395/0.4105, allocations: 86.91 kB / 0.489 GB, free: 10.32 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.339e-05/0.4106, allocations: 349.7 kB / 0.4893 GB, free: 9.977 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002257/0.4108, allocations: 130.4 kB / 0.4894 GB, free: 9.914 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003113/0.4111, allocations: 265.1 kB / 0.4897 GB, free: 9.676 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005685/0.4117, allocations: 426.9 kB / 0.4901 GB, free: 9.355 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.4117, allocations: 1.438 kB / 0.4901 GB, free: 9.355 MB / 366.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.003781/0.4155, allocations: 0.8258 MB / 0.4909 GB, free: 8.902 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.297e-05/0.4155, allocations: 13 kB / 0.4909 GB, free: 8.898 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.025e-05/0.4156, allocations: 3.781 kB / 0.4909 GB, free: 8.898 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003307/0.4189, allocations: 406.5 kB / 0.4913 GB, free: 8.711 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002741/0.4192, allocations: 85.64 kB / 0.4914 GB, free: 8.688 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005504/0.4247, allocations: 3.972 MB / 0.4952 GB, free: 5.102 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004321/0.4251, allocations: 15.69 kB / 0.4953 GB, free: 5.094 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.118e-05/0.4252, allocations: 20.94 kB / 0.4953 GB, free: 5.09 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.0002333/0.4254, allocations: 171.1 kB / 0.4954 GB, free: 4.934 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.081e-05/0.4255, allocations: 36.31 kB / 0.4955 GB, free: 4.914 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004373/0.4299, allocations: 0.8382 MB / 0.4963 GB, free: 4.141 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.781e-06/0.4299, allocations: 4 kB / 0.4963 GB, free: 4.137 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.23e-06/0.4299, allocations: 0 / 0.4963 GB, free: 4.137 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.672e-06/0.4299, allocations: 3.984 kB / 0.4963 GB, free: 4.133 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000714/0.4307, allocations: 0.627 MB / 0.4969 GB, free: 3.422 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.4307, allocations: 4 kB / 0.4969 GB, free: 3.418 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001588/0.4308, allocations: 51.91 kB / 0.497 GB, free: 3.367 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004089/0.4349, allocations: 482.2 kB / 0.4974 GB, free: 2.887 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.788e-05/0.435, allocations: 23.92 kB / 0.4975 GB, free: 2.863 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006405/0.4414, allocations: 5.306 MB / 0.5026 GB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.4414, allocations: 0 / 0.5026 GB, free: 13.14 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00501/0.4465, allocations: 1.133 MB / 0.5037 GB, free: 11.96 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001863/0.4467, allocations: 104.6 kB / 0.5038 GB, free: 11.84 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.122e-05/0.4467, allocations: 12 kB / 0.5038 GB, free: 11.82 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002907/0.447, allocations: 19.92 kB / 0.5039 GB, free: 11.8 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001174/0.4472, allocations: 43.89 kB / 0.5039 GB, free: 11.76 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.835e-05/0.4472, allocations: 23.98 kB / 0.5039 GB, free: 11.74 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002225/0.4474, allocations: 195.2 kB / 0.5041 GB, free: 11.55 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4474, allocations: 3.938 kB / 0.5041 GB, free: 11.54 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009911/0.4484, allocations: 235.9 kB / 0.5043 GB, free: 11.31 MB / 382.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.0005415/0.449, allocations: 282.9 kB / 0.5046 GB, free: 11.03 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001403/0.4504, allocations: 0.6932 MB / 0.5053 GB, free: 10.31 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.396e-06/0.4504, allocations: 4 kB / 0.5053 GB, free: 10.3 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008933/0.4513, allocations: 0.6135 MB / 0.5059 GB, free: 9.652 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006688/0.452, allocations: 106.2 kB / 0.506 GB, free: 9.555 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001718/0.4537, allocations: 1.024 MB / 0.507 GB, free: 8.477 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004498/0.4542, allocations: 0.8275 MB / 0.5078 GB, free: 7.625 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0002513/0.4544, allocations: 75.2 kB / 0.5079 GB, free: 7.555 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001096/0.4546, allocations: 51.41 kB / 0.5079 GB, free: 7.504 MB / 382.1 MB Notification: Performance of SimCode: time 5.2e-07/0.4546, allocations: 0 / 0.5079 GB, free: 7.504 MB / 382.1 MB Notification: Performance of Templates: time 0.01928/0.4739, allocations: 11.62 MB / 0.5193 GB, free: 11.92 MB / 398.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)