Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.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.Specialized.Air.Examples.PerfectGasDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.hSteSym.|der.hSteCod.|der.hAirSym.|der.hAirCod.",fileNamePrefix="Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck") translateModel(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.hSteSym.|der.hSteCod.|der.hAirSym.|der.hAirCod.",fileNamePrefix="Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001372/0.001372, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001643/0.001643, allocations: 198.4 kB / 16.14 MB, free: 6.648 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.385/1.385, allocations: 222.9 MB / 239.8 MB, free: 4.59 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.491/2.491, allocations: 390.2 MB / 0.6642 GB, free: 0.5664 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001248/0.001248, allocations: 67.83 kB / 0.8119 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6897/0.6909, allocations: 140.4 MB / 0.9489 GB, free: 9.379 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002324/0.6933, allocations: 1.338 MB / 0.9502 GB, free: 8.312 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1548/0.8481, allocations: 144.7 MB / 1.092 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.256e-05/0.8482, allocations: 0 / 1.092 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.109e-05/0.8483, allocations: 0 / 1.092 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.892e-05/0.8483, allocations: 0 / 1.092 GB, free: 15.7 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003845/0.8487, allocations: 87.61 kB / 1.092 GB, free: 15.61 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 5.527e-05/0.8488, allocations: 27.92 kB / 1.092 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.092e-05/0.8488, allocations: 4 kB / 1.092 GB, free: 15.58 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.747e-05/0.8489, allocations: 19.94 kB / 1.092 GB, free: 15.56 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.313e-05/0.8489, allocations: 19.91 kB / 1.092 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.21e-05/0.8489, allocations: 4 kB / 1.092 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002497/0.8492, allocations: 75.77 kB / 1.092 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.441e-05/0.8492, allocations: 3.984 kB / 1.092 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.91e-05/0.8492, allocations: 19.92 kB / 1.092 GB, free: 15.44 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001442/0.8494, allocations: 62 kB / 1.092 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.657e-06/0.8494, allocations: 0 / 1.092 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of FrontEnd: time 9.71e-07/0.8494, allocations: 0 / 1.092 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.63e-06/0.8494, allocations: 3.938 kB / 1.092 GB, free: 15.38 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000346/0.8498, allocations: 363.4 kB / 1.092 GB, free: 14.98 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.192e-05/0.8498, allocations: 8.031 kB / 1.092 GB, free: 14.97 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001843/0.85, allocations: 8.938 kB / 1.092 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.373e-05/0.8501, allocations: 164.4 kB / 1.092 GB, free: 14.76 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.078e-05/0.8501, allocations: 7.938 kB / 1.092 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.1e-05/0.8501, allocations: 8 kB / 1.092 GB, free: 14.75 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001038/0.8503, allocations: 49.67 kB / 1.092 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.821e-06/0.8503, allocations: 0 / 1.092 GB, free: 14.69 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.308e-05/0.8503, allocations: 8 kB / 1.092 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.637e-06/0.8503, allocations: 3.938 kB / 1.092 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.268e-05/0.8503, allocations: 11.98 kB / 1.092 GB, free: 14.67 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001528/0.8505, allocations: 181.4 kB / 1.093 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 8.019e-05/0.8506, allocations: 50.56 kB / 1.093 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.79e-05/0.8506, allocations: 12.86 kB / 1.093 GB, free: 14.37 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.044e-05/0.8506, allocations: 0 / 1.093 GB, free: 14.37 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.122e-05/0.8507, allocations: 42.55 kB / 1.093 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 5.911e-06/0.8507, allocations: 7.922 kB / 1.093 GB, free: 14.31 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0006751/0.8514, allocations: 362.4 kB / 1.093 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.237e-05/0.8514, allocations: 51.41 kB / 1.093 GB, free: 13.84 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.308e-05/0.8515, allocations: 93.86 kB / 1.093 GB, free: 13.74 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.577e-05/0.8515, allocations: 33.83 kB / 1.093 GB, free: 13.7 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.252e-05/0.8515, allocations: 80.14 kB / 1.093 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.386e-05/0.8516, allocations: 43.3 kB / 1.093 GB, free: 13.58 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.309e-05/0.8516, allocations: 29.7 kB / 1.093 GB, free: 13.54 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 9.1e-05/0.8517, allocations: 322.8 kB / 1.094 GB, free: 13.22 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.484e-05/0.8518, allocations: 15.98 kB / 1.094 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.39e-05/0.8518, allocations: 37.7 kB / 1.094 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.546e-05/0.8519, allocations: 62.2 kB / 1.094 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.02e-07/0.8519, allocations: 0 / 1.094 GB, free: 13.09 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001258/0.852, allocations: 101.6 kB / 1.094 GB, free: 12.99 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.16e-05/0.8521, allocations: 7.938 kB / 1.094 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.429e-06/0.8521, allocations: 0 / 1.094 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.035e-05/0.8521, allocations: 0 / 1.094 GB, free: 12.98 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001083/0.8522, allocations: 20 kB / 1.094 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.8522, allocations: 3.984 kB / 1.094 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.242e-05/0.8522, allocations: 4 kB / 1.094 GB, free: 12.95 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.652e-06/0.8523, allocations: 4 kB / 1.094 GB, free: 12.95 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (14): * Single equations (assignments): 14 * 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 7.465e-05/0.8523, allocations: 121.8 kB / 1.094 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.889e-05/0.8524, allocations: 11.84 kB / 1.094 GB, free: 12.81 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.485e-05/0.8524, allocations: 11.91 kB / 1.094 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.8524, allocations: 0 / 1.094 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.9e-06/0.8524, allocations: 3.938 kB / 1.094 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.8524, allocations: 0 / 1.094 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001158/0.8525, allocations: 177.6 kB / 1.094 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.8526, allocations: 0 / 1.094 GB, free: 12.57 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001192/0.8527, allocations: 27.98 kB / 1.094 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.534e-06/0.8527, allocations: 4 kB / 1.094 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.556e-06/0.8527, allocations: 0 / 1.094 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.8527, allocations: 0 / 1.094 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.8527, allocations: 0 / 1.094 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001864/0.8529, allocations: 137 kB / 1.094 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.943e-05/0.853, allocations: 92.98 kB / 1.095 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.382e-05/0.853, allocations: 0 / 1.095 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.748e-05/0.8531, allocations: 12 kB / 1.095 GB, free: 12.26 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.957e-05/0.8531, allocations: 11.98 kB / 1.095 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.362e-06/0.8531, allocations: 0 / 1.095 GB, free: 12.25 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.216e-05/0.8532, allocations: 79.28 kB / 1.095 GB, free: 12.17 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.81e-07/0.8532, allocations: 0 / 1.095 GB, free: 12.17 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0001922/0.8534, allocations: 19.94 kB / 1.095 GB, free: 12.15 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 3 (hLiqSym,hSteSym,hAirSym) * 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 (11): * Single equations (assignments): 11 * 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 8.456e-05/0.8535, allocations: 99.25 kB / 1.095 GB, free: 12.05 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001162/0.8536, allocations: 55.91 kB / 1.095 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.8536, allocations: 4.094 kB / 1.095 GB, free: 11.99 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 4.238e-05/0.8536, allocations: 31.92 kB / 1.095 GB, free: 11.96 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002131/0.8539, allocations: 9.547 kB / 1.095 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005106/0.8544, allocations: 338.7 kB / 1.095 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002028/0.8546, allocations: 0.6848 MB / 1.096 GB, free: 10.88 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 6.671e-05/0.8547, allocations: 12.66 kB / 1.096 GB, free: 10.87 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.598e-05/0.8547, allocations: 11.44 kB / 1.096 GB, free: 10.86 MB / 0.8575 GB Notification: Performance of SimCode: time 2.91e-07/0.8547, allocations: 0 / 1.096 GB, free: 10.86 MB / 0.8575 GB Notification: Performance of Templates: time 0.002438/0.8571, allocations: 0.6109 MB / 1.096 GB, free: 10.25 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.makefile (rm -f Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & ./Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches