Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Media.Examples.AirDerivativeCheck.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Media.Examples.AirDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.hSteSym.|der.hSteCod.|der.cpSym.|der.cpCod.|der.cvSym.|der.cvCod.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Media.Examples.AirDerivativeCheck") translateModel(Buildings.Media.Examples.AirDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.hSteSym.|der.hSteCod.|der.cpSym.|der.cpCod.|der.cvSym.|der.cvCod.",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Media.Examples.AirDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.477/1.477, allocations: 249.3 MB / 261.8 MB, free: 5.926 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001093/0.001093, allocations: 174.7 kB / 321.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.771/1.771, allocations: 205.1 MB / 0.572 GB, free: 10.69 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008719/0.0008718, allocations: 84.06 kB / 0.6764 GB, free: 15.65 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 2.952e-05/2.955e-05, allocations: 4 kB / 0.7879 GB, free: 97.12 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.227/0.227, allocations: 106.3 MB / 0.8918 GB, free: 6.691 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.018/7.245, allocations: 2.208 GB / 3.1 GB, free: 212.5 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003708/7.245, allocations: 70.53 kB / 3.1 GB, free: 212.4 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.06071/7.306, allocations: 29.62 MB / 3.129 GB, free: 187.8 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.505e-06/7.306, allocations: 0 / 3.129 GB, free: 187.8 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 1.177e-05/7.306, allocations: 4 kB / 3.129 GB, free: 187.8 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0005159/7.307, allocations: 377.8 kB / 3.129 GB, free: 187.3 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 6.879e-05/7.307, allocations: 8.031 kB / 3.129 GB, free: 187.3 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004494/7.307, allocations: 43.81 kB / 3.129 GB, free: 187.3 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000128/7.307, allocations: 167 kB / 3.129 GB, free: 187.1 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.378e-05/7.307, allocations: 7.938 kB / 3.129 GB, free: 187.1 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.657e-05/7.307, allocations: 11.81 kB / 3.129 GB, free: 187.1 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002373/7.308, allocations: 67.55 kB / 3.129 GB, free: 187 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.245e-05/7.308, allocations: 0 / 3.129 GB, free: 187 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.502e-05/7.308, allocations: 11.81 kB / 3.129 GB, free: 187 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.187e-06/7.308, allocations: 0 / 3.129 GB, free: 187 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001034/7.308, allocations: 43.61 kB / 3.129 GB, free: 187 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002597/7.308, allocations: 188.7 kB / 3.13 GB, free: 186.8 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000181/7.308, allocations: 77.78 kB / 3.13 GB, free: 186.7 MB / 0.8855 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.389e-05/7.308, allocations: 32.3 kB / 3.13 GB, free: 186.6 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002537/7.309, allocations: 186.1 kB / 3.13 GB, free: 186.4 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.209e-05/7.309, allocations: 30.56 kB / 3.13 GB, free: 186.4 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=12): time 2.454e-06/7.309, allocations: 4 kB / 3.13 GB, free: 186.4 MB / 0.8855 GB Notification: Performance of matching and sorting (n=19): time 0.001343/7.31, allocations: 0.5142 MB / 3.13 GB, free: 185.9 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.889e-05/7.31, allocations: 63.3 kB / 3.13 GB, free: 185.8 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.542e-05/7.31, allocations: 92.67 kB / 3.13 GB, free: 185.7 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.809e-05/7.31, allocations: 33.52 kB / 3.131 GB, free: 185.7 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 3.008e-05/7.31, allocations: 80.52 kB / 3.131 GB, free: 185.6 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 7.11e-05/7.31, allocations: 66.02 kB / 3.131 GB, free: 185.5 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.052e-06/7.31, allocations: 4.125 kB / 3.131 GB, free: 185.5 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 7.906e-05/7.31, allocations: 322.3 kB / 3.131 GB, free: 185.2 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.987e-05/7.31, allocations: 30.56 kB / 3.131 GB, free: 185.2 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.127e-05/7.311, allocations: 66.05 kB / 3.131 GB, free: 185.1 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.109e-05/7.311, allocations: 51.33 kB / 3.131 GB, free: 185.1 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/7.311, allocations: 4 kB / 3.131 GB, free: 185.1 MB / 0.8855 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.000203/7.311, allocations: 147.1 kB / 3.131 GB, free: 185 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 2.388e-05/7.311, allocations: 9.719 kB / 3.131 GB, free: 185 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/7.311, allocations: 4 kB / 3.131 GB, free: 185 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.021e-05/7.311, allocations: 0 / 3.131 GB, free: 185 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001755/7.311, allocations: 39.8 kB / 3.131 GB, free: 184.9 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.254e-05/7.311, allocations: 0 / 3.131 GB, free: 184.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.199e-05/7.311, allocations: 7.953 kB / 3.131 GB, free: 184.9 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.391e-05/7.311, allocations: 7.625 kB / 3.131 GB, free: 184.9 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * 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.81e-05/7.311, allocations: 116.2 kB / 3.131 GB, free: 184.8 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.451e-05/7.311, allocations: 7.906 kB / 3.131 GB, free: 184.8 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.743e-05/7.311, allocations: 19.78 kB / 3.131 GB, free: 184.8 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.992e-06/7.311, allocations: 4 kB / 3.131 GB, free: 184.8 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.955e-06/7.311, allocations: 3.938 kB / 3.131 GB, free: 184.8 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.532e-06/7.311, allocations: 3.984 kB / 3.131 GB, free: 184.8 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001722/7.312, allocations: 195.7 kB / 3.132 GB, free: 184.5 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/7.312, allocations: 0 / 3.132 GB, free: 184.5 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000188/7.312, allocations: 39.92 kB / 3.132 GB, free: 184.5 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/7.312, allocations: 0 / 3.132 GB, free: 184.5 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.582e-05/7.312, allocations: 3.562 kB / 3.132 GB, free: 184.5 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/7.312, allocations: 4 kB / 3.132 GB, free: 184.5 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/7.312, allocations: 4 kB / 3.132 GB, free: 184.5 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003129/7.312, allocations: 206.7 kB / 3.132 GB, free: 184.3 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 8.438e-05/7.312, allocations: 89 kB / 3.132 GB, free: 184.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.482e-05/7.312, allocations: 3.562 kB / 3.132 GB, free: 184.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001111/7.312, allocations: 7.938 kB / 3.132 GB, free: 184.2 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.371e-05/7.312, allocations: 15.73 kB / 3.132 GB, free: 184.2 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.112e-05/7.312, allocations: 7.938 kB / 3.132 GB, free: 184.2 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 3.137e-05/7.313, allocations: 87.2 kB / 3.132 GB, free: 184.1 MB / 0.8855 GB Notification: Performance of sort global known variables: time 2.01e-07/7.313, allocations: 0 / 3.132 GB, free: 184.1 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0004042/7.313, allocations: 64.5 kB / 3.132 GB, free: 184.1 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (hLiqSym,hSteSym,hAirSym,cpSym,cvSym) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (19): * Single equations (assignments): 19 * 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.0009316/7.314, allocations: 0.5619 MB / 3.133 GB, free: 183.5 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002217/7.314, allocations: 96.67 kB / 3.133 GB, free: 183.4 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 3.105e-06/7.314, allocations: 0 / 3.133 GB, free: 183.4 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 7.348e-05/7.314, allocations: 61.14 kB / 3.133 GB, free: 183.4 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001954/7.314, allocations: 8 kB / 3.133 GB, free: 183.4 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007749/7.315, allocations: 461.4 kB / 3.133 GB, free: 182.9 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002145/7.315, allocations: 0.7128 MB / 3.134 GB, free: 182.2 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.000159/7.316, allocations: 16.77 kB / 3.134 GB, free: 182.2 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.576e-05/7.316, allocations: 19.42 kB / 3.134 GB, free: 182.1 MB / 0.8855 GB Notification: Performance of SimCode: time 4.51e-07/7.316, allocations: 0 / 3.134 GB, free: 182.1 MB / 0.8855 GB Notification: Performance of Templates: time 0.01263/7.328, allocations: 9.782 MB / 3.144 GB, free: 172.4 MB / 0.8855 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Media.Examples.AirDerivativeCheck.makefile (rm -f Buildings_maint.7.0.x_Buildings.Media.Examples.AirDerivativeCheck.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Media.Examples.AirDerivativeCheck.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Media.Examples.AirDerivativeCheck.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Media.Examples.AirDerivativeCheck.sim & ./Buildings_maint.7.0.x_Buildings.Media.Examples.AirDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Media.Examples.AirDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Media.Examples.AirDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Media_Examples_AirDerivativeCheck.csv","../files/Buildings_maint.7.0.x_Buildings.Media.Examples.AirDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches