Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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_10_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_10_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.000943/0.0009427, allocations: 86.56 kB / 15.06 MB, free: 1.09 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.001067/0.001067, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.469/1.469, allocations: 223.3 MB / 240 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.685/2.685, allocations: 437.7 MB / 0.7117 GB, free: 7.039 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003978/0.0003979, allocations: 8 kB / 0.8722 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7735/0.7739, allocations: 153.8 MB / 1.022 GB, free: 36 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.001515/0.7755, allocations: 0.9799 MB / 1.023 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.1707/0.9463, allocations: 133.5 MB / 1.154 GB, free: 9.203 MB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.203e-05/0.9464, allocations: 4 kB / 1.154 GB, free: 9.199 MB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 2.126e-05/0.9464, allocations: 0 / 1.154 GB, free: 9.199 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 6.947e-05/0.9465, allocations: 3.984 kB / 1.154 GB, free: 9.195 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004539/0.9469, allocations: 75.58 kB / 1.154 GB, free: 9.121 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 7.234e-05/0.947, allocations: 31.91 kB / 1.154 GB, free: 9.09 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 5.996e-05/0.9471, allocations: 0 / 1.154 GB, free: 9.09 MB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 5.7e-05/0.9472, allocations: 19.92 kB / 1.154 GB, free: 9.07 MB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 7.927e-05/0.9472, allocations: 19.97 kB / 1.154 GB, free: 9.051 MB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 1.607e-05/0.9473, allocations: 0 / 1.154 GB, free: 9.051 MB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003043/0.9476, allocations: 71.78 kB / 1.154 GB, free: 8.98 MB / 0.9044 GB Notification: Performance of NFScalarize.scalarize: time 2.037e-05/0.9476, allocations: 15.97 kB / 1.154 GB, free: 8.965 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 3.478e-05/0.9477, allocations: 29.7 kB / 1.154 GB, free: 8.93 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.0001352/0.9478, allocations: 45.92 kB / 1.154 GB, free: 8.887 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.9478, allocations: 0 / 1.154 GB, free: 8.887 MB / 0.9044 GB Notification: Performance of FrontEnd: time 2.675e-06/0.9478, allocations: 0 / 1.154 GB, free: 8.887 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 5.01e-06/0.9478, allocations: 0 / 1.154 GB, free: 8.887 MB / 0.9044 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.0004056/0.9482, allocations: 348.9 kB / 1.154 GB, free: 8.5 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.718e-05/0.9483, allocations: 16.52 kB / 1.154 GB, free: 8.484 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002224/0.9485, allocations: 11.98 kB / 1.154 GB, free: 8.473 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001183/0.9487, allocations: 167 kB / 1.155 GB, free: 8.27 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.558e-05/0.9487, allocations: 4 kB / 1.155 GB, free: 8.266 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.471e-05/0.9487, allocations: 11.98 kB / 1.155 GB, free: 8.254 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001356/0.9489, allocations: 45.67 kB / 1.155 GB, free: 8.203 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.9489, allocations: 0 / 1.155 GB, free: 8.203 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.68e-05/0.9489, allocations: 4 kB / 1.155 GB, free: 8.199 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.408e-06/0.9489, allocations: 0 / 1.155 GB, free: 8.199 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.396e-05/0.949, allocations: 19.98 kB / 1.155 GB, free: 8.18 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002009/0.9492, allocations: 169.5 kB / 1.155 GB, free: 7.965 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 9.788e-05/0.9493, allocations: 58.45 kB / 1.155 GB, free: 7.898 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.15e-05/0.9493, allocations: 16.84 kB / 1.155 GB, free: 7.879 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 1.088e-05/0.9493, allocations: 3.938 kB / 1.155 GB, free: 7.875 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.956e-05/0.9494, allocations: 34.56 kB / 1.155 GB, free: 7.832 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=7): time 1.453e-06/0.9494, allocations: 4 kB / 1.155 GB, free: 7.828 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11): time 0.0007613/0.9502, allocations: 366.9 kB / 1.155 GB, free: 7.418 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.525e-05/0.9502, allocations: 51.41 kB / 1.155 GB, free: 7.355 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.428e-05/0.9503, allocations: 97.84 kB / 1.155 GB, free: 7.25 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.797e-05/0.9503, allocations: 29.7 kB / 1.155 GB, free: 7.215 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 2.774e-05/0.9503, allocations: 80.14 kB / 1.155 GB, free: 7.133 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 4.746e-05/0.9504, allocations: 43.48 kB / 1.156 GB, free: 7.09 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.256e-06/0.9504, allocations: 11.94 kB / 1.156 GB, free: 7.078 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001039/0.9505, allocations: 314.8 kB / 1.156 GB, free: 6.762 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.597e-05/0.9505, allocations: 19.98 kB / 1.156 GB, free: 6.742 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.751e-05/0.9506, allocations: 37.58 kB / 1.156 GB, free: 6.703 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.943e-05/0.9506, allocations: 27.97 kB / 1.156 GB, free: 6.676 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.22e-07/0.9507, allocations: 0 / 1.156 GB, free: 6.676 MB / 0.9044 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001331/0.9508, allocations: 93.62 kB / 1.156 GB, free: 6.578 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.722e-05/0.9508, allocations: 8 kB / 1.156 GB, free: 6.57 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.801e-06/0.9508, allocations: 0 / 1.156 GB, free: 6.57 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.57e-05/0.9509, allocations: 4 kB / 1.156 GB, free: 6.566 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001193/0.951, allocations: 19.98 kB / 1.156 GB, free: 6.547 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.426e-06/0.951, allocations: 4 kB / 1.156 GB, free: 6.543 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.935e-05/0.951, allocations: 0 / 1.156 GB, free: 6.543 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.358e-06/0.951, allocations: 8 kB / 1.156 GB, free: 6.535 MB / 0.9044 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.255e-05/0.9511, allocations: 117.7 kB / 1.156 GB, free: 6.41 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.399e-05/0.9512, allocations: 7.906 kB / 1.156 GB, free: 6.402 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.997e-05/0.9512, allocations: 11.97 kB / 1.156 GB, free: 6.391 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.168e-06/0.9512, allocations: 4 kB / 1.156 GB, free: 6.387 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.9512, allocations: 0 / 1.156 GB, free: 6.387 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.139e-06/0.9512, allocations: 3.984 kB / 1.156 GB, free: 6.383 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00014/0.9514, allocations: 169.6 kB / 1.156 GB, free: 6.168 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.9514, allocations: 0 / 1.156 GB, free: 6.168 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000118/0.9515, allocations: 27.98 kB / 1.156 GB, free: 6.141 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.9515, allocations: 0 / 1.156 GB, free: 6.141 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.109e-05/0.9515, allocations: 0 / 1.156 GB, free: 6.141 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.207e-06/0.9515, allocations: 7.938 kB / 1.156 GB, free: 6.133 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.9515, allocations: 0 / 1.156 GB, free: 6.133 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001999/0.9518, allocations: 133 kB / 1.156 GB, free: 5.984 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 7.409e-05/0.9518, allocations: 88.97 kB / 1.157 GB, free: 5.879 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.564e-05/0.9519, allocations: 0 / 1.157 GB, free: 5.879 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.29e-05/0.9519, allocations: 12.03 kB / 1.157 GB, free: 5.867 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.708e-05/0.952, allocations: 4 kB / 1.157 GB, free: 5.863 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.214e-06/0.952, allocations: 0 / 1.157 GB, free: 5.863 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 3.658e-05/0.952, allocations: 91.2 kB / 1.157 GB, free: 5.773 MB / 0.9044 GB Notification: Performance of sort global known variables: time 9e-08/0.952, allocations: 0 / 1.157 GB, free: 5.773 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002055/0.9522, allocations: 16 kB / 1.157 GB, free: 5.758 MB / 0.9044 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 (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.0001129/0.9524, allocations: 105.2 kB / 1.157 GB, free: 5.648 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001303/0.9525, allocations: 55.86 kB / 1.157 GB, free: 5.594 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.9525, allocations: 0 / 1.157 GB, free: 5.594 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 4.366e-05/0.9526, allocations: 35.92 kB / 1.157 GB, free: 5.559 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002215/0.9528, allocations: 4 kB / 1.157 GB, free: 5.555 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006106/0.9534, allocations: 386.8 kB / 1.157 GB, free: 5.145 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002785/0.9537, allocations: 0.6926 MB / 1.158 GB, free: 4.426 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 7.346e-05/0.9538, allocations: 8.672 kB / 1.158 GB, free: 4.418 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.158e-05/0.9538, allocations: 15.38 kB / 1.158 GB, free: 4.402 MB / 0.9044 GB Notification: Performance of SimCode: time 2.21e-07/0.9538, allocations: 0 / 1.158 GB, free: 4.402 MB / 0.9044 GB Notification: Performance of Templates: time 0.003172/0.957, allocations: 0.5825 MB / 1.159 GB, free: 3.82 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.makefile (rm -f Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & ./Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches