Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.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(BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation") translateModel(BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007893/0.0007893, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.0008887/0.0008887, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.345/1.345, allocations: 223.3 MB / 240 MB, free: 5.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00174/0.00174, allocations: 273.4 kB / 291.4 MB, free: 1.953 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.934/0.934, allocations: 169.5 MB / 0.5 GB, free: 14.23 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003983/0.0003983, allocations: 14.56 kB / 0.598 GB, free: 28.3 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1369/0.1373, allocations: 88.55 MB / 0.6845 GB, free: 15.46 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation): time 0.01842/0.1557, allocations: 19.1 MB / 0.7031 GB, free: 12.31 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.006765/0.1625, allocations: 5.03 MB / 0.7081 GB, free: 7.27 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004542/0.163, allocations: 19.81 kB / 0.7081 GB, free: 7.25 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0006984/0.1637, allocations: 258.4 kB / 0.7083 GB, free: 6.996 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.001639/0.1654, allocations: 0.7566 MB / 0.7091 GB, free: 6.238 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.001869/0.1673, allocations: 0.7571 MB / 0.7098 GB, free: 5.488 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.002034/0.1693, allocations: 1.953 MB / 0.7117 GB, free: 3.531 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0005764/0.1699, allocations: 415 kB / 0.7121 GB, free: 3.113 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0008911/0.1708, allocations: 0.5913 MB / 0.7127 GB, free: 2.52 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005712/0.1714, allocations: 462 kB / 0.7131 GB, free: 2.066 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 7.082e-05/0.1715, allocations: 20 kB / 0.7131 GB, free: 2.047 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001559/0.173, allocations: 0.959 MB / 0.7141 GB, free: 1.086 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001368/0.1732, allocations: 115.5 kB / 0.7142 GB, free: 0.9727 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0001486/0.1733, allocations: 141.4 kB / 0.7143 GB, free: 0.8281 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0009379/0.1743, allocations: 0.8224 MB / 0.7151 GB, free: 4 kB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1743, allocations: 0 / 0.7151 GB, free: 4 kB / 0.4981 GB Notification: Performance of FrontEnd: time 1.322e-06/0.1743, allocations: 0 / 0.7151 GB, free: 4 kB / 0.4981 GB Notification: Performance of Transformations before backend: time 9.668e-06/0.1743, allocations: 0 / 0.7151 GB, free: 4 kB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.001402/0.1757, allocations: 0.9363 MB / 0.716 GB, free: 15.01 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.041e-05/0.1758, allocations: 8.031 kB / 0.716 GB, free: 15 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008446/0.1766, allocations: 199 kB / 0.7162 GB, free: 14.81 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009756/0.1776, allocations: 0.5453 MB / 0.7168 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003117/0.1779, allocations: 96.94 kB / 0.7169 GB, free: 14.13 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.193e-05/0.178, allocations: 36 kB / 0.7169 GB, free: 14.1 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009473/0.1789, allocations: 0.5038 MB / 0.7174 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.393e-05/0.179, allocations: 0 / 0.7174 GB, free: 13.57 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.376e-05/0.179, allocations: 12 kB / 0.7174 GB, free: 13.56 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.618e-05/0.179, allocations: 16 kB / 0.7174 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009869/0.18, allocations: 426.6 kB / 0.7178 GB, free: 13.13 MB / 0.5137 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002754/0.1828, allocations: 2.293 MB / 0.7201 GB, free: 10.62 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001005/0.1838, allocations: 398.9 kB / 0.7204 GB, free: 10.22 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004914/0.1843, allocations: 241 kB / 0.7207 GB, free: 9.98 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002783/0.1846, allocations: 340.6 kB / 0.721 GB, free: 9.574 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006054/0.1852, allocations: 302.9 kB / 0.7213 GB, free: 9.262 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=33): time 2.033e-06/0.1852, allocations: 0 / 0.7213 GB, free: 9.262 MB / 0.5137 GB Notification: Performance of matching and sorting (n=33): time 0.002155/0.1874, allocations: 0.8894 MB / 0.7221 GB, free: 8.34 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.066e-05/0.1875, allocations: 81.11 kB / 0.7222 GB, free: 8.242 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005294/0.188, allocations: 491 kB / 0.7227 GB, free: 7.754 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 4.879e-05/0.1881, allocations: 33.7 kB / 0.7227 GB, free: 7.715 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002159/0.1883, allocations: 292.4 kB / 0.723 GB, free: 7.426 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 9.256e-05/0.1884, allocations: 102.5 kB / 0.7231 GB, free: 7.324 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.104e-05/0.1884, allocations: 4 kB / 0.7231 GB, free: 7.32 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001567/0.1886, allocations: 362.8 kB / 0.7235 GB, free: 6.957 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004413/0.189, allocations: 175.9 kB / 0.7236 GB, free: 6.785 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000502/0.1895, allocations: 273.2 kB / 0.7239 GB, free: 6.484 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004718/0.19, allocations: 227.3 kB / 0.7241 GB, free: 6.258 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.548e-06/0.19, allocations: 4 kB / 0.7241 GB, free: 6.254 MB / 0.5137 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001367/0.1914, allocations: 0.6277 MB / 0.7247 GB, free: 5.609 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001152/0.1915, allocations: 175.9 kB / 0.7249 GB, free: 5.406 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.45e-06/0.1916, allocations: 0 / 0.7249 GB, free: 5.406 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003197/0.1919, allocations: 68.81 kB / 0.7249 GB, free: 5.336 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000364/0.1923, allocations: 91.88 kB / 0.725 GB, free: 5.246 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004358/0.1927, allocations: 0.5914 MB / 0.7256 GB, free: 4.629 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004767/0.1932, allocations: 79.61 kB / 0.7257 GB, free: 4.551 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.406e-05/0.1932, allocations: 19.98 kB / 0.7257 GB, free: 4.531 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 5.38e-06/0.1933, allocations: 4 kB / 0.7257 GB, free: 4.527 MB / 0.5137 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001213/0.1945, allocations: 0.5605 MB / 0.7263 GB, free: 3.957 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.1945, allocations: 4 kB / 0.7263 GB, free: 3.953 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001341/0.1946, allocations: 52.72 kB / 0.7263 GB, free: 3.898 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00035/0.195, allocations: 84.09 kB / 0.7264 GB, free: 3.816 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00146/0.1965, allocations: 1.623 MB / 0.728 GB, free: 2.043 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004547/0.1969, allocations: 75.69 kB / 0.7281 GB, free: 1.969 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.534e-05/0.197, allocations: 16 kB / 0.7281 GB, free: 1.953 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,$PRE.QSen_flow.nextEvent,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (32): * Single equations (assignments): 30 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0002902/0.1973, allocations: 303.7 kB / 0.7284 GB, free: 1.641 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.689e-05/0.1974, allocations: 63.25 kB / 0.7284 GB, free: 1.578 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001392/0.1988, allocations: 0.6695 MB / 0.7291 GB, free: 0.8906 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.294e-06/0.1988, allocations: 3.984 kB / 0.7291 GB, free: 0.8867 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.503e-06/0.1988, allocations: 0 / 0.7291 GB, free: 0.8867 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.001264/0.2001, allocations: 0.8168 MB / 0.7299 GB, free: 15.99 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002124/0.2022, allocations: 1.327 MB / 0.7312 GB, free: 14.59 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.869e-06/0.2022, allocations: 4.109 kB / 0.7312 GB, free: 14.59 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003296/0.2025, allocations: 67.95 kB / 0.7312 GB, free: 14.52 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000121/0.2027, allocations: 44.88 kB / 0.7313 GB, free: 14.47 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.482e-05/0.2027, allocations: 15.98 kB / 0.7313 GB, free: 14.46 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003596/0.2031, allocations: 0.5757 MB / 0.7319 GB, free: 13.86 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.327e-06/0.2031, allocations: 3.953 kB / 0.7319 GB, free: 13.85 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001812/0.2049, allocations: 0.9924 MB / 0.7328 GB, free: 12.82 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002257/0.2052, allocations: 200.3 kB / 0.733 GB, free: 12.61 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.98e-05/0.2052, allocations: 11.94 kB / 0.733 GB, free: 12.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005078/0.2058, allocations: 59.94 kB / 0.7331 GB, free: 12.54 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.944e-05/0.2058, allocations: 31.89 kB / 0.7331 GB, free: 12.51 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.41e-05/0.2059, allocations: 19.98 kB / 0.7331 GB, free: 12.49 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0003664/0.2062, allocations: 342.8 kB / 0.7335 GB, free: 12.16 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.6e-07/0.2063, allocations: 4 kB / 0.7335 GB, free: 12.15 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.001048/0.2073, allocations: 343.4 kB / 0.7338 GB, free: 11.82 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 1 (dyn.U) * Number of discrete variables: 6 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 6 (QSen_flow.nextEvent,QSen_flow.last,QSen_flow.nextEventScaled,QSen_flow.b,QSen_flow.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.0006621/0.208, allocations: 303.5 kB / 0.7341 GB, free: 11.52 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002044/0.21, allocations: 0.9935 MB / 0.7351 GB, free: 10.5 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.2101, allocations: 0 / 0.7351 GB, free: 10.5 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0006169/0.2107, allocations: 335.3 kB / 0.7354 GB, free: 10.16 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001273/0.212, allocations: 257.3 kB / 0.7356 GB, free: 9.91 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002195/0.2142, allocations: 1.337 MB / 0.7369 GB, free: 8.535 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004462/0.2146, allocations: 0.8825 MB / 0.7378 GB, free: 7.625 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0005115/0.2151, allocations: 132.4 kB / 0.7379 GB, free: 7.492 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001128/0.2153, allocations: 43.42 kB / 0.738 GB, free: 7.449 MB / 0.5294 GB Notification: Performance of SimCode: time 2.3e-07/0.2153, allocations: 0 / 0.738 GB, free: 7.449 MB / 0.5294 GB Notification: Performance of Templates: time 0.01798/0.2333, allocations: 10.67 MB / 0.7484 GB, free: 12.92 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation.makefile (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation.sim & ./BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.ConservationEquation.pipe 2>&1)