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.007022/0.007022, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.001278/0.001278, allocations: 199.1 kB / 16.68 MB, free: 5.93 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.349/1.349, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.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.371/2.371, allocations: 390.2 MB / 0.6648 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 63.89 kB / 0.9508 GB, free: 7.688 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8635/0.8649, allocations: 140.4 MB / 1.088 GB, free: 5.543 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirDerivativeCheck): time 0.002125/0.867, allocations: 1.348 MB / 1.089 GB, free: 4.59 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.191/1.058, allocations: 148.1 MB / 1.234 GB, free: 5.316 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.656e-05/1.058, allocations: 0 / 1.234 GB, free: 5.316 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 4.566e-05/1.058, allocations: 7.922 kB / 1.234 GB, free: 5.309 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0001284/1.058, allocations: 19.45 kB / 1.234 GB, free: 5.293 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.001166/1.06, allocations: 334.3 kB / 1.234 GB, free: 5.051 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001462/1.06, allocations: 65.2 kB / 1.234 GB, free: 5.02 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.322e-05/1.06, allocations: 10.33 kB / 1.234 GB, free: 5.012 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 6.27e-05/1.06, allocations: 31.22 kB / 1.234 GB, free: 4.996 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001047/1.06, allocations: 28.47 kB / 1.234 GB, free: 4.98 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.525e-05/1.06, allocations: 3.875 kB / 1.234 GB, free: 4.98 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000966/1.061, allocations: 410.3 kB / 1.235 GB, free: 4.758 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 6.556e-05/1.061, allocations: 20.19 kB / 1.235 GB, free: 4.742 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.904e-05/1.061, allocations: 27.39 kB / 1.235 GB, free: 4.727 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0004151/1.062, allocations: 164.1 kB / 1.235 GB, free: 4.645 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.242e-06/1.062, allocations: 0 / 1.235 GB, free: 4.645 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.463e-06/1.062, allocations: 5.312 kB / 1.235 GB, free: 4.641 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 7.194e-06/1.062, allocations: 4 kB / 1.235 GB, free: 4.637 MB / 0.9669 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.0005263/1.062, allocations: 386.5 kB / 1.235 GB, free: 4.242 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.104e-05/1.062, allocations: 9.531 kB / 1.235 GB, free: 4.242 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004339/1.063, allocations: 34.55 kB / 1.235 GB, free: 4.23 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001128/1.063, allocations: 161.4 kB / 1.235 GB, free: 4.035 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.854e-05/1.063, allocations: 10.38 kB / 1.235 GB, free: 4.027 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.408e-05/1.063, allocations: 13.78 kB / 1.235 GB, free: 4.02 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001887/1.063, allocations: 85.83 kB / 1.236 GB, free: 3.953 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.465e-06/1.063, allocations: 0 / 1.236 GB, free: 3.953 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.677e-05/1.063, allocations: 2.25 kB / 1.236 GB, free: 3.953 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/1.063, allocations: 0.9688 kB / 1.236 GB, free: 3.953 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001075/1.063, allocations: 49.33 kB / 1.236 GB, free: 3.93 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00021/1.063, allocations: 184.9 kB / 1.236 GB, free: 3.715 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001935/1.064, allocations: 100.1 kB / 1.236 GB, free: 3.652 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.82e-05/1.064, allocations: 32.91 kB / 1.236 GB, free: 3.633 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002373/1.064, allocations: 172.3 kB / 1.236 GB, free: 3.441 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.006e-05/1.064, allocations: 40.03 kB / 1.236 GB, free: 3.395 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=12): time 1.162e-06/1.064, allocations: 0 / 1.236 GB, free: 3.395 MB / 0.9669 GB Notification: Performance of matching and sorting (n=19): time 0.001345/1.065, allocations: 0.5413 MB / 1.237 GB, free: 2.992 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.282e-05/1.065, allocations: 54.22 kB / 1.237 GB, free: 2.93 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.644e-05/1.065, allocations: 100.3 kB / 1.237 GB, free: 2.824 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.74e-05/1.065, allocations: 26.89 kB / 1.237 GB, free: 2.793 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 2.981e-05/1.065, allocations: 93.72 kB / 1.237 GB, free: 2.699 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 6.178e-05/1.066, allocations: 66.84 kB / 1.237 GB, free: 2.641 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.604e-05/1.066, allocations: 39.36 kB / 1.237 GB, free: 2.609 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 9.587e-05/1.066, allocations: 320.8 kB / 1.237 GB, free: 2.289 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.638e-05/1.066, allocations: 37.11 kB / 1.237 GB, free: 2.273 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.564e-05/1.066, allocations: 75.73 kB / 1.237 GB, free: 2.215 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001665/1.066, allocations: 121.2 kB / 1.238 GB, free: 2.133 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.102e-06/1.066, allocations: 1.062 kB / 1.238 GB, free: 2.133 MB / 0.9669 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002225/1.066, allocations: 157.2 kB / 1.238 GB, free: 2.043 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.633e-05/1.066, allocations: 5.656 kB / 1.238 GB, free: 2.043 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/1.066, allocations: 1.094 kB / 1.238 GB, free: 2.043 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.585e-05/1.066, allocations: 2.25 kB / 1.238 GB, free: 2.043 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001748/1.066, allocations: 39.61 kB / 1.238 GB, free: 2.035 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.414e-06/1.067, allocations: 1.125 kB / 1.238 GB, free: 2.035 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.862e-05/1.067, allocations: 14.33 kB / 1.238 GB, free: 2.023 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.236e-05/1.067, allocations: 5.062 kB / 1.238 GB, free: 2.023 MB / 0.9669 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 9.28e-05/1.067, allocations: 131.3 kB / 1.238 GB, free: 1.891 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.094e-05/1.067, allocations: 8.312 kB / 1.238 GB, free: 1.887 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.569e-05/1.067, allocations: 17.56 kB / 1.238 GB, free: 1.871 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.997e-06/1.067, allocations: 2.219 kB / 1.238 GB, free: 1.871 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/1.067, allocations: 0 / 1.238 GB, free: 1.871 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.23e-06/1.067, allocations: 3.938 kB / 1.238 GB, free: 1.867 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001608/1.067, allocations: 194 kB / 1.238 GB, free: 1.648 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.293e-06/1.067, allocations: 0 / 1.238 GB, free: 1.648 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001893/1.067, allocations: 38.44 kB / 1.238 GB, free: 1.641 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/1.067, allocations: 5.219 kB / 1.238 GB, free: 1.637 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.251e-05/1.067, allocations: 1.188 kB / 1.238 GB, free: 1.637 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.425e-06/1.067, allocations: 1.344 kB / 1.238 GB, free: 1.637 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/1.067, allocations: 4 kB / 1.238 GB, free: 1.633 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003181/1.068, allocations: 210.6 kB / 1.238 GB, free: 1.496 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 7.005e-05/1.068, allocations: 91.78 kB / 1.238 GB, free: 1.395 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.998e-05/1.068, allocations: 9.109 kB / 1.238 GB, free: 1.387 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001187/1.068, allocations: 11.44 kB / 1.238 GB, free: 1.379 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.793e-05/1.068, allocations: 17.52 kB / 1.238 GB, free: 1.367 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.473e-05/1.068, allocations: 8.688 kB / 1.238 GB, free: 1.363 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.313e-05/1.068, allocations: 76.53 kB / 1.239 GB, free: 1.289 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.31e-07/1.068, allocations: 0 / 1.239 GB, free: 1.289 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002192/1.068, allocations: 26 kB / 1.239 GB, free: 1.285 MB / 0.9669 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.0001491/1.068, allocations: 114.5 kB / 1.239 GB, free: 1.18 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002034/1.068, allocations: 104.1 kB / 1.239 GB, free: 1.145 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 4.578e-06/1.068, allocations: 1.375 kB / 1.239 GB, free: 1.145 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 7.16e-05/1.069, allocations: 58.19 kB / 1.239 GB, free: 1.121 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000227/1.069, allocations: 21.2 kB / 1.239 GB, free: 1.109 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007703/1.07, allocations: 0.5154 MB / 1.239 GB, free: 0.6875 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002602/1.07, allocations: 0.6975 MB / 1.24 GB, free: 15.98 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 9.725e-05/1.07, allocations: 22.25 kB / 1.24 GB, free: 15.97 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.081e-05/1.07, allocations: 19.69 kB / 1.24 GB, free: 15.96 MB / 0.9825 GB Notification: Performance of SimCode: time 2.3e-07/1.07, allocations: 0 / 1.24 GB, free: 15.96 MB / 0.9825 GB Notification: Performance of Templates: time 0.004035/1.074, allocations: 1.125 MB / 1.241 GB, free: 15.39 MB / 0.9825 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