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.005685/0.005685, allocations: 100 kB / 15.73 MB, free: 6.059 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.001168/0.001168, allocations: 197 kB / 16.67 MB, free: 5.969 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.287/1.287, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002109/0.002109, allocations: 288.4 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9128/0.9128, allocations: 169.2 MB / 0.4983 GB, free: 4.398 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001663/0.001663, allocations: 95.84 kB / 0.6814 GB, free: 6.965 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4008/0.4025, allocations: 86.97 MB / 0.7664 GB, free: 3.902 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Media.Examples.WaterDerivativeCheck): time 0.001938/0.4045, allocations: 1.257 MB / 0.7676 GB, free: 2.637 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.003205/0.4077, allocations: 3.258 MB / 0.7708 GB, free: 15.36 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.473e-05/0.4077, allocations: 0 / 0.7708 GB, free: 15.36 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 1.764e-05/0.4078, allocations: 3.938 kB / 0.7708 GB, free: 15.36 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 4.211e-05/0.4078, allocations: 4 kB / 0.7708 GB, free: 15.36 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004348/0.4082, allocations: 111.4 kB / 0.7709 GB, free: 15.25 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 7.59e-05/0.4083, allocations: 39.86 kB / 0.7709 GB, free: 15.21 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 2.94e-05/0.4084, allocations: 0 / 0.7709 GB, free: 15.21 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 3.88e-05/0.4084, allocations: 15.98 kB / 0.7709 GB, free: 15.19 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 5.857e-05/0.4085, allocations: 23.91 kB / 0.7709 GB, free: 15.17 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 1.256e-05/0.4085, allocations: 4 kB / 0.771 GB, free: 15.16 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002078/0.4087, allocations: 79.75 kB / 0.771 GB, free: 15.09 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 1.546e-05/0.4087, allocations: 7.984 kB / 0.771 GB, free: 15.08 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 2.94e-05/0.4088, allocations: 15.92 kB / 0.7711 GB, free: 15.06 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.0001637/0.4089, allocations: 67.66 kB / 0.7711 GB, free: 15 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.4089, allocations: 0 / 0.7711 GB, free: 15 MB / 0.545 GB Notification: Performance of FrontEnd: time 9.92e-07/0.4089, allocations: 4 kB / 0.7711 GB, free: 15 MB / 0.545 GB Notification: Performance of Transformations before backend: time 4.649e-06/0.409, allocations: 0 / 0.7711 GB, free: 15 MB / 0.545 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.0003553/0.4093, allocations: 353.2 kB / 0.7715 GB, free: 14.61 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.047e-05/0.4094, allocations: 12.03 kB / 0.7715 GB, free: 14.6 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.372e-05/0.4094, allocations: 4.938 kB / 0.7715 GB, free: 14.59 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.673e-05/0.4095, allocations: 160.4 kB / 0.7716 GB, free: 14.4 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.054e-05/0.4096, allocations: 12.31 kB / 0.7716 GB, free: 14.39 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.254e-05/0.4096, allocations: 8.359 kB / 0.7716 GB, free: 14.38 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001192/0.4097, allocations: 65.73 kB / 0.7717 GB, free: 14.31 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.963e-06/0.4097, allocations: 0 / 0.7717 GB, free: 14.31 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.028e-05/0.4097, allocations: 4 kB / 0.7717 GB, free: 14.3 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.646e-06/0.4098, allocations: 0 / 0.7717 GB, free: 14.3 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.108e-05/0.4098, allocations: 19.98 kB / 0.7717 GB, free: 14.29 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001646/0.41, allocations: 161.6 kB / 0.7719 GB, free: 14.08 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 9.341e-05/0.4101, allocations: 54.55 kB / 0.7719 GB, free: 14.02 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.044e-05/0.4101, allocations: 20.8 kB / 0.772 GB, free: 13.99 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006251/0.4108, allocations: 0.5985 MB / 0.7725 GB, free: 13.29 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.102e-05/0.4108, allocations: 34.55 kB / 0.7726 GB, free: 13.24 MB / 0.545 GB Notification: Performance of pre-optimization done (n=5): time 1.032e-06/0.4108, allocations: 0 / 0.7726 GB, free: 13.24 MB / 0.545 GB Notification: Performance of matching and sorting (n=7): time 0.0005202/0.4113, allocations: 298.6 kB / 0.7729 GB, free: 12.9 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.593e-05/0.4114, allocations: 55.41 kB / 0.7729 GB, free: 12.83 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.863e-05/0.4114, allocations: 101.9 kB / 0.773 GB, free: 12.72 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 1.426e-05/0.4115, allocations: 25.7 kB / 0.773 GB, free: 12.69 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 4.259e-05/0.4115, allocations: 92.02 kB / 0.7731 GB, free: 12.6 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.727e-05/0.4115, allocations: 23.81 kB / 0.7731 GB, free: 12.57 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.711e-05/0.4116, allocations: 29.7 kB / 0.7732 GB, free: 12.54 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.403e-05/0.4117, allocations: 318.8 kB / 0.7735 GB, free: 12.22 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.626e-05/0.4117, allocations: 11.98 kB / 0.7735 GB, free: 12.21 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.504e-05/0.4118, allocations: 57.09 kB / 0.7735 GB, free: 12.13 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.289e-05/0.4118, allocations: 85.25 kB / 0.7736 GB, free: 12.03 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.81e-07/0.4118, allocations: 0 / 0.7736 GB, free: 12.03 MB / 0.545 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000122/0.412, allocations: 93.55 kB / 0.7737 GB, free: 11.93 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.141e-05/0.412, allocations: 4 kB / 0.7737 GB, free: 11.93 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.839e-06/0.412, allocations: 4 kB / 0.7737 GB, free: 11.93 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.224e-05/0.412, allocations: 0 / 0.7737 GB, free: 11.93 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.032e-05/0.4121, allocations: 23.92 kB / 0.7737 GB, free: 11.9 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.493e-06/0.4121, allocations: 4 kB / 0.7737 GB, free: 11.9 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.607e-05/0.4122, allocations: 3.938 kB / 0.7738 GB, free: 11.89 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.825e-06/0.4122, allocations: 8.125 kB / 0.7738 GB, free: 11.89 MB / 0.545 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 6.708e-05/0.4122, allocations: 124.1 kB / 0.7739 GB, free: 11.76 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.782e-05/0.4123, allocations: 7.953 kB / 0.7739 GB, free: 11.75 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.609e-05/0.4123, allocations: 7.969 kB / 0.7739 GB, free: 11.74 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.252e-06/0.4123, allocations: 0 / 0.7739 GB, free: 11.74 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.4123, allocations: 448 / 0.7739 GB, free: 11.74 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.322e-06/0.4123, allocations: 11.92 kB / 0.7739 GB, free: 11.73 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002244/0.4126, allocations: 173.7 kB / 0.7741 GB, free: 11.51 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.4126, allocations: 4 kB / 0.7741 GB, free: 11.5 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.429e-05/0.4127, allocations: 23.88 kB / 0.7741 GB, free: 11.48 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.4127, allocations: 0 / 0.7741 GB, free: 11.48 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.963e-06/0.4127, allocations: 0 / 0.7741 GB, free: 11.48 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.122e-06/0.4127, allocations: 0 / 0.7741 GB, free: 11.48 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.4127, allocations: 4 kB / 0.7741 GB, free: 11.48 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001664/0.4129, allocations: 179.5 kB / 0.7743 GB, free: 11.29 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.925e-05/0.4129, allocations: 85.14 kB / 0.7744 GB, free: 11.18 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.317e-05/0.4129, allocations: 4 kB / 0.7744 GB, free: 11.18 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.9e-05/0.413, allocations: 4 kB / 0.7744 GB, free: 11.18 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.706e-05/0.4131, allocations: 4 kB / 0.7744 GB, free: 11.17 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.702e-06/0.4131, allocations: 3.938 kB / 0.7744 GB, free: 11.17 MB / 0.545 GB Notification: Performance of sorting global known variables: time 3.403e-05/0.4131, allocations: 91.2 kB / 0.7745 GB, free: 11.08 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4131, allocations: 0 / 0.7745 GB, free: 11.08 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002309/0.4134, allocations: 12 kB / 0.7745 GB, free: 11.07 MB / 0.545 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.0001057/0.4135, allocations: 99.58 kB / 0.7746 GB, free: 10.96 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0001008/0.4136, allocations: 43.92 kB / 0.7746 GB, free: 10.91 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.4136, allocations: 0 / 0.7746 GB, free: 10.91 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 2.63e-05/0.4136, allocations: 19.98 kB / 0.7746 GB, free: 10.89 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002479/0.4139, allocations: 10.94 kB / 0.7746 GB, free: 10.89 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005009/0.4144, allocations: 325.8 kB / 0.7749 GB, free: 10.54 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002216/0.4146, allocations: 0.6845 MB / 0.7756 GB, free: 9.828 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 4.353e-05/0.4147, allocations: 8 kB / 0.7756 GB, free: 9.82 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.958e-05/0.4147, allocations: 11.44 kB / 0.7756 GB, free: 9.812 MB / 0.545 GB Notification: Performance of SimCode: time 1.9e-07/0.4147, allocations: 0 / 0.7756 GB, free: 9.812 MB / 0.545 GB Notification: Performance of Templates: time 0.002564/0.4173, allocations: 0.6273 MB / 0.7762 GB, free: 9.188 MB / 0.545 GB 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)