Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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_9_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_9_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.001839/0.001839, allocations: 105.7 kB / 16.37 MB, free: 6.465 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.001872/0.001871, allocations: 190 kB / 17.31 MB, free: 5.812 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.401/1.401, allocations: 222.9 MB / 241 MB, free: 15.2 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.347/2.347, allocations: 390.3 MB / 0.6655 GB, free: 0.6172 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001372/0.001372, allocations: 61.06 kB / 0.814 GB, free: 32.69 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3262/0.3276, allocations: 140.4 MB / 0.9511 GB, free: 8.109 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.WaterProperties): time 0.00669/0.3343, allocations: 4.736 MB / 0.9557 GB, free: 3.348 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.003333/0.3377, allocations: 2.698 MB / 0.9584 GB, free: 0.6406 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001997/0.3379, allocations: 0 / 0.9584 GB, free: 0.6406 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0003363/0.3383, allocations: 47.67 kB / 0.9584 GB, free: 0.5938 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0003696/0.3386, allocations: 95.36 kB / 0.9585 GB, free: 0.5 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.001658/0.3404, allocations: 0.5016 MB / 0.959 GB, free: 0 / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0004927/0.3409, allocations: 228 kB / 0.9592 GB, free: 15.77 MB / 0.7481 GB Notification: Performance of NFFlatten.resolveConnections: time 7.412e-05/0.341, allocations: 13.55 kB / 0.9592 GB, free: 15.76 MB / 0.7481 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000223/0.3412, allocations: 123.5 kB / 0.9593 GB, free: 15.64 MB / 0.7481 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001721/0.3414, allocations: 91.59 kB / 0.9594 GB, free: 15.55 MB / 0.7481 GB Notification: Performance of NFPackage.collectConstants: time 2.333e-05/0.3414, allocations: 8 kB / 0.9594 GB, free: 15.54 MB / 0.7481 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000841/0.3423, allocations: 363.4 kB / 0.9598 GB, free: 15.18 MB / 0.7481 GB Notification: Performance of NFScalarize.scalarize: time 0.0001475/0.3424, allocations: 39.83 kB / 0.9598 GB, free: 15.14 MB / 0.7481 GB Notification: Performance of NFVerifyModel.verify: time 9.836e-05/0.3426, allocations: 87.58 kB / 0.9599 GB, free: 15.06 MB / 0.7481 GB Notification: Performance of NFConvertDAE.convert: time 0.00066/0.3432, allocations: 359.1 kB / 0.9602 GB, free: 14.71 MB / 0.7481 GB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.3432, allocations: 0 / 0.9602 GB, free: 14.71 MB / 0.7481 GB Notification: Performance of FrontEnd: time 2.124e-06/0.3432, allocations: 0 / 0.9602 GB, free: 14.71 MB / 0.7481 GB Notification: Performance of Transformations before backend: time 5.7e-06/0.3433, allocations: 0 / 0.9602 GB, free: 14.71 MB / 0.7481 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.0009788/0.3442, allocations: 0.4915 MB / 0.9607 GB, free: 14.16 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.321e-05/0.3443, allocations: 8.031 kB / 0.9607 GB, free: 14.16 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001775/0.3445, allocations: 32.73 kB / 0.9608 GB, free: 14.12 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003792/0.3449, allocations: 212 kB / 0.961 GB, free: 13.88 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.227e-05/0.3449, allocations: 16.7 kB / 0.961 GB, free: 13.86 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.223e-05/0.3449, allocations: 12.38 kB / 0.961 GB, free: 13.85 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004331/0.3454, allocations: 252.1 kB / 0.9612 GB, free: 13.59 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.199e-05/0.3454, allocations: 4 kB / 0.9612 GB, free: 13.58 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.862e-05/0.3454, allocations: 12 kB / 0.9613 GB, free: 13.57 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.799e-05/0.3455, allocations: 4 kB / 0.9613 GB, free: 13.57 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005321/0.346, allocations: 423.5 kB / 0.9617 GB, free: 13.15 MB / 0.7481 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001474/0.3475, allocations: 0.9526 MB / 0.9626 GB, free: 12.11 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002796/0.3478, allocations: 163 kB / 0.9627 GB, free: 11.94 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001475/0.3479, allocations: 64.88 kB / 0.9628 GB, free: 11.88 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001849/0.3498, allocations: 1.821 MB / 0.9646 GB, free: 9.695 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.311e-05/0.3498, allocations: 42.5 kB / 0.9646 GB, free: 9.645 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=15): time 2.124e-06/0.3499, allocations: 0 / 0.9646 GB, free: 9.645 MB / 0.7481 GB Notification: Performance of matching and sorting (n=15): time 0.0004334/0.3503, allocations: 143.4 kB / 0.9648 GB, free: 9.5 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.162e-05/0.3504, allocations: 59.34 kB / 0.9648 GB, free: 9.43 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003006/0.3507, allocations: 167.2 kB / 0.965 GB, free: 9.254 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 3.315e-05/0.3507, allocations: 33.7 kB / 0.965 GB, free: 9.215 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001254/0.3508, allocations: 139.8 kB / 0.9651 GB, free: 9.074 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 5.694e-05/0.3509, allocations: 51.3 kB / 0.9652 GB, free: 9.023 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.041e-05/0.351, allocations: 53.55 kB / 0.9652 GB, free: 8.965 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0002446/0.3512, allocations: 330.8 kB / 0.9656 GB, free: 8.633 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.945e-05/0.3513, allocations: 35.98 kB / 0.9656 GB, free: 8.598 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002706/0.3516, allocations: 138.2 kB / 0.9657 GB, free: 8.414 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002258/0.3518, allocations: 196.5 kB / 0.9659 GB, free: 8.176 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.3518, allocations: 0 / 0.9659 GB, free: 8.176 MB / 0.7481 GB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0003213/0.3522, allocations: 225.2 kB / 0.9661 GB, free: 7.949 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.3522, allocations: 8 kB / 0.9661 GB, free: 7.941 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.3522, allocations: 4 kB / 0.9661 GB, free: 7.938 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.298e-05/0.3522, allocations: 4 kB / 0.9661 GB, free: 7.934 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002328/0.3525, allocations: 59.84 kB / 0.9662 GB, free: 7.875 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.167e-05/0.3525, allocations: 4 kB / 0.9662 GB, free: 7.871 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001154/0.3526, allocations: 31.62 kB / 0.9662 GB, free: 7.84 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.209e-05/0.3526, allocations: 12 kB / 0.9662 GB, free: 7.828 MB / 0.7481 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.0001102/0.3528, allocations: 134.1 kB / 0.9664 GB, free: 7.688 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.916e-05/0.3528, allocations: 19.89 kB / 0.9664 GB, free: 7.668 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003504/0.3532, allocations: 154.9 kB / 0.9665 GB, free: 7.512 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.687e-05/0.3532, allocations: 11.92 kB / 0.9666 GB, free: 7.5 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.089e-06/0.3532, allocations: 0 / 0.9666 GB, free: 7.5 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.419e-06/0.3532, allocations: 0 / 0.9666 GB, free: 7.5 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003124/0.3535, allocations: 217.5 kB / 0.9668 GB, free: 7.238 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.288e-06/0.3535, allocations: 4 kB / 0.9668 GB, free: 7.234 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.913e-05/0.3536, allocations: 23.98 kB / 0.9668 GB, free: 7.211 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.3536, allocations: 4 kB / 0.9668 GB, free: 7.207 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.195e-05/0.3537, allocations: 4 kB / 0.9668 GB, free: 7.203 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.48e-05/0.3537, allocations: 11.88 kB / 0.9668 GB, free: 7.191 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.3537, allocations: 0 / 0.9668 GB, free: 7.191 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003306/0.354, allocations: 219.3 kB / 0.967 GB, free: 6.961 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001065/0.3541, allocations: 108.9 kB / 0.9671 GB, free: 6.836 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.503e-05/0.3542, allocations: 4 kB / 0.9671 GB, free: 6.832 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001912/0.3544, allocations: 23.92 kB / 0.9671 GB, free: 6.809 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.588e-05/0.3544, allocations: 11.92 kB / 0.9672 GB, free: 6.797 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.217e-05/0.3544, allocations: 12 kB / 0.9672 GB, free: 6.785 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0001513/0.3546, allocations: 120.9 kB / 0.9673 GB, free: 6.668 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3546, allocations: 0 / 0.9673 GB, free: 6.668 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0004147/0.355, allocations: 83.92 kB / 0.9674 GB, free: 6.586 MB / 0.7481 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.0003441/0.3554, allocations: 175.1 kB / 0.9675 GB, free: 6.406 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0002592/0.3556, allocations: 122.5 kB / 0.9676 GB, free: 6.289 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 7.283e-06/0.3557, allocations: 4 kB / 0.9677 GB, free: 6.285 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 7.327e-05/0.3557, allocations: 44.91 kB / 0.9677 GB, free: 6.242 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000432/0.3562, allocations: 47.95 kB / 0.9677 GB, free: 6.195 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007541/0.3569, allocations: 346.8 kB / 0.9681 GB, free: 5.832 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004912/0.3574, allocations: 0.7168 MB / 0.9688 GB, free: 5.09 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.0002493/0.3577, allocations: 53.73 kB / 0.9688 GB, free: 5.039 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.648e-05/0.3578, allocations: 27.42 kB / 0.9688 GB, free: 5.012 MB / 0.7481 GB Notification: Performance of SimCode: time 5.01e-07/0.3578, allocations: 0 / 0.9688 GB, free: 5.012 MB / 0.7481 GB Notification: Performance of Templates: time 0.007926/0.3657, allocations: 3.415 MB / 0.9722 GB, free: 1.637 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Media.Examples.WaterProperties.makefile (rm -f Buildings_9_Buildings.Media.Examples.WaterProperties.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.WaterProperties.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.WaterProperties.pipe >> ../files/Buildings_9_Buildings.Media.Examples.WaterProperties.sim & ./Buildings_9_Buildings.Media.Examples.WaterProperties -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Examples.WaterProperties.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.WaterProperties_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_WaterProperties.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.WaterProperties.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches