Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Media.Examples.WaterDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.cpSym.|der.cpCod.|der.cvSym.|der.cvCod.",fileNamePrefix="Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck") translateModel(Buildings.Media.Examples.WaterDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.cpSym.|der.cpCod.|der.cvSym.|der.cvCod.",fileNamePrefix="Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.49/2.49, allocations: 390.3 MB / 405.3 MB, free: 13.5 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00144/0.00144, allocations: 178.8 kB / 498.1 MB, free: 5.766 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.75/1.75, allocations: 223.2 MB / 0.7948 GB, free: 17.96 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009535/0.0009536, allocations: 105.5 kB / 0.9346 GB, free: 6.223 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004227/0.0004228, allocations: 6.906 kB / 1.084 GB, free: 221.1 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2822/0.2827, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.041/1.323, allocations: 378.4 MB / 1.592 GB, free: 22.08 MB / 0.9167 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000263/1.324, allocations: 70.34 kB / 1.592 GB, free: 22.04 MB / 0.9167 GB Notification: Performance of FrontEnd - DAE generated: time 0.02593/1.35, allocations: 13.38 MB / 1.606 GB, free: 11.43 MB / 0.9167 GB Notification: Performance of FrontEnd: time 1.964e-06/1.35, allocations: 0 / 1.606 GB, free: 11.43 MB / 0.9167 GB Notification: Performance of Transformations before backend: time 9.157e-06/1.35, allocations: 0 / 1.606 GB, free: 11.43 MB / 0.9167 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.000378/1.35, allocations: 354.8 kB / 1.606 GB, free: 11.04 MB / 0.9167 GB Notification: Performance of prepare preOptimizeDAE: time 5.86e-05/1.35, allocations: 8.031 kB / 1.606 GB, free: 11.04 MB / 0.9167 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001321/1.35, allocations: 11.86 kB / 1.606 GB, free: 11.02 MB / 0.9167 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001048/1.35, allocations: 159.1 kB / 1.606 GB, free: 10.83 MB / 0.9167 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.077e-05/1.35, allocations: 11.75 kB / 1.606 GB, free: 10.82 MB / 0.9167 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.287e-05/1.35, allocations: 8 kB / 1.606 GB, free: 10.81 MB / 0.9167 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001671/1.351, allocations: 53.42 kB / 1.606 GB, free: 10.76 MB / 0.9167 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/1.351, allocations: 0 / 1.606 GB, free: 10.76 MB / 0.9167 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.525e-05/1.351, allocations: 0 / 1.606 GB, free: 10.76 MB / 0.9167 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.352e-06/1.351, allocations: 3.984 kB / 1.606 GB, free: 10.76 MB / 0.9167 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.072e-05/1.351, allocations: 19.48 kB / 1.606 GB, free: 10.74 MB / 0.9167 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001871/1.351, allocations: 165 kB / 1.606 GB, free: 10.54 MB / 0.9167 GB Notification: Performance of preOpt comSubExp (simulation): time 9.216e-05/1.351, allocations: 53.48 kB / 1.606 GB, free: 10.48 MB / 0.9167 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007118/1.352, allocations: 0.593 MB / 1.607 GB, free: 9.797 MB / 0.9167 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.327e-05/1.352, allocations: 34.56 kB / 1.607 GB, free: 9.754 MB / 0.9167 GB Notification: Performance of pre-optimization done (n=5): time 1.293e-06/1.352, allocations: 0 / 1.607 GB, free: 9.754 MB / 0.9167 GB Notification: Performance of matching and sorting (n=7): time 0.000601/1.352, allocations: 298.9 kB / 1.607 GB, free: 9.434 MB / 0.9167 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.138e-05/1.352, allocations: 59.39 kB / 1.607 GB, free: 9.363 MB / 0.9167 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.414e-05/1.353, allocations: 92.88 kB / 1.607 GB, free: 9.27 MB / 0.9167 GB Notification: Performance of collectPreVariables (initialization): time 1.514e-05/1.353, allocations: 25.7 kB / 1.607 GB, free: 9.238 MB / 0.9167 GB Notification: Performance of collectInitialEqns (initialization): time 3.941e-05/1.353, allocations: 91.98 kB / 1.607 GB, free: 9.148 MB / 0.9167 GB Notification: Performance of collectInitialBindings (initialization): time 1.762e-05/1.353, allocations: 30.55 kB / 1.608 GB, free: 9.121 MB / 0.9167 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.858e-06/1.353, allocations: 0 / 1.608 GB, free: 9.121 MB / 0.9167 GB Notification: Performance of setup shared object (initialization): time 7.568e-05/1.353, allocations: 318.4 kB / 1.608 GB, free: 8.805 MB / 0.9167 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.813e-05/1.353, allocations: 23.36 kB / 1.608 GB, free: 8.785 MB / 0.9167 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.557e-05/1.353, allocations: 52.83 kB / 1.608 GB, free: 8.719 MB / 0.9167 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.614e-05/1.353, allocations: 15.62 kB / 1.608 GB, free: 8.711 MB / 0.9167 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.91e-07/1.353, allocations: 0 / 1.608 GB, free: 8.711 MB / 0.9167 GB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001132/1.353, allocations: 100 kB / 1.608 GB, free: 8.621 MB / 0.9167 GB Notification: Performance of prepare postOptimizeDAE: time 1.837e-05/1.353, allocations: 8 kB / 1.608 GB, free: 8.613 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.194e-06/1.353, allocations: 4.391 kB / 1.608 GB, free: 8.609 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.713e-05/1.353, allocations: 7.938 kB / 1.608 GB, free: 8.602 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.2e-05/1.353, allocations: 23.92 kB / 1.608 GB, free: 8.578 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.071e-05/1.353, allocations: 4 kB / 1.608 GB, free: 8.574 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.995e-05/1.353, allocations: 7.562 kB / 1.608 GB, free: 8.57 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.534e-06/1.353, allocations: 4 kB / 1.608 GB, free: 8.566 MB / 0.9167 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.414e-05/1.353, allocations: 117.7 kB / 1.608 GB, free: 8.445 MB / 0.9167 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.449e-05/1.353, allocations: 3.906 kB / 1.608 GB, free: 8.441 MB / 0.9167 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.955e-05/1.353, allocations: 11.66 kB / 1.608 GB, free: 8.43 MB / 0.9167 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/1.353, allocations: 3.953 kB / 1.608 GB, free: 8.426 MB / 0.9167 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/1.353, allocations: 0 / 1.608 GB, free: 8.426 MB / 0.9167 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/1.353, allocations: 0 / 1.608 GB, free: 8.426 MB / 0.9167 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002174/1.354, allocations: 172.6 kB / 1.608 GB, free: 8.215 MB / 0.9167 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/1.354, allocations: 3.938 kB / 1.608 GB, free: 8.211 MB / 0.9167 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.064e-05/1.354, allocations: 15.98 kB / 1.608 GB, free: 8.195 MB / 0.9167 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/1.354, allocations: 4 kB / 1.608 GB, free: 8.191 MB / 0.9167 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.538e-06/1.354, allocations: 0 / 1.608 GB, free: 8.191 MB / 0.9167 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/1.354, allocations: 4 kB / 1.608 GB, free: 8.188 MB / 0.9167 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.345e-06/1.354, allocations: 3.953 kB / 1.608 GB, free: 8.184 MB / 0.9167 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001717/1.354, allocations: 166.8 kB / 1.609 GB, free: 8.016 MB / 0.9167 GB Notification: Performance of postOpt removeConstants (simulation): time 4.906e-05/1.354, allocations: 88.02 kB / 1.609 GB, free: 7.914 MB / 0.9167 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.602e-05/1.354, allocations: 4.031 kB / 1.609 GB, free: 7.91 MB / 0.9167 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.668e-05/1.354, allocations: 4 kB / 1.609 GB, free: 7.906 MB / 0.9167 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.754e-05/1.354, allocations: 7.891 kB / 1.609 GB, free: 7.898 MB / 0.9167 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.676e-06/1.354, allocations: 11.88 kB / 1.609 GB, free: 7.891 MB / 0.9167 GB Notification: Performance of sorting global known variables: time 2.453e-05/1.354, allocations: 79.27 kB / 1.609 GB, free: 7.812 MB / 0.9167 GB Notification: Performance of sort global known variables: time 1.01e-07/1.354, allocations: 7.938 kB / 1.609 GB, free: 7.805 MB / 0.9167 GB Notification: Performance of remove unused functions: time 0.0002368/1.354, allocations: 11.81 kB / 1.609 GB, free: 7.797 MB / 0.9167 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002023/1.355, allocations: 115.4 kB / 1.609 GB, free: 7.676 MB / 0.9167 GB Notification: Performance of simCode: created initialization part: time 0.0001248/1.355, allocations: 51.02 kB / 1.609 GB, free: 7.633 MB / 0.9167 GB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/1.355, allocations: 0 / 1.609 GB, free: 7.633 MB / 0.9167 GB Notification: Performance of simCode: created simulation system equations: time 1.954e-05/1.355, allocations: 15.88 kB / 1.609 GB, free: 7.621 MB / 0.9167 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001833/1.355, allocations: 4.938 kB / 1.609 GB, free: 7.617 MB / 0.9167 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005969/1.356, allocations: 397.6 kB / 1.609 GB, free: 7.207 MB / 0.9167 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001728/1.356, allocations: 0.6848 MB / 1.61 GB, free: 6.496 MB / 0.9167 GB Notification: Performance of simCode: alias equations: time 5.951e-05/1.356, allocations: 15.77 kB / 1.61 GB, free: 6.48 MB / 0.9167 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.069e-05/1.356, allocations: 15.38 kB / 1.61 GB, free: 6.465 MB / 0.9167 GB Notification: Performance of SimCode: time 4.31e-07/1.356, allocations: 0 / 1.61 GB, free: 6.465 MB / 0.9167 GB Notification: Performance of Templates: time 0.003174/1.359, allocations: 0.8418 MB / 1.611 GB, free: 5.637 MB / 0.9167 GB make -j1 -f Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.makefile (rm -f Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.sim & ./Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_WaterDerivativeCheck.csv","../files/Buildings_9_Buildings.Media.Examples.WaterDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches