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.001224/0.001224, allocations: 104 kB / 16.41 MB, free: 6.504 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.001124/0.001124, allocations: 189.7 kB / 17.34 MB, free: 5.742 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.353/1.353, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08287/0.08287, allocations: 15.31 MB / 306.5 MB, free: 15.4 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001236/0.001236, allocations: 71.89 kB / 425.8 MB, free: 11.44 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1055/0.1067, allocations: 53.61 MB / 479.5 MB, free: 5.777 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.HeatingOfWater): time 0.004559/0.1113, allocations: 3.436 MB / 482.9 MB, free: 2.32 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005517/0.1169, allocations: 4.732 MB / 487.6 MB, free: 13.57 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003796/0.1173, allocations: 7.938 kB / 487.6 MB, free: 13.56 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004564/0.1178, allocations: 103.2 kB / 487.7 MB, free: 13.46 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001094/0.1189, allocations: 448.8 kB / 488.2 MB, free: 13.02 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001248/0.1202, allocations: 0.5321 MB / 488.7 MB, free: 12.48 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006909/0.1209, allocations: 0.5844 MB / 489.3 MB, free: 11.89 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004551/0.1214, allocations: 364.4 kB / 489.6 MB, free: 11.54 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003019/0.1217, allocations: 291.1 kB / 489.9 MB, free: 11.25 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003767/0.1221, allocations: 310.8 kB / 490.2 MB, free: 10.95 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 7.875e-05/0.1221, allocations: 52 kB / 490.3 MB, free: 10.89 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001086/0.1232, allocations: 471.3 kB / 490.7 MB, free: 10.43 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001227/0.1234, allocations: 123.6 kB / 490.9 MB, free: 10.31 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002496/0.1236, allocations: 282.7 kB / 491.1 MB, free: 10.04 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001355/0.125, allocations: 1.028 MB / 492.2 MB, free: 9.004 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.241e-05/0.125, allocations: 0 / 492.2 MB, free: 9.004 MB / 366.1 MB Notification: Performance of FrontEnd: time 5.22e-06/0.125, allocations: 7.938 kB / 492.2 MB, free: 8.996 MB / 366.1 MB Notification: Performance of Transformations before backend: time 9.257e-06/0.125, allocations: 3.938 kB / 492.2 MB, free: 8.992 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.001354/0.1264, allocations: 0.8576 MB / 493 MB, free: 8.086 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.739e-05/0.1264, allocations: 11.97 kB / 493 MB, free: 8.074 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000357/0.1268, allocations: 96.09 kB / 493.1 MB, free: 7.98 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005495/0.1274, allocations: 366.2 kB / 493.5 MB, free: 7.582 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.98e-05/0.1274, allocations: 33.38 kB / 493.5 MB, free: 7.551 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.166e-05/0.1275, allocations: 48.38 kB / 493.6 MB, free: 7.504 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007214/0.1282, allocations: 458.7 kB / 494 MB, free: 7.051 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.344e-05/0.1282, allocations: 4 kB / 494 MB, free: 7.047 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.762e-05/0.1283, allocations: 16 kB / 494 MB, free: 7.031 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.302e-05/0.1283, allocations: 15.94 kB / 494.1 MB, free: 7.016 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007478/0.1291, allocations: 0.5076 MB / 494.6 MB, free: 6.508 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002174/0.1313, allocations: 1.529 MB / 496.1 MB, free: 4.879 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007059/0.132, allocations: 366.6 kB / 496.5 MB, free: 4.512 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001814/0.1322, allocations: 128.8 kB / 496.6 MB, free: 4.383 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002007/0.1342, allocations: 1.557 MB / 498.1 MB, free: 2.645 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.273e-05/0.1342, allocations: 42.5 kB / 498.2 MB, free: 2.594 MB / 366.1 MB Notification: Performance of pre-optimization done (n=22): time 3.075e-06/0.1342, allocations: 0 / 498.2 MB, free: 2.594 MB / 366.1 MB Notification: Performance of matching and sorting (n=31): time 0.01373/0.148, allocations: 2.336 MB / 0.4888 GB, free: 160 kB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.132e-05/0.148, allocations: 63.34 kB / 0.4888 GB, free: 84 kB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003664/0.1484, allocations: 300.4 kB / 0.4891 GB, free: 15.77 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 4.799e-05/0.1485, allocations: 29.7 kB / 0.4892 GB, free: 15.74 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001591/0.1486, allocations: 275.4 kB / 0.4894 GB, free: 15.46 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.277e-05/0.1487, allocations: 98.56 kB / 0.4895 GB, free: 15.37 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001339/0.1489, allocations: 86.03 kB / 0.4896 GB, free: 15.28 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001192/0.149, allocations: 346.7 kB / 0.4899 GB, free: 14.93 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002251/0.1492, allocations: 132.8 kB / 0.4901 GB, free: 14.8 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003143/0.1496, allocations: 260 kB / 0.4903 GB, free: 14.49 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005604/0.1501, allocations: 432.8 kB / 0.4907 GB, free: 14.01 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.1501, allocations: 0 / 0.4907 GB, free: 14.01 MB / 382.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.003826/0.154, allocations: 0.8194 MB / 0.4915 GB, free: 13.18 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.218e-05/0.154, allocations: 7.938 kB / 0.4915 GB, free: 13.17 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.204e-05/0.154, allocations: 4 kB / 0.4915 GB, free: 13.17 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003321/0.1573, allocations: 413.8 kB / 0.4919 GB, free: 12.76 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002855/0.1576, allocations: 75.91 kB / 0.492 GB, free: 12.68 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006159/0.1638, allocations: 3.981 MB / 0.4959 GB, free: 8.422 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004012/0.1642, allocations: 19.91 kB / 0.4959 GB, free: 8.402 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.913e-05/0.1643, allocations: 20.03 kB / 0.4959 GB, free: 8.383 MB / 382.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.0002534/0.1646, allocations: 169.7 kB / 0.4961 GB, free: 8.207 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.409e-05/0.1647, allocations: 39.5 kB / 0.4961 GB, free: 8.168 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004549/0.1692, allocations: 0.8311 MB / 0.4969 GB, free: 7.32 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.062e-06/0.1692, allocations: 8 kB / 0.4969 GB, free: 7.312 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.1692, allocations: 0 / 0.4969 GB, free: 7.312 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.68e-06/0.1693, allocations: 0 / 0.4969 GB, free: 7.312 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008136/0.1701, allocations: 0.6311 MB / 0.4976 GB, free: 6.598 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.098e-06/0.1701, allocations: 4.031 kB / 0.4976 GB, free: 6.594 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001743/0.1703, allocations: 47.98 kB / 0.4976 GB, free: 6.547 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004276/0.1746, allocations: 494.2 kB / 0.4981 GB, free: 6.055 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.022e-05/0.1746, allocations: 11.94 kB / 0.4981 GB, free: 6.043 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006858/0.1815, allocations: 5.302 MB / 0.5033 GB, free: 328 kB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.1815, allocations: 4 kB / 0.5033 GB, free: 324 kB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.2424/0.4239, allocations: 1.124 MB / 0.5044 GB, free: 34.18 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001471/0.4241, allocations: 111.2 kB / 0.5045 GB, free: 34.08 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.385e-05/0.4242, allocations: 8.391 kB / 0.5045 GB, free: 34.08 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00029/0.4245, allocations: 12.97 kB / 0.5045 GB, free: 34.08 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001689/0.4247, allocations: 43.45 kB / 0.5045 GB, free: 34.08 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.241e-05/0.4247, allocations: 18.08 kB / 0.5046 GB, free: 34.08 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002639/0.425, allocations: 206.6 kB / 0.5048 GB, free: 34 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.425, allocations: 0.5938 kB / 0.5048 GB, free: 34 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00102/0.426, allocations: 236.2 kB / 0.505 GB, free: 34 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.0005423/0.4266, allocations: 291.6 kB / 0.5053 GB, free: 33.91 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001265/0.4279, allocations: 0.6828 MB / 0.5059 GB, free: 33.68 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.4279, allocations: 0 / 0.5059 GB, free: 33.68 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008768/0.4288, allocations: 0.6284 MB / 0.5065 GB, free: 33.34 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006928/0.4295, allocations: 100.1 kB / 0.5066 GB, free: 33.34 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001696/0.4312, allocations: 1.038 MB / 0.5076 GB, free: 32.88 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003245/0.4315, allocations: 0.8295 MB / 0.5085 GB, free: 32.18 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001448/0.4317, allocations: 75.48 kB / 0.5085 GB, free: 32.17 MB / 382.1 MB Notification: Performance of SimCode: time 4.21e-07/0.4317, allocations: 0 / 0.5085 GB, free: 32.17 MB / 382.1 MB Notification: Performance of Templates: time 0.01688/0.4485, allocations: 12.1 MB / 0.5203 GB, free: 28.94 MB / 382.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)