Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Media.Examples.WaterDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: translateModel(Buildings.Media.Examples.WaterDerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Media.Examples.WaterDerivativeCheck") translateModel(Buildings.Media.Examples.WaterDerivativeCheck,tolerance=1e-08,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Media.Examples.WaterDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.735/1.735, allocations: 292.3 MB / 308.1 MB, free: 4.312 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001359/0.001359, allocations: 188.5 kB / 376.9 MB, free: 1.816 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.846/1.846, allocations: 205 MB / 0.6353 GB, free: 9.82 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001034/0.001034, allocations: 92.16 kB / 0.7479 GB, free: 61.28 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.001111/0.001111, allocations: 55.92 kB / 0.8703 GB, free: 13.13 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3125/0.3136, allocations: 114.5 MB / 0.9822 GB, free: 10.43 MB / 0.7136 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterDerivativeCheck): time 0.003019/0.3167, allocations: 1.317 MB / 0.9835 GB, free: 9.09 MB / 0.7136 GB Notification: Performance of NFInst.instExpressions: time 0.004837/0.3216, allocations: 3.246 MB / 0.9867 GB, free: 5.82 MB / 0.7136 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.611e-05/0.3217, allocations: 0 / 0.9867 GB, free: 5.82 MB / 0.7136 GB Notification: Performance of NFTyping.typeComponents: time 2.771e-05/0.3217, allocations: 0 / 0.9867 GB, free: 5.82 MB / 0.7136 GB Notification: Performance of NFTyping.typeBindings: time 7.273e-05/0.3218, allocations: 11.94 kB / 0.9867 GB, free: 5.809 MB / 0.7136 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007029/0.3225, allocations: 91.61 kB / 0.9868 GB, free: 5.719 MB / 0.7136 GB Notification: Performance of NFFlatten.flatten: time 8.937e-05/0.3226, allocations: 35.89 kB / 0.9868 GB, free: 5.684 MB / 0.7136 GB Notification: Performance of NFFlatten.resolveConnections: time 4.743e-05/0.3227, allocations: 3.984 kB / 0.9868 GB, free: 5.68 MB / 0.7136 GB Notification: Performance of NFEvalConstants.evaluate: time 5.163e-05/0.3227, allocations: 16 kB / 0.9868 GB, free: 5.664 MB / 0.7136 GB Notification: Performance of NFSimplifyModel.simplify: time 8.713e-05/0.3228, allocations: 23.91 kB / 0.9868 GB, free: 5.641 MB / 0.7136 GB Notification: Performance of NFPackage.collectConstants: time 1.281e-05/0.3229, allocations: 0 / 0.9868 GB, free: 5.641 MB / 0.7136 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003024/0.3232, allocations: 75.75 kB / 0.9869 GB, free: 5.566 MB / 0.7136 GB Notification: Performance of NFScalarize.scalarize: time 2.132e-05/0.3232, allocations: 15.97 kB / 0.9869 GB, free: 5.551 MB / 0.7136 GB Notification: Performance of NFVerifyModel.verify: time 4.351e-05/0.3233, allocations: 15.94 kB / 0.9869 GB, free: 5.535 MB / 0.7136 GB Notification: Performance of NFConvertDAE.convert: time 0.0002236/0.3235, allocations: 68.06 kB / 0.987 GB, free: 5.469 MB / 0.7136 GB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.3235, allocations: 4 kB / 0.987 GB, free: 5.465 MB / 0.7136 GB Notification: Performance of FrontEnd: time 7.32e-07/0.3235, allocations: 0 / 0.987 GB, free: 5.465 MB / 0.7136 GB Notification: Performance of Transformations before backend: time 6.382e-06/0.3235, allocations: 4 kB / 0.987 GB, free: 5.461 MB / 0.7136 GB 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.0004458/0.324, allocations: 339.5 kB / 0.9873 GB, free: 5.082 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 4.559e-05/0.324, allocations: 8.031 kB / 0.9873 GB, free: 5.074 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001196/0.3242, allocations: 16.86 kB / 0.9874 GB, free: 5.059 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001188/0.3243, allocations: 172.3 kB / 0.9875 GB, free: 4.852 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.774e-05/0.3243, allocations: 4.375 kB / 0.9875 GB, free: 4.848 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.388e-05/0.3243, allocations: 4.375 kB / 0.9875 GB, free: 4.844 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001317/0.3245, allocations: 65.67 kB / 0.9876 GB, free: 4.773 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.3245, allocations: 0 / 0.9876 GB, free: 4.773 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.287e-05/0.3245, allocations: 0 / 0.9876 GB, free: 4.773 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.3245, allocations: 0 / 0.9876 GB, free: 4.773 MB / 0.7136 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.401e-05/0.3246, allocations: 19.98 kB / 0.9876 GB, free: 4.754 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002272/0.3248, allocations: 169.6 kB / 0.9878 GB, free: 4.539 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001035/0.3249, allocations: 54.48 kB / 0.9878 GB, free: 4.477 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.115e-05/0.325, allocations: 20.84 kB / 0.9878 GB, free: 4.453 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008193/0.3258, allocations: 0.591 MB / 0.9884 GB, free: 3.754 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.457e-05/0.3259, allocations: 30.56 kB / 0.9885 GB, free: 3.715 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=5): time 1.142e-06/0.3259, allocations: 4 kB / 0.9885 GB, free: 3.711 MB / 0.7136 GB Notification: Performance of matching and sorting (n=7): time 0.0006361/0.3265, allocations: 302.1 kB / 0.9887 GB, free: 3.363 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.4e-05/0.3266, allocations: 51.41 kB / 0.9888 GB, free: 3.301 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.76e-05/0.3266, allocations: 101.8 kB / 0.9889 GB, free: 3.191 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 1.443e-05/0.3267, allocations: 25.7 kB / 0.9889 GB, free: 3.16 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 5.017e-05/0.3267, allocations: 88.05 kB / 0.989 GB, free: 3.07 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 2.843e-05/0.3268, allocations: 35.7 kB / 0.989 GB, free: 3.035 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.681e-05/0.3268, allocations: 21.72 kB / 0.9891 GB, free: 3.008 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 0.0001198/0.3269, allocations: 322.8 kB / 0.9894 GB, free: 2.684 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.446e-05/0.327, allocations: 15.94 kB / 0.9894 GB, free: 2.668 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.159e-05/0.327, allocations: 49.14 kB / 0.9894 GB, free: 2.602 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.8e-05/0.3271, allocations: 77.08 kB / 0.9895 GB, free: 2.508 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.695e-06/0.3271, allocations: 0 / 0.9895 GB, free: 2.508 MB / 0.7136 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001373/0.3273, allocations: 97.64 kB / 0.9896 GB, free: 2.406 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.986e-05/0.3273, allocations: 11.98 kB / 0.9896 GB, free: 2.395 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.3273, allocations: 4.125 kB / 0.9896 GB, free: 2.391 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.637e-05/0.3273, allocations: 8.031 kB / 0.9896 GB, free: 2.383 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.417e-05/0.3274, allocations: 19.94 kB / 0.9896 GB, free: 2.363 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.14e-06/0.3274, allocations: 0 / 0.9896 GB, free: 2.363 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.092e-05/0.3275, allocations: 7.938 kB / 0.9896 GB, free: 2.355 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.504e-06/0.3275, allocations: 4 kB / 0.9896 GB, free: 2.352 MB / 0.7136 GB 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 9.031e-05/0.3276, allocations: 117.8 kB / 0.9898 GB, free: 2.227 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.835e-05/0.3276, allocations: 4 kB / 0.9898 GB, free: 2.223 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.401e-05/0.3277, allocations: 7.969 kB / 0.9898 GB, free: 2.219 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.3277, allocations: 8.438 kB / 0.9898 GB, free: 2.211 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.3277, allocations: 0 / 0.9898 GB, free: 2.211 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.06e-06/0.3277, allocations: 3.938 kB / 0.9898 GB, free: 2.207 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002525/0.3279, allocations: 181.6 kB / 0.99 GB, free: 1.98 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.134e-06/0.328, allocations: 0 / 0.99 GB, free: 1.98 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.419e-05/0.328, allocations: 19.92 kB / 0.99 GB, free: 1.961 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.597e-06/0.3281, allocations: 0 / 0.99 GB, free: 1.961 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.273e-05/0.3281, allocations: 4 kB / 0.99 GB, free: 1.957 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/0.3281, allocations: 0 / 0.99 GB, free: 1.957 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.3281, allocations: 0 / 0.99 GB, free: 1.957 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001062/0.3292, allocations: 1.07 MB / 0.991 GB, free: 0.7461 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 5.865e-05/0.3292, allocations: 85.02 kB / 0.9911 GB, free: 0.6445 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.313e-05/0.3293, allocations: 7.969 kB / 0.9911 GB, free: 0.6367 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.824e-05/0.3294, allocations: 4 kB / 0.9911 GB, free: 0.6328 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.888e-05/0.3294, allocations: 4 kB / 0.9911 GB, free: 0.6289 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.236e-06/0.3294, allocations: 4 kB / 0.9911 GB, free: 0.625 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 3.91e-05/0.3295, allocations: 83.27 kB / 0.9912 GB, free: 0.543 MB / 0.7136 GB Notification: Performance of sort global known variables: time 5.11e-07/0.3295, allocations: 0 / 0.9912 GB, free: 0.543 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.000313/0.3298, allocations: 16 kB / 0.9912 GB, free: 0.5273 MB / 0.7136 GB 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.0001354/0.3299, allocations: 103.5 kB / 0.9913 GB, free: 428 kB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001165/0.33, allocations: 43.92 kB / 0.9914 GB, free: 384 kB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 8.957e-06/0.3301, allocations: 3.938 kB / 0.9914 GB, free: 380 kB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 2.313e-05/0.3301, allocations: 15.98 kB / 0.9914 GB, free: 364 kB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003261/0.3304, allocations: 8 kB / 0.9914 GB, free: 356 kB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006995/0.3311, allocations: 462.9 kB / 0.9918 GB, free: 15.86 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002431/0.3314, allocations: 0.6888 MB / 0.9925 GB, free: 15.14 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 6.326e-05/0.3315, allocations: 7.984 kB / 0.9925 GB, free: 15.14 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.148e-05/0.3315, allocations: 11.44 kB / 0.9925 GB, free: 15.12 MB / 0.7292 GB Notification: Performance of SimCode: time 3.3e-07/0.3315, allocations: 4 kB / 0.9925 GB, free: 15.12 MB / 0.7292 GB Notification: Performance of Templates: time 0.00309/0.3346, allocations: 0.6414 MB / 0.9931 GB, free: 14.48 MB / 0.7292 GB make -j1 -f Buildings_8_Buildings.Media.Examples.WaterDerivativeCheck.makefile (rm -f Buildings_8_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo Buildings_8_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < Buildings_8_Buildings.Media.Examples.WaterDerivativeCheck.pipe >> ../files/Buildings_8_Buildings.Media.Examples.WaterDerivativeCheck.sim & ./Buildings_8_Buildings.Media.Examples.WaterDerivativeCheck -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1)