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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001451/0.001451, 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.001831/0.001831, allocations: 193.6 kB / 16.14 MB, free: 6.652 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.489/1.489, allocations: 222.9 MB / 239.8 MB, free: 4.578 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.687/2.687, allocations: 437 MB / 0.7099 GB, free: 5.348 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001366/0.001366, allocations: 67.84 kB / 0.8685 GB, free: 5.188 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7713/0.7727, allocations: 151.6 MB / 1.017 GB, free: 2.777 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.003229/0.776, allocations: 1.346 MB / 1.018 GB, free: 1.422 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.1578/0.9338, allocations: 144.7 MB / 1.159 GB, free: 184 kB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.846e-05/0.9339, allocations: 0 / 1.159 GB, free: 184 kB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 2.845e-05/0.934, allocations: 0 / 1.159 GB, free: 184 kB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 6.03e-05/0.9341, allocations: 7.922 kB / 1.159 GB, free: 176 kB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004923/0.9346, allocations: 79.69 kB / 1.159 GB, free: 96 kB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 7.714e-05/0.9346, allocations: 31.86 kB / 1.159 GB, free: 64 kB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 5.591e-05/0.9347, allocations: 8 kB / 1.159 GB, free: 56 kB / 0.9044 GB Notification: Performance of NFEvalConstants.evaluate: time 4.438e-05/0.9348, allocations: 15.92 kB / 1.159 GB, free: 40 kB / 0.9044 GB Notification: Performance of NFSimplifyModel.simplify: time 6.279e-05/0.9348, allocations: 19.92 kB / 1.159 GB, free: 20 kB / 0.9044 GB Notification: Performance of NFPackage.collectConstants: time 1.275e-05/0.9349, allocations: 0 / 1.159 GB, free: 20 kB / 0.9044 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003049/0.9352, allocations: 79.81 kB / 1.159 GB, free: 15.94 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.671e-05/0.9352, allocations: 4 kB / 1.159 GB, free: 15.94 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 3.96e-05/0.9352, allocations: 15.92 kB / 1.159 GB, free: 15.92 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001816/0.9354, allocations: 65.84 kB / 1.16 GB, free: 15.86 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.991e-06/0.9354, allocations: 0 / 1.16 GB, free: 15.86 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.182e-06/0.9354, allocations: 0 / 1.16 GB, free: 15.86 MB / 0.92 GB Notification: Performance of Transformations before backend: time 4.659e-06/0.9355, allocations: 0 / 1.16 GB, free: 15.86 MB / 0.92 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.0004653/0.9359, allocations: 355.5 kB / 1.16 GB, free: 15.46 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.384e-05/0.936, allocations: 11.98 kB / 1.16 GB, free: 15.45 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002263/0.9362, allocations: 16.92 kB / 1.16 GB, free: 15.44 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001095/0.9363, allocations: 160.4 kB / 1.16 GB, free: 15.24 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.031e-05/0.9364, allocations: 11.94 kB / 1.16 GB, free: 15.23 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.156e-05/0.9364, allocations: 7.906 kB / 1.16 GB, free: 15.22 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001437/0.9366, allocations: 53.61 kB / 1.16 GB, free: 15.16 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.9366, allocations: 4 kB / 1.16 GB, free: 15.16 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.89e-05/0.9366, allocations: 0 / 1.16 GB, free: 15.16 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.932e-06/0.9366, allocations: 7.938 kB / 1.16 GB, free: 15.15 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.59e-05/0.9367, allocations: 15.98 kB / 1.16 GB, free: 15.14 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000188/0.9369, allocations: 165.5 kB / 1.16 GB, free: 14.93 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 9.529e-05/0.937, allocations: 46.56 kB / 1.16 GB, free: 14.87 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.8e-05/0.937, allocations: 20.84 kB / 1.16 GB, free: 14.85 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.07e-05/0.937, allocations: 3.938 kB / 1.16 GB, free: 14.84 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.529e-05/0.9371, allocations: 42.5 kB / 1.16 GB, free: 14.79 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 1.093e-06/0.9371, allocations: 0 / 1.16 GB, free: 14.79 MB / 0.92 GB Notification: Performance of matching and sorting (n=11): time 0.0008057/0.9379, allocations: 366.3 kB / 1.161 GB, free: 14.38 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.719e-05/0.9379, allocations: 51.41 kB / 1.161 GB, free: 14.32 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.995e-05/0.938, allocations: 93.86 kB / 1.161 GB, free: 14.22 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.863e-05/0.938, allocations: 33.69 kB / 1.161 GB, free: 14.18 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 3.315e-05/0.9381, allocations: 84.27 kB / 1.161 GB, free: 14.09 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 4.941e-05/0.9381, allocations: 35.47 kB / 1.161 GB, free: 14.06 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.643e-05/0.9382, allocations: 29.7 kB / 1.161 GB, free: 14.02 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.000158/0.9384, allocations: 318.8 kB / 1.161 GB, free: 13.7 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.008e-05/0.9384, allocations: 19.98 kB / 1.161 GB, free: 13.68 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.214e-05/0.9385, allocations: 37.64 kB / 1.161 GB, free: 13.64 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.509e-05/0.9386, allocations: 62.23 kB / 1.161 GB, free: 13.57 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/0.9386, allocations: 15.92 kB / 1.162 GB, free: 13.56 MB / 0.92 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001376/0.9387, allocations: 89.53 kB / 1.162 GB, free: 13.46 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.9388, allocations: 8 kB / 1.162 GB, free: 13.46 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.241e-06/0.9388, allocations: 0 / 1.162 GB, free: 13.46 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.398e-05/0.9388, allocations: 0 / 1.162 GB, free: 13.46 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000128/0.9389, allocations: 23.98 kB / 1.162 GB, free: 13.43 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.41e-06/0.9389, allocations: 0 / 1.162 GB, free: 13.43 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.404e-05/0.939, allocations: 4 kB / 1.162 GB, free: 13.43 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.978e-06/0.939, allocations: 4 kB / 1.162 GB, free: 13.43 MB / 0.92 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 9.745e-05/0.9391, allocations: 125.7 kB / 1.162 GB, free: 13.29 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.752e-05/0.9391, allocations: 4 kB / 1.162 GB, free: 13.29 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.925e-05/0.9392, allocations: 11.97 kB / 1.162 GB, free: 13.28 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.9392, allocations: 0 / 1.162 GB, free: 13.28 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.975e-06/0.9392, allocations: 0 / 1.162 GB, free: 13.28 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/0.9392, allocations: 0 / 1.162 GB, free: 13.28 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001493/0.9393, allocations: 177.6 kB / 1.162 GB, free: 13.05 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.9394, allocations: 0 / 1.162 GB, free: 13.05 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000121/0.9395, allocations: 19.98 kB / 1.162 GB, free: 13.04 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.583e-06/0.9395, allocations: 7.984 kB / 1.162 GB, free: 13.03 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.148e-05/0.9395, allocations: 8 kB / 1.162 GB, free: 13.02 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.9395, allocations: 0 / 1.162 GB, free: 13.02 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.9395, allocations: 0 / 1.162 GB, free: 13.02 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002813/0.9398, allocations: 144.4 kB / 1.162 GB, free: 12.86 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 7.335e-05/0.9399, allocations: 85.14 kB / 1.162 GB, free: 12.76 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.712e-05/0.9399, allocations: 4 kB / 1.162 GB, free: 12.76 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.553e-05/0.94, allocations: 4 kB / 1.162 GB, free: 12.75 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.518e-05/0.94, allocations: 3.984 kB / 1.162 GB, free: 12.75 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.009e-05/0.9401, allocations: 12 kB / 1.162 GB, free: 12.74 MB / 0.92 GB Notification: Performance of sorting global known variables: time 3.501e-05/0.9401, allocations: 75.28 kB / 1.162 GB, free: 12.66 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9401, allocations: 3.938 kB / 1.162 GB, free: 12.66 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002381/0.9404, allocations: 23.94 kB / 1.162 GB, free: 12.64 MB / 0.92 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 0.0001267/0.9405, allocations: 99.77 kB / 1.162 GB, free: 12.53 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0001394/0.9406, allocations: 59.97 kB / 1.162 GB, free: 12.47 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.9406, allocations: 0 / 1.162 GB, free: 12.47 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 4.513e-05/0.9407, allocations: 39.95 kB / 1.162 GB, free: 12.43 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002612/0.941, allocations: 9.891 kB / 1.163 GB, free: 12.43 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000632/0.9416, allocations: 329.2 kB / 1.163 GB, free: 12.08 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003107/0.9419, allocations: 0.6887 MB / 1.163 GB, free: 11.36 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 7.146e-05/0.942, allocations: 12.66 kB / 1.164 GB, free: 11.35 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.821e-05/0.942, allocations: 11.44 kB / 1.164 GB, free: 11.34 MB / 0.92 GB Notification: Performance of SimCode: time 3.91e-07/0.942, allocations: 0 / 1.164 GB, free: 11.34 MB / 0.92 GB Notification: Performance of Templates: time 0.002802/0.9449, allocations: 0.6102 MB / 1.164 GB, free: 10.73 MB / 0.92 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