Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.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_9_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_9_Buildings.Media.Examples.AirDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008369/0.000837, allocations: 90.83 kB / 15.36 MB, free: 0.7383 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.004896/0.004896, allocations: 172.4 kB / 16.26 MB, free: 6.613 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.461/1.461, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.501/2.501, allocations: 390.9 MB / 0.6663 GB, free: 2.398 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003683/0.0003683, allocations: 12 kB / 0.8159 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6805/0.6808, allocations: 142.4 MB / 0.955 GB, free: 7.66 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirDerivativeCheck): time 0.001373/0.6823, allocations: 1.057 MB / 0.9561 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1623/0.8446, allocations: 144.3 MB / 1.097 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.937e-05/0.8447, allocations: 0 / 1.097 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 4.344e-05/0.8447, allocations: 0 / 1.097 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001348/0.8449, allocations: 15.91 kB / 1.097 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001199/0.8461, allocations: 294.9 kB / 1.097 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001448/0.8462, allocations: 87.73 kB / 1.097 GB, free: 13.12 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.102e-05/0.8463, allocations: 4 kB / 1.097 GB, free: 13.11 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 5.003e-05/0.8464, allocations: 31.91 kB / 1.097 GB, free: 13.08 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001087/0.8465, allocations: 31.89 kB / 1.097 GB, free: 13.05 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.439e-05/0.8465, allocations: 8 kB / 1.097 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00101/0.8475, allocations: 498.7 kB / 1.098 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 6.386e-05/0.8476, allocations: 15.92 kB / 1.098 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.346e-05/0.8477, allocations: 57.61 kB / 1.098 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0004433/0.8481, allocations: 185.4 kB / 1.098 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.167e-06/0.8481, allocations: 0 / 1.098 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.174e-06/0.8481, allocations: 0 / 1.098 GB, free: 12.3 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.51e-06/0.8481, allocations: 0 / 1.098 GB, free: 12.3 MB / 0.8575 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.0005296/0.8487, allocations: 379.4 kB / 1.098 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.587e-05/0.8487, allocations: 11.97 kB / 1.098 GB, free: 11.87 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004716/0.8492, allocations: 40.8 kB / 1.099 GB, free: 11.83 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001249/0.8493, allocations: 168.3 kB / 1.099 GB, free: 11.62 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.256e-05/0.8494, allocations: 11.94 kB / 1.099 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.763e-05/0.8494, allocations: 8 kB / 1.099 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001818/0.8496, allocations: 77.64 kB / 1.099 GB, free: 11.52 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.268e-06/0.8496, allocations: 0 / 1.099 GB, free: 11.52 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.415e-05/0.8497, allocations: 4 kB / 1.099 GB, free: 11.52 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.382e-06/0.8497, allocations: 4 kB / 1.099 GB, free: 11.52 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001012/0.8498, allocations: 43.95 kB / 1.099 GB, free: 11.47 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002246/0.85, allocations: 189.4 kB / 1.099 GB, free: 11.24 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001866/0.8502, allocations: 90.62 kB / 1.099 GB, free: 11.14 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.415e-05/0.8503, allocations: 32.84 kB / 1.099 GB, free: 11.11 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002463/0.8506, allocations: 182.2 kB / 1.099 GB, free: 10.89 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.579e-05/0.8506, allocations: 34.89 kB / 1.099 GB, free: 10.85 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=12): time 3.076e-06/0.8506, allocations: 0 / 1.099 GB, free: 10.85 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19): time 0.001411/0.852, allocations: 0.5376 MB / 1.1 GB, free: 10.26 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.642e-05/0.8521, allocations: 59.34 kB / 1.1 GB, free: 10.19 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.578e-05/0.8521, allocations: 105.8 kB / 1.1 GB, free: 10.07 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.968e-05/0.8522, allocations: 25.7 kB / 1.1 GB, free: 10.04 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.172e-05/0.8522, allocations: 84.52 kB / 1.1 GB, free: 9.957 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 7.531e-05/0.8523, allocations: 67 kB / 1.1 GB, free: 9.891 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.53e-05/0.8523, allocations: 33.83 kB / 1.1 GB, free: 9.852 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.000111/0.8525, allocations: 318.8 kB / 1.101 GB, free: 9.531 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.551e-05/0.8525, allocations: 31.98 kB / 1.101 GB, free: 9.5 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.923e-05/0.8526, allocations: 70.45 kB / 1.101 GB, free: 9.422 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001818/0.8528, allocations: 127.3 kB / 1.101 GB, free: 9.285 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.343e-06/0.8528, allocations: 0 / 1.101 GB, free: 9.285 MB / 0.8575 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002379/0.8531, allocations: 153.5 kB / 1.101 GB, free: 9.129 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.79e-05/0.8531, allocations: 4 kB / 1.101 GB, free: 9.125 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.8531, allocations: 4 kB / 1.101 GB, free: 9.121 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.704e-05/0.8531, allocations: 0 / 1.101 GB, free: 9.121 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002455/0.8534, allocations: 43.91 kB / 1.101 GB, free: 9.078 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.18e-05/0.8534, allocations: 4 kB / 1.101 GB, free: 9.074 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.589e-05/0.8535, allocations: 7.938 kB / 1.101 GB, free: 9.066 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.19e-05/0.8535, allocations: 11.98 kB / 1.101 GB, free: 9.055 MB / 0.8575 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 () * Number of clocked 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001045/0.8536, allocations: 121.8 kB / 1.101 GB, free: 8.926 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.592e-05/0.8537, allocations: 11.91 kB / 1.101 GB, free: 8.914 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.39e-05/0.8537, allocations: 16.44 kB / 1.101 GB, free: 8.895 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.8537, allocations: 0 / 1.101 GB, free: 8.895 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.648e-06/0.8538, allocations: 4 kB / 1.101 GB, free: 8.891 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.8538, allocations: 7.922 kB / 1.101 GB, free: 8.883 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000172/0.8539, allocations: 193.6 kB / 1.101 GB, free: 8.645 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.304e-06/0.854, allocations: 4 kB / 1.101 GB, free: 8.641 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002016/0.8542, allocations: 35.92 kB / 1.101 GB, free: 8.605 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.831e-06/0.8542, allocations: 4 kB / 1.101 GB, free: 8.602 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.356e-05/0.8542, allocations: 4 kB / 1.101 GB, free: 8.598 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.8542, allocations: 4.125 kB / 1.101 GB, free: 8.594 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.8542, allocations: 4 kB / 1.101 GB, free: 8.59 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003019/0.8545, allocations: 215.6 kB / 1.102 GB, free: 8.363 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 7.963e-05/0.8546, allocations: 93 kB / 1.102 GB, free: 8.254 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.155e-05/0.8546, allocations: 4.062 kB / 1.102 GB, free: 8.25 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001343/0.8548, allocations: 4 kB / 1.102 GB, free: 8.246 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.249e-05/0.8548, allocations: 19.86 kB / 1.102 GB, free: 8.227 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.155e-05/0.8548, allocations: 8 kB / 1.102 GB, free: 8.219 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.305e-05/0.8549, allocations: 83.22 kB / 1.102 GB, free: 8.137 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.4e-07/0.8549, allocations: 0 / 1.102 GB, free: 8.137 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002444/0.8551, allocations: 32 kB / 1.102 GB, free: 8.105 MB / 0.8575 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 () * Number of clocked 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 (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.0001581/0.8553, allocations: 103.2 kB / 1.102 GB, free: 7.996 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002153/0.8555, allocations: 107.8 kB / 1.102 GB, free: 7.891 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 5.581e-06/0.8555, allocations: 4.094 kB / 1.102 GB, free: 7.887 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 7.257e-05/0.8556, allocations: 47.92 kB / 1.102 GB, free: 7.84 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002767/0.8559, allocations: 15.98 kB / 1.102 GB, free: 7.824 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009666/0.8569, allocations: 0.6241 MB / 1.103 GB, free: 7.172 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002948/0.8572, allocations: 0.705 MB / 1.103 GB, free: 6.441 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001352/0.8573, allocations: 16.64 kB / 1.103 GB, free: 6.426 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.339e-05/0.8574, allocations: 15.44 kB / 1.103 GB, free: 6.41 MB / 0.8575 GB Notification: Performance of SimCode: time 4.71e-07/0.8574, allocations: 4 kB / 1.103 GB, free: 6.406 MB / 0.8575 GB Notification: Performance of Templates: time 0.004157/0.8615, allocations: 1.058 MB / 1.104 GB, free: 5.352 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.makefile (rm -f Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.sim & ./Buildings_9_Buildings.Media.Examples.AirDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.AirDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_AirDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches