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.1032/0.1032, allocations: 15.29 MB / 31.08 MB, free: 3.113 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.001414/0.001414, allocations: 202 kB / 36.14 MB, free: 2.141 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.366/1.366, allocations: 222.9 MB / 264 MB, free: 5.008 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.00106/0.00106, allocations: 117.5 kB / 318.4 MB, free: 3.43 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009997/0.0009997, allocations: 55.11 kB / 382.7 MB, free: 48.99 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09435/0.09536, allocations: 53.62 MB / 436.3 MB, free: 1.035 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Chemical.Examples.HeatingOfWater): time 0.004772/0.1002, allocations: 3.759 MB / 440.1 MB, free: 13.25 MB / 314.7 MB Notification: Performance of NFInst.instExpressions: time 0.005424/0.1056, allocations: 4.71 MB / 444.8 MB, free: 8.52 MB / 314.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003376/0.106, allocations: 11.94 kB / 444.8 MB, free: 8.508 MB / 314.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003644/0.1064, allocations: 95.34 kB / 444.9 MB, free: 8.414 MB / 314.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0008188/0.1072, allocations: 381.8 kB / 445.3 MB, free: 8.039 MB / 314.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001016/0.1083, allocations: 473.6 kB / 445.7 MB, free: 7.574 MB / 314.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005441/0.1088, allocations: 0.561 MB / 446.3 MB, free: 7.012 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003557/0.1092, allocations: 318.2 kB / 446.6 MB, free: 6.695 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002697/0.1095, allocations: 271.2 kB / 446.9 MB, free: 6.43 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000341/0.1098, allocations: 302.8 kB / 447.2 MB, free: 6.133 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 6.51e-05/0.1099, allocations: 39.94 kB / 447.2 MB, free: 6.094 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009099/0.1108, allocations: 443.2 kB / 447.6 MB, free: 5.66 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001041/0.1109, allocations: 99.67 kB / 447.7 MB, free: 5.562 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002181/0.1111, allocations: 266.7 kB / 448 MB, free: 5.301 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001115/0.1123, allocations: 0.9653 MB / 449 MB, free: 4.332 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.168e-06/0.1123, allocations: 0 / 449 MB, free: 4.332 MB / 314.7 MB Notification: Performance of FrontEnd: time 9.41e-07/0.1123, allocations: 0 / 449 MB, free: 4.332 MB / 314.7 MB Notification: Performance of Transformations before backend: time 6.582e-06/0.1123, allocations: 0 / 449 MB, free: 4.332 MB / 314.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.001286/0.1136, allocations: 0.8654 MB / 449.8 MB, free: 3.418 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.836e-05/0.1136, allocations: 12.88 kB / 449.8 MB, free: 3.406 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003345/0.114, allocations: 88.25 kB / 449.9 MB, free: 3.32 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004204/0.1144, allocations: 354.4 kB / 450.3 MB, free: 2.934 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.281e-05/0.1144, allocations: 33.38 kB / 450.3 MB, free: 2.902 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.412e-05/0.1145, allocations: 52.28 kB / 450.4 MB, free: 2.852 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00066/0.1152, allocations: 458.7 kB / 450.8 MB, free: 2.395 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.1152, allocations: 0 / 450.8 MB, free: 2.395 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.874e-05/0.1153, allocations: 16 kB / 450.8 MB, free: 2.379 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.069e-05/0.1153, allocations: 12 kB / 450.8 MB, free: 2.367 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007482/0.116, allocations: 0.5114 MB / 451.3 MB, free: 1.855 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002094/0.1181, allocations: 1.533 MB / 452.9 MB, free: 224 kB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006903/0.1188, allocations: 362.6 kB / 453.2 MB, free: 15.86 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000171/0.119, allocations: 124.8 kB / 453.4 MB, free: 15.73 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001992/0.121, allocations: 1.588 MB / 454.9 MB, free: 13.96 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.29e-05/0.1211, allocations: 30.56 kB / 455 MB, free: 13.92 MB / 330.7 MB Notification: Performance of pre-optimization done (n=22): time 1.312e-06/0.1211, allocations: 0 / 455 MB, free: 13.92 MB / 330.7 MB Notification: Performance of matching and sorting (n=31): time 0.01328/0.1343, allocations: 2.332 MB / 457.3 MB, free: 11.48 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.356e-05/0.1344, allocations: 59.41 kB / 457.4 MB, free: 11.41 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003368/0.1348, allocations: 292.5 kB / 457.6 MB, free: 11.12 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.968e-05/0.1348, allocations: 29.7 kB / 457.7 MB, free: 11.08 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001699/0.135, allocations: 275.4 kB / 457.9 MB, free: 10.81 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.737e-05/0.1351, allocations: 110.4 kB / 458.1 MB, free: 10.7 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001372/0.1352, allocations: 86.03 kB / 458.1 MB, free: 10.61 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001333/0.1354, allocations: 350.7 kB / 458.5 MB, free: 10.26 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002406/0.1356, allocations: 132.8 kB / 458.6 MB, free: 10.12 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000328/0.1359, allocations: 264 kB / 458.9 MB, free: 9.812 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000607/0.1366, allocations: 432.8 kB / 459.3 MB, free: 9.336 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.1366, allocations: 0 / 459.3 MB, free: 9.336 MB / 330.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.003937/0.1405, allocations: 0.8122 MB / 460.1 MB, free: 8.512 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.728e-05/0.1406, allocations: 16 kB / 460.1 MB, free: 8.496 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.248e-05/0.1406, allocations: 4 kB / 460.1 MB, free: 8.492 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.003424/0.144, allocations: 405.2 kB / 460.5 MB, free: 8.09 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002673/0.1443, allocations: 87.89 kB / 460.6 MB, free: 8.004 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006627/0.1509, allocations: 3.701 MB / 464.3 MB, free: 4.031 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004648/0.1514, allocations: 31.97 kB / 464.3 MB, free: 4 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.135e-05/0.1515, allocations: 19.98 kB / 464.4 MB, free: 3.98 MB / 330.7 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.0003416/0.1518, allocations: 174 kB / 464.5 MB, free: 3.801 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001391/0.152, allocations: 35.61 kB / 464.6 MB, free: 3.766 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004627/0.1566, allocations: 0.835 MB / 465.4 MB, free: 2.91 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.01e-05/0.1566, allocations: 4 kB / 465.4 MB, free: 2.906 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.361e-06/0.1567, allocations: 0 / 465.4 MB, free: 2.906 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.145e-06/0.1567, allocations: 7.984 kB / 465.4 MB, free: 2.898 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000919/0.1576, allocations: 0.6233 MB / 466 MB, free: 2.191 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.806e-06/0.1576, allocations: 4 kB / 466 MB, free: 2.188 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001804/0.1578, allocations: 51.92 kB / 466.1 MB, free: 2.137 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004377/0.1622, allocations: 482.2 kB / 466.6 MB, free: 1.656 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.137e-05/0.1623, allocations: 12 kB / 466.6 MB, free: 1.645 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006971/0.1692, allocations: 4.921 MB / 471.5 MB, free: 12.32 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.816e-06/0.1693, allocations: 3.938 kB / 471.5 MB, free: 12.32 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.07322/0.2425, allocations: 15.12 MB / 486.6 MB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001195/0.2426, allocations: 108.8 kB / 486.7 MB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.877e-05/0.2427, allocations: 8 kB / 486.7 MB, free: 12.44 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003282/0.2431, allocations: 23.95 kB / 486.8 MB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001552/0.2432, allocations: 47.88 kB / 486.8 MB, free: 12.37 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.725e-05/0.2433, allocations: 12 kB / 486.8 MB, free: 12.36 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002304/0.2435, allocations: 211 kB / 487 MB, free: 12.15 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2435, allocations: 3.938 kB / 487 MB, free: 12.14 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001188/0.2447, allocations: 335.9 kB / 487.3 MB, free: 11.82 MB / 362.7 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.000532/0.2453, allocations: 278.9 kB / 487.6 MB, free: 11.54 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001409/0.2467, allocations: 0.6702 MB / 488.3 MB, free: 10.84 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.511e-06/0.2467, allocations: 0 / 488.3 MB, free: 10.84 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009277/0.2476, allocations: 0.6217 MB / 488.9 MB, free: 10.18 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00069/0.2483, allocations: 104.1 kB / 489 MB, free: 10.08 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003299/0.2516, allocations: 1.97 MB / 491 MB, free: 8.012 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000448/0.2521, allocations: 0.8392 MB / 491.8 MB, free: 7.148 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0003371/0.2525, allocations: 83.41 kB / 491.9 MB, free: 7.062 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001222/0.2526, allocations: 55.41 kB / 492 MB, free: 7.008 MB / 362.7 MB Notification: Performance of SimCode: time 5.82e-07/0.2526, allocations: 0 / 492 MB, free: 7.008 MB / 362.7 MB Notification: Performance of Templates: time 0.02578/0.2784, allocations: 16.54 MB / 0.4966 GB, free: 6.52 MB / 378.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)