Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Media.Examples.WaterProperties.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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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(Buildings.Media.Examples.WaterProperties,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p|X.1.|d|eta|h|u|s|g|f|hIse|beta|kappa|ddpT|ddTp|dddX.1.|cp|cv|lambda|pMed|TMed|MM",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.WaterProperties") translateModel(Buildings.Media.Examples.WaterProperties,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|p|X.1.|d|eta|h|u|s|g|f|hIse|beta|kappa|ddpT|ddTp|dddX.1.|cp|cv|lambda|pMed|TMed|MM",fileNamePrefix="Buildings_latest_Buildings.Media.Examples.WaterProperties") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001676/0.001676, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001982/0.001982, allocations: 197.9 kB / 16.26 MB, free: 6.629 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.51/1.51, allocations: 222.9 MB / 239.9 MB, free: 4.551 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.072/3.072, allocations: 482.3 MB / 0.7543 GB, free: 11.2 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.002821/0.002821, allocations: 68.42 kB / 0.9233 GB, free: 29.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3393/0.3421, allocations: 162.2 MB / 1.082 GB, free: 13.62 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterProperties): time 0.006839/0.349, allocations: 4.727 MB / 1.086 GB, free: 8.867 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.003337/0.3524, allocations: 2.702 MB / 1.089 GB, free: 6.156 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001048/0.3525, allocations: 0 / 1.089 GB, free: 6.156 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 0.0002945/0.3528, allocations: 39.8 kB / 1.089 GB, free: 6.117 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 0.0003124/0.3532, allocations: 91.48 kB / 1.089 GB, free: 6.027 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.001308/0.3545, allocations: 469.3 kB / 1.09 GB, free: 5.57 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 0.0002813/0.3548, allocations: 228 kB / 1.09 GB, free: 5.344 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 5.248e-05/0.3548, allocations: 13.56 kB / 1.09 GB, free: 5.332 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002119/0.355, allocations: 111.5 kB / 1.09 GB, free: 5.223 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001392/0.3552, allocations: 95.66 kB / 1.09 GB, free: 5.129 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 2.38e-05/0.3552, allocations: 11.98 kB / 1.09 GB, free: 5.117 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000718/0.356, allocations: 379.2 kB / 1.09 GB, free: 4.746 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 7.959e-05/0.356, allocations: 39.81 kB / 1.09 GB, free: 4.707 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 0.000102/0.3561, allocations: 79.66 kB / 1.09 GB, free: 4.629 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0005881/0.3567, allocations: 371.3 kB / 1.091 GB, free: 4.266 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.3568, allocations: 0 / 1.091 GB, free: 4.266 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.713e-06/0.3568, allocations: 0 / 1.091 GB, free: 4.266 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.681e-06/0.3568, allocations: 4 kB / 1.091 GB, free: 4.262 MB / 0.8419 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 39 * Number of variables: 39 Notification: Performance of Generate backend data structure: time 0.0008394/0.3576, allocations: 0.4933 MB / 1.091 GB, free: 3.723 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.637e-05/0.3577, allocations: 8.031 kB / 1.091 GB, free: 3.715 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001766/0.3579, allocations: 24.73 kB / 1.091 GB, free: 3.691 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002617/0.3581, allocations: 220 kB / 1.092 GB, free: 3.438 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.684e-05/0.3582, allocations: 12.69 kB / 1.092 GB, free: 3.426 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.408e-05/0.3582, allocations: 16.38 kB / 1.092 GB, free: 3.41 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000444/0.3586, allocations: 256 kB / 1.092 GB, free: 3.141 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.3587, allocations: 0 / 1.092 GB, free: 3.141 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.839e-05/0.3587, allocations: 8 kB / 1.092 GB, free: 3.133 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.725e-05/0.3587, allocations: 8 kB / 1.092 GB, free: 3.125 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000544/0.3593, allocations: 427.5 kB / 1.092 GB, free: 2.707 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001291/0.3606, allocations: 0.9526 MB / 1.093 GB, free: 1.664 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003105/0.3609, allocations: 162.9 kB / 1.093 GB, free: 1.492 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001081/0.361, allocations: 64.88 kB / 1.093 GB, free: 1.426 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001656/0.3627, allocations: 1.829 MB / 1.095 GB, free: 15.24 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.584e-05/0.3627, allocations: 38.5 kB / 1.095 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=15): time 1.423e-06/0.3627, allocations: 3.938 kB / 1.095 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of matching and sorting (n=15): time 0.0003533/0.3631, allocations: 145.4 kB / 1.095 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.389e-05/0.3632, allocations: 59.34 kB / 1.095 GB, free: 14.97 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001619/0.3633, allocations: 165 kB / 1.096 GB, free: 14.8 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 3.511e-05/0.3634, allocations: 25.7 kB / 1.096 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 0.000103/0.3635, allocations: 143.8 kB / 1.096 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 5.091e-05/0.3635, allocations: 59.19 kB / 1.096 GB, free: 14.56 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.574e-05/0.3636, allocations: 53.61 kB / 1.096 GB, free: 14.5 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001481/0.3638, allocations: 322.8 kB / 1.096 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.102e-05/0.3639, allocations: 39.97 kB / 1.096 GB, free: 14.14 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001773/0.364, allocations: 138.7 kB / 1.096 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002681/0.3643, allocations: 196.5 kB / 1.097 GB, free: 13.72 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.3643, allocations: 4 kB / 1.097 GB, free: 13.71 MB / 0.8575 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003461/0.3647, allocations: 213.1 kB / 1.097 GB, free: 13.5 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.768e-05/0.3647, allocations: 8 kB / 1.097 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.105e-06/0.3647, allocations: 4 kB / 1.097 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.001e-05/0.3647, allocations: 4.469 kB / 1.097 GB, free: 13.48 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001776/0.3649, allocations: 63.84 kB / 1.097 GB, free: 13.42 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.356e-05/0.3649, allocations: 8 kB / 1.097 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001248/0.3651, allocations: 27.69 kB / 1.097 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.009e-05/0.3651, allocations: 12 kB / 1.097 GB, free: 13.38 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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 (30): * Single equations (assignments): 29 * Array equations: 1 * 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 0.0001168/0.3652, allocations: 125.8 kB / 1.097 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.22e-05/0.3653, allocations: 15.81 kB / 1.097 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003232/0.3656, allocations: 162.9 kB / 1.097 GB, free: 13.07 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.179e-05/0.3656, allocations: 7.938 kB / 1.097 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.208e-06/0.3656, allocations: 0 / 1.097 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.3657, allocations: 0 / 1.097 GB, free: 13.06 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002832/0.3659, allocations: 221.4 kB / 1.097 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.881e-06/0.366, allocations: 4 kB / 1.097 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.911e-05/0.3661, allocations: 27.92 kB / 1.097 GB, free: 12.76 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.147e-06/0.3661, allocations: 4 kB / 1.097 GB, free: 12.76 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.329e-05/0.3661, allocations: 4 kB / 1.097 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.209e-06/0.3661, allocations: 3.938 kB / 1.097 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3661, allocations: 3.938 kB / 1.097 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002855/0.3664, allocations: 222.4 kB / 1.098 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001059/0.3665, allocations: 105 kB / 1.098 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.609e-05/0.3665, allocations: 4 kB / 1.098 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002078/0.3667, allocations: 15.92 kB / 1.098 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.647e-05/0.3668, allocations: 15.98 kB / 1.098 GB, free: 12.36 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.095e-05/0.3668, allocations: 8 kB / 1.098 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 0.0001014/0.3669, allocations: 122.1 kB / 1.098 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3669, allocations: 0 / 1.098 GB, free: 12.23 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0004113/0.3673, allocations: 87.83 kB / 1.098 GB, free: 12.15 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (15): * Single equations (assignments): 14 * Array equations: 1 * 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.0003999/0.3677, allocations: 175.1 kB / 1.098 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002688/0.368, allocations: 127.7 kB / 1.098 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.368, allocations: 0 / 1.098 GB, free: 11.84 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 7.329e-05/0.3681, allocations: 43.92 kB / 1.098 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004503/0.3686, allocations: 60.81 kB / 1.098 GB, free: 11.74 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007468/0.3693, allocations: 390.9 kB / 1.099 GB, free: 11.33 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003782/0.3697, allocations: 0.7168 MB / 1.099 GB, free: 10.59 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001761/0.3699, allocations: 41.81 kB / 1.099 GB, free: 10.55 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.832e-05/0.37, allocations: 27.42 kB / 1.099 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of SimCode: time 2.31e-07/0.37, allocations: 0 / 1.099 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of Templates: time 0.00777/0.3777, allocations: 3.41 MB / 1.103 GB, free: 7.152 MB / 0.8575 GB make -j1 -f Buildings_latest_Buildings.Media.Examples.WaterProperties.makefile (rm -f Buildings_latest_Buildings.Media.Examples.WaterProperties.pipe ; mkfifo Buildings_latest_Buildings.Media.Examples.WaterProperties.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Examples.WaterProperties.pipe >> ../files/Buildings_latest_Buildings.Media.Examples.WaterProperties.sim & ./Buildings_latest_Buildings.Media.Examples.WaterProperties -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Examples.WaterProperties.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Examples.WaterProperties_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Examples_WaterProperties.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Examples.WaterProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches