Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck.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.Media.Examples.WaterDerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck") translateModel(BuildingSystems.Media.Examples.WaterDerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001054/0.001053, allocations: 105 kB / 16.36 MB, free: 5.828 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.001162/0.001162, allocations: 195.4 kB / 17.29 MB, free: 5.484 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.257/1.257, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002134/0.002134, allocations: 290.5 kB / 291.4 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9089/0.9089, allocations: 169.3 MB / 0.4989 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001664/0.001664, allocations: 90.95 kB / 0.5966 GB, free: 14.45 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1421/0.1438, allocations: 86.97 MB / 0.6816 GB, free: 7.465 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.WaterDerivativeCheck): time 0.002111/0.1459, allocations: 1.268 MB / 0.6828 GB, free: 6.188 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003163/0.1491, allocations: 3.253 MB / 0.686 GB, free: 2.914 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.964e-05/0.1491, allocations: 0 / 0.686 GB, free: 2.914 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.412e-05/0.1492, allocations: 0 / 0.686 GB, free: 2.914 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.574e-05/0.1492, allocations: 7.938 kB / 0.686 GB, free: 2.906 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004108/0.1496, allocations: 103.5 kB / 0.6861 GB, free: 2.805 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.4e-05/0.1497, allocations: 39.84 kB / 0.6861 GB, free: 2.766 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.203e-05/0.1497, allocations: 8 kB / 0.6861 GB, free: 2.758 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.497e-05/0.1498, allocations: 15.92 kB / 0.6862 GB, free: 2.742 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.014e-05/0.1498, allocations: 19.97 kB / 0.6862 GB, free: 2.723 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.062e-05/0.1498, allocations: 4 kB / 0.6862 GB, free: 2.719 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001905/0.15, allocations: 71.81 kB / 0.6863 GB, free: 2.648 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 2.113e-05/0.1501, allocations: 7.938 kB / 0.6863 GB, free: 2.641 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.66e-05/0.1501, allocations: 15.97 kB / 0.6863 GB, free: 2.625 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001534/0.1503, allocations: 79.73 kB / 0.6864 GB, free: 2.547 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.507e-06/0.1503, allocations: 0 / 0.6864 GB, free: 2.547 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1503, allocations: 3.938 kB / 0.6864 GB, free: 2.543 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.058e-06/0.1503, allocations: 0 / 0.6864 GB, free: 2.543 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003405/0.1506, allocations: 347.5 kB / 0.6867 GB, free: 2.156 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.336e-05/0.1507, allocations: 12.03 kB / 0.6867 GB, free: 2.145 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.22e-05/0.1508, allocations: 12.78 kB / 0.6867 GB, free: 2.133 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.139e-05/0.1509, allocations: 160.4 kB / 0.6869 GB, free: 1.938 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.705e-05/0.1509, allocations: 4.375 kB / 0.6869 GB, free: 1.934 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.25e-05/0.1509, allocations: 12.36 kB / 0.6869 GB, free: 1.922 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001067/0.151, allocations: 57.8 kB / 0.6869 GB, free: 1.859 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.663e-06/0.151, allocations: 0 / 0.6869 GB, free: 1.859 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.19e-05/0.151, allocations: 11.97 kB / 0.6869 GB, free: 1.848 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.997e-06/0.1511, allocations: 0 / 0.6869 GB, free: 1.848 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.904e-05/0.1511, allocations: 23.92 kB / 0.687 GB, free: 1.824 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001479/0.1513, allocations: 153.7 kB / 0.6871 GB, free: 1.625 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.972e-05/0.1513, allocations: 54.55 kB / 0.6872 GB, free: 1.562 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.522e-05/0.1514, allocations: 20.86 kB / 0.6872 GB, free: 1.539 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005975/0.152, allocations: 0.5909 MB / 0.6878 GB, free: 0.8398 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.227e-05/0.152, allocations: 42.48 kB / 0.6878 GB, free: 0.7891 MB / 494.1 MB Notification: Performance of pre-optimization done (n=5): time 1.132e-06/0.152, allocations: 0 / 0.6878 GB, free: 0.7891 MB / 494.1 MB Notification: Performance of matching and sorting (n=7): time 0.000488/0.1525, allocations: 298.2 kB / 0.6881 GB, free: 456 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.475e-05/0.1526, allocations: 51.41 kB / 0.6881 GB, free: 392 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.428e-05/0.1526, allocations: 97.86 kB / 0.6882 GB, free: 284 kB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.241e-05/0.1526, allocations: 29.7 kB / 0.6883 GB, free: 248 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.503e-05/0.1527, allocations: 88.03 kB / 0.6883 GB, free: 156 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.678e-05/0.1527, allocations: 27.56 kB / 0.6884 GB, free: 128 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.653e-05/0.1527, allocations: 29.7 kB / 0.6884 GB, free: 92 kB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.2126/0.3654, allocations: 319.6 kB / 0.6887 GB, free: 18.53 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.506e-05/0.3654, allocations: 7.969 kB / 0.6887 GB, free: 18.53 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.312e-05/0.3655, allocations: 56.86 kB / 0.6888 GB, free: 18.48 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.151e-05/0.3656, allocations: 75.94 kB / 0.6888 GB, free: 18.44 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.3656, allocations: 0.5625 kB / 0.6888 GB, free: 18.44 MB / 494.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001451/0.3658, allocations: 94.3 kB / 0.6889 GB, free: 18.41 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.645e-05/0.3658, allocations: 9.375 kB / 0.6889 GB, free: 18.41 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.3658, allocations: 1.094 kB / 0.6889 GB, free: 18.41 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.578e-05/0.3658, allocations: 3.688 kB / 0.6889 GB, free: 18.41 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.939e-05/0.3659, allocations: 25.41 kB / 0.689 GB, free: 18.41 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.614e-06/0.3659, allocations: 6.266 kB / 0.689 GB, free: 18.41 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.435e-05/0.366, allocations: 2.953 kB / 0.689 GB, free: 18.41 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.864e-06/0.366, allocations: 7.125 kB / 0.689 GB, free: 18.41 MB / 494.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.49e-05/0.366, allocations: 118.4 kB / 0.6891 GB, free: 18.29 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.051e-05/0.3661, allocations: 3.562 kB / 0.6891 GB, free: 18.29 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.716e-05/0.3661, allocations: 12.06 kB / 0.6891 GB, free: 18.28 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.957e-06/0.3661, allocations: 2.156 kB / 0.6891 GB, free: 18.28 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.3661, allocations: 8.469 kB / 0.6891 GB, free: 18.28 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.945e-06/0.3661, allocations: 0.5625 kB / 0.6891 GB, free: 18.28 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002032/0.3663, allocations: 174.1 kB / 0.6893 GB, free: 18.09 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.3663, allocations: 1.312 kB / 0.6893 GB, free: 18.09 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.277e-05/0.3664, allocations: 14.11 kB / 0.6893 GB, free: 18.09 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.624e-06/0.3664, allocations: 1.453 kB / 0.6893 GB, free: 18.09 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.193e-06/0.3665, allocations: 0.625 kB / 0.6893 GB, free: 18.09 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.064e-06/0.3665, allocations: 1.297 kB / 0.6893 GB, free: 18.09 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.3665, allocations: 5.125 kB / 0.6893 GB, free: 18.09 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001443/0.3666, allocations: 179.8 kB / 0.6895 GB, free: 17.95 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.159e-05/0.3667, allocations: 84.58 kB / 0.6896 GB, free: 17.86 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.375e-05/0.3667, allocations: 2.156 kB / 0.6896 GB, free: 17.86 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001029/0.3668, allocations: 5.859 kB / 0.6896 GB, free: 17.86 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.563e-05/0.3668, allocations: 9.031 kB / 0.6896 GB, free: 17.86 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.163e-06/0.3668, allocations: 2.688 kB / 0.6896 GB, free: 17.86 MB / 494.1 MB Notification: Performance of sorting global known variables: time 1.907e-05/0.3669, allocations: 79.23 kB / 0.6897 GB, free: 17.78 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3669, allocations: 0.9688 kB / 0.6897 GB, free: 17.78 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000237/0.3671, allocations: 14.53 kB / 0.6897 GB, free: 17.78 MB / 494.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (hLiqSym,cpSym,cvSym) * 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 (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 9.028e-05/0.3672, allocations: 104.7 kB / 0.6898 GB, free: 17.7 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 9.858e-05/0.3673, allocations: 41.67 kB / 0.6898 GB, free: 17.69 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.3673, allocations: 1.281 kB / 0.6898 GB, free: 17.69 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 2.312e-05/0.3673, allocations: 20.59 kB / 0.6898 GB, free: 17.69 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002309/0.3676, allocations: 8.578 kB / 0.6898 GB, free: 17.68 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004589/0.368, allocations: 325.3 kB / 0.6901 GB, free: 17.5 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.362e-05/0.3681, allocations: 0.683 MB / 0.6908 GB, free: 16.8 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 4.123e-05/0.3682, allocations: 9.016 kB / 0.6908 GB, free: 16.8 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.846e-05/0.3682, allocations: 14.44 kB / 0.6908 GB, free: 16.79 MB / 494.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3682, allocations: 0 / 0.6908 GB, free: 16.79 MB / 494.1 MB Notification: Performance of Templates: time 0.002561/0.3708, allocations: 0.6153 MB / 0.6914 GB, free: 16.74 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck.makefile (rm -f BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck.pipe >> ../files/BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck.sim & ./BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck.pipe 2>&1)