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.001282/0.001282, allocations: 107.7 kB / 16.27 MB, free: 6.402 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.001271/0.001272, allocations: 191 kB / 17.2 MB, free: 5.938 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.236/1.236, allocations: 222.9 MB / 240.9 MB, free: 15.3 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002098/0.002099, allocations: 292 kB / 291.3 MB, free: 14.56 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.904/0.904, allocations: 169.3 MB / 0.4988 GB, free: 4.504 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001852/0.001852, allocations: 92.42 kB / 0.5959 GB, free: 15.14 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1516/0.1535, allocations: 86.98 MB / 0.6808 GB, free: 8.176 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.WaterDerivativeCheck): time 0.002325/0.1559, allocations: 1.266 MB / 0.6821 GB, free: 6.895 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003463/0.1594, allocations: 3.253 MB / 0.6852 GB, free: 3.621 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.773e-05/0.1594, allocations: 0 / 0.6852 GB, free: 3.621 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.667e-05/0.1594, allocations: 0 / 0.6852 GB, free: 3.621 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.219e-05/0.1595, allocations: 3.938 kB / 0.6852 GB, free: 3.617 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004647/0.16, allocations: 103.5 kB / 0.6853 GB, free: 3.516 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.582e-05/0.1601, allocations: 39.84 kB / 0.6854 GB, free: 3.477 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.97e-05/0.1601, allocations: 7.984 kB / 0.6854 GB, free: 3.469 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.809e-05/0.1602, allocations: 12 kB / 0.6854 GB, free: 3.457 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.212e-05/0.1602, allocations: 23.91 kB / 0.6854 GB, free: 3.434 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.036e-05/0.1602, allocations: 0 / 0.6854 GB, free: 3.434 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002118/0.1605, allocations: 79.81 kB / 0.6855 GB, free: 3.355 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.67e-05/0.1605, allocations: 15.91 kB / 0.6855 GB, free: 3.34 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.788e-05/0.1605, allocations: 11.94 kB / 0.6855 GB, free: 3.328 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001624/0.1607, allocations: 68.08 kB / 0.6856 GB, free: 3.262 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.1607, allocations: 3.984 kB / 0.6856 GB, free: 3.258 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.1607, allocations: 4 kB / 0.6856 GB, free: 3.254 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.017e-06/0.1607, allocations: 0 / 0.6856 GB, free: 3.254 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.0003622/0.1611, allocations: 347.5 kB / 0.6859 GB, free: 2.867 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.372e-05/0.1611, allocations: 12.03 kB / 0.6859 GB, free: 2.855 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.847e-05/0.1612, allocations: 8.844 kB / 0.6859 GB, free: 2.848 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.511e-05/0.1613, allocations: 168.3 kB / 0.6861 GB, free: 2.645 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.328e-05/0.1613, allocations: 4.375 kB / 0.6861 GB, free: 2.641 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.368e-05/0.1614, allocations: 4.375 kB / 0.6861 GB, free: 2.637 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001164/0.1615, allocations: 61.8 kB / 0.6862 GB, free: 2.57 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.1615, allocations: 3.984 kB / 0.6862 GB, free: 2.566 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.201e-05/0.1615, allocations: 0 / 0.6862 GB, free: 2.566 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.179e-06/0.1615, allocations: 4 kB / 0.6862 GB, free: 2.562 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.346e-05/0.1616, allocations: 19.92 kB / 0.6862 GB, free: 2.543 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001529/0.1618, allocations: 161.7 kB / 0.6864 GB, free: 2.336 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.725e-05/0.1619, allocations: 50.56 kB / 0.6864 GB, free: 2.277 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.78e-05/0.1619, allocations: 16.86 kB / 0.6864 GB, free: 2.258 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006491/0.1625, allocations: 0.5987 MB / 0.687 GB, free: 1.551 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.368e-05/0.1626, allocations: 34.56 kB / 0.687 GB, free: 1.508 MB / 494.1 MB Notification: Performance of pre-optimization done (n=5): time 1.102e-06/0.1626, allocations: 0 / 0.687 GB, free: 1.508 MB / 494.1 MB Notification: Performance of matching and sorting (n=7): time 0.0005231/0.1631, allocations: 298.2 kB / 0.6873 GB, free: 1.164 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.421e-05/0.1632, allocations: 55.41 kB / 0.6874 GB, free: 1.098 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.482e-05/0.1632, allocations: 101.8 kB / 0.6875 GB, free: 0.9883 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.418e-05/0.1633, allocations: 25.7 kB / 0.6875 GB, free: 0.957 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.019e-05/0.1633, allocations: 88.05 kB / 0.6876 GB, free: 0.8672 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.953e-05/0.1633, allocations: 31.62 kB / 0.6876 GB, free: 0.8359 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.861e-05/0.1634, allocations: 29.7 kB / 0.6876 GB, free: 0.8008 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.752e-05/0.1635, allocations: 318.8 kB / 0.6879 GB, free: 492 kB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.846e-05/0.1635, allocations: 15.98 kB / 0.688 GB, free: 476 kB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.187e-05/0.1636, allocations: 57.08 kB / 0.688 GB, free: 400 kB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.822e-05/0.1636, allocations: 73.03 kB / 0.6881 GB, free: 308 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.042e-06/0.1636, allocations: 0 / 0.6881 GB, free: 308 kB / 494.1 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000126/0.1638, allocations: 93.55 kB / 0.6882 GB, free: 208 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.222e-05/0.1638, allocations: 4 kB / 0.6882 GB, free: 204 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.438e-06/0.1638, allocations: 0 / 0.6882 GB, free: 204 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.321e-05/0.1638, allocations: 4 kB / 0.6882 GB, free: 200 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.626e-05/0.1639, allocations: 23.98 kB / 0.6882 GB, free: 176 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.694e-06/0.1639, allocations: 4 kB / 0.6882 GB, free: 172 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.24e-05/0.164, allocations: 12.44 kB / 0.6882 GB, free: 160 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.392e-06/0.164, allocations: 4 kB / 0.6882 GB, free: 156 kB / 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 6.826e-05/0.1641, allocations: 117.8 kB / 0.6883 GB, free: 28 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.918e-05/0.1641, allocations: 7.906 kB / 0.6883 GB, free: 20 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.73e-05/0.1641, allocations: 12.23 kB / 0.6884 GB, free: 8 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.623e-06/0.1641, allocations: 0 / 0.6884 GB, free: 8 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.1641, allocations: 4 kB / 0.6884 GB, free: 4 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.2465/0.4106, allocations: 4.188 kB / 0.6884 GB, free: 18.61 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002789/0.411, allocations: 173.1 kB / 0.6885 GB, free: 18.42 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.486e-06/0.411, allocations: 1.828 kB / 0.6885 GB, free: 18.42 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.544e-05/0.4111, allocations: 14.83 kB / 0.6885 GB, free: 18.42 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.4111, allocations: 2.656 kB / 0.6885 GB, free: 18.42 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.646e-06/0.4111, allocations: 1.406 kB / 0.6885 GB, free: 18.42 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.4111, allocations: 0.5 kB / 0.6885 GB, free: 18.42 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.813e-06/0.4111, allocations: 1.312 kB / 0.6885 GB, free: 18.42 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001937/0.4113, allocations: 171.7 kB / 0.6887 GB, free: 18.29 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.645e-05/0.4114, allocations: 82.77 kB / 0.6888 GB, free: 18.2 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.563e-05/0.4114, allocations: 4.828 kB / 0.6888 GB, free: 18.2 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00011/0.4115, allocations: 6.422 kB / 0.6888 GB, free: 18.2 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.737e-05/0.4115, allocations: 4.25 kB / 0.6888 GB, free: 18.2 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.287e-06/0.4115, allocations: 10.56 kB / 0.6888 GB, free: 18.2 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.112e-05/0.4116, allocations: 78.52 kB / 0.6889 GB, free: 18.12 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4116, allocations: 0.9062 kB / 0.6889 GB, free: 18.12 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002656/0.4118, allocations: 13.03 kB / 0.6889 GB, free: 18.12 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 0.0001204/0.412, allocations: 102 kB / 0.689 GB, free: 18.03 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001193/0.4121, allocations: 54 kB / 0.6891 GB, free: 18.03 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.4121, allocations: 0.6875 kB / 0.6891 GB, free: 18.03 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 2.498e-05/0.4121, allocations: 17.14 kB / 0.6891 GB, free: 18.03 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002798/0.4124, allocations: 9.578 kB / 0.6891 GB, free: 18.03 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000493/0.4129, allocations: 349.9 kB / 0.6894 GB, free: 17.82 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.474e-05/0.413, allocations: 0.6875 MB / 0.6901 GB, free: 17.12 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.269e-05/0.413, allocations: 11.34 kB / 0.6901 GB, free: 17.12 MB / 494.1 MB Notification: Performance of SimCode: time 2.01e-07/0.413, allocations: 0.9375 kB / 0.6901 GB, free: 17.12 MB / 494.1 MB Notification: Performance of Templates: time 0.001954/0.415, allocations: 0.7709 MB / 0.6908 GB, free: 17.08 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 -lv LOG_STATS > BuildingSystems_BuildingSystems.Media.Examples.WaterDerivativeCheck.pipe 2>&1)