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.001439/0.001439, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001638/0.001638, allocations: 198.6 kB / 16.54 MB, free: 6.672 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.431/1.431, allocations: 222.9 MB / 240.2 MB, free: 4.391 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.705/2.705, allocations: 437 MB / 0.7103 GB, free: 5.086 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001273/0.001273, allocations: 63.89 kB / 0.8692 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6856/0.6869, allocations: 151.6 MB / 1.017 GB, free: 2.473 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.00224/0.6891, allocations: 1.281 MB / 1.019 GB, free: 1.18 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.1589/0.8481, allocations: 147 MB / 1.162 GB, free: 13.62 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.47e-05/0.8482, allocations: 3.938 kB / 1.162 GB, free: 13.62 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 4.18e-05/0.8483, allocations: 3.938 kB / 1.162 GB, free: 13.61 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 6.113e-05/0.8484, allocations: 8 kB / 1.162 GB, free: 13.61 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005971/0.849, allocations: 99.53 kB / 1.162 GB, free: 13.51 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 8.413e-05/0.8491, allocations: 31.86 kB / 1.162 GB, free: 13.48 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 4.614e-05/0.8491, allocations: 4 kB / 1.162 GB, free: 13.47 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 5.305e-05/0.8492, allocations: 11.98 kB / 1.162 GB, free: 13.46 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 6.578e-05/0.8493, allocations: 15.92 kB / 1.162 GB, free: 13.45 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.535e-05/0.8493, allocations: 4 kB / 1.162 GB, free: 13.44 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003356/0.8496, allocations: 79.81 kB / 1.162 GB, free: 13.36 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.95e-05/0.8497, allocations: 8 kB / 1.162 GB, free: 13.36 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 3.776e-05/0.8497, allocations: 19.92 kB / 1.162 GB, free: 13.34 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0002065/0.8499, allocations: 65.84 kB / 1.162 GB, free: 13.27 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 5.049e-06/0.8499, allocations: 0 / 1.162 GB, free: 13.27 MB / 0.92 GB Notification: Performance of FrontEnd: time 2.154e-06/0.8499, allocations: 0 / 1.162 GB, free: 13.27 MB / 0.92 GB Notification: Performance of Transformations before backend: time 6.182e-06/0.85, allocations: 0 / 1.162 GB, free: 13.27 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.0005378/0.8505, allocations: 351.4 kB / 1.163 GB, free: 12.88 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 5.241e-05/0.8506, allocations: 15.98 kB / 1.163 GB, free: 12.87 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002499/0.8508, allocations: 16.86 kB / 1.163 GB, free: 12.85 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001269/0.851, allocations: 168.3 kB / 1.163 GB, free: 12.65 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.771e-05/0.851, allocations: 3.938 kB / 1.163 GB, free: 12.64 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.756e-05/0.851, allocations: 15.84 kB / 1.163 GB, free: 12.63 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001535/0.8512, allocations: 49.67 kB / 1.163 GB, free: 12.57 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.295e-05/0.8512, allocations: 0 / 1.163 GB, free: 12.57 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.645e-05/0.8512, allocations: 4 kB / 1.163 GB, free: 12.57 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.344e-06/0.8512, allocations: 4 kB / 1.163 GB, free: 12.57 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.323e-05/0.8513, allocations: 11.98 kB / 1.163 GB, free: 12.55 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002244/0.8515, allocations: 173.5 kB / 1.163 GB, free: 12.34 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 9.605e-05/0.8516, allocations: 50.5 kB / 1.163 GB, free: 12.28 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.214e-05/0.8517, allocations: 16.86 kB / 1.163 GB, free: 12.26 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.123e-05/0.8517, allocations: 3.984 kB / 1.163 GB, free: 12.25 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.298e-05/0.8517, allocations: 30.56 kB / 1.163 GB, free: 12.21 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 1.082e-06/0.8517, allocations: 0 / 1.163 GB, free: 12.21 MB / 0.92 GB Notification: Performance of matching and sorting (n=11): time 0.0008042/0.8525, allocations: 370.4 kB / 1.164 GB, free: 11.8 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.888e-05/0.8526, allocations: 55.41 kB / 1.164 GB, free: 11.73 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.525e-05/0.8527, allocations: 93.86 kB / 1.164 GB, free: 11.63 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.644e-05/0.8527, allocations: 25.7 kB / 1.164 GB, free: 11.6 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 3.486e-05/0.8527, allocations: 92.06 kB / 1.164 GB, free: 11.51 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 4.255e-05/0.8528, allocations: 39.38 kB / 1.164 GB, free: 11.47 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.21e-05/0.8528, allocations: 29.7 kB / 1.164 GB, free: 11.43 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 9.709e-05/0.8529, allocations: 318.9 kB / 1.164 GB, free: 11.11 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.8e-05/0.853, allocations: 19.98 kB / 1.164 GB, free: 11.09 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.318e-05/0.853, allocations: 37.7 kB / 1.164 GB, free: 11.05 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.28e-05/0.8531, allocations: 58.25 kB / 1.164 GB, free: 10.99 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.42e-07/0.8531, allocations: 0 / 1.164 GB, free: 10.99 MB / 0.92 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001339/0.8533, allocations: 105.6 kB / 1.164 GB, free: 10.88 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/0.8533, allocations: 5.719 kB / 1.164 GB, free: 10.88 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.8533, allocations: 8 kB / 1.164 GB, free: 10.87 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.235e-05/0.8533, allocations: 0 / 1.164 GB, free: 10.87 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001126/0.8534, allocations: 23.92 kB / 1.164 GB, free: 10.84 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.662e-06/0.8535, allocations: 4 kB / 1.164 GB, free: 10.84 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.241e-05/0.8535, allocations: 0 / 1.164 GB, free: 10.84 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.261e-05/0.8535, allocations: 8 kB / 1.165 GB, free: 10.83 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 7.803e-05/0.8536, allocations: 117.8 kB / 1.165 GB, free: 10.71 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.551e-05/0.8536, allocations: 3.906 kB / 1.165 GB, free: 10.7 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.211e-05/0.8537, allocations: 7.969 kB / 1.165 GB, free: 10.7 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.126e-06/0.8537, allocations: 8 kB / 1.165 GB, free: 10.69 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.969e-06/0.8537, allocations: 0 / 1.165 GB, free: 10.69 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.8537, allocations: 0 / 1.165 GB, free: 10.69 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001242/0.8538, allocations: 177.6 kB / 1.165 GB, free: 10.46 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.8538, allocations: 0 / 1.165 GB, free: 10.46 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001206/0.8539, allocations: 23.92 kB / 1.165 GB, free: 10.44 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.854, allocations: 0 / 1.165 GB, free: 10.44 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.648e-06/0.854, allocations: 7.938 kB / 1.165 GB, free: 10.43 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.482e-06/0.854, allocations: 0 / 1.165 GB, free: 10.43 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.854, allocations: 0 / 1.165 GB, free: 10.43 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002115/0.8542, allocations: 144.5 kB / 1.165 GB, free: 10.28 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 6.831e-05/0.8543, allocations: 81.14 kB / 1.165 GB, free: 10.18 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.566e-05/0.8543, allocations: 4.094 kB / 1.165 GB, free: 10.18 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.232e-05/0.8544, allocations: 4 kB / 1.165 GB, free: 10.17 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.011e-05/0.8544, allocations: 11.97 kB / 1.165 GB, free: 10.16 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.816e-06/0.8544, allocations: 4 kB / 1.165 GB, free: 10.16 MB / 0.92 GB Notification: Performance of sorting global known variables: time 3.132e-05/0.8545, allocations: 75.28 kB / 1.165 GB, free: 10.08 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.3e-07/0.8545, allocations: 96 / 1.165 GB, free: 10.08 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.000199/0.8547, allocations: 23.94 kB / 1.165 GB, free: 10.06 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.000111/0.8548, allocations: 111.2 kB / 1.165 GB, free: 9.941 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0001502/0.8549, allocations: 64.08 kB / 1.165 GB, free: 9.879 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.855, allocations: 0 / 1.165 GB, free: 9.879 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 4.106e-05/0.855, allocations: 31.92 kB / 1.165 GB, free: 9.848 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002359/0.8552, allocations: 13.48 kB / 1.165 GB, free: 9.836 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005647/0.8558, allocations: 320.8 kB / 1.166 GB, free: 9.496 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002418/0.8561, allocations: 0.6885 MB / 1.166 GB, free: 8.781 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 6.83e-05/0.8561, allocations: 12.66 kB / 1.166 GB, free: 8.77 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.733e-05/0.8562, allocations: 11.44 kB / 1.166 GB, free: 8.758 MB / 0.92 GB Notification: Performance of SimCode: time 2.3e-07/0.8562, allocations: 0 / 1.166 GB, free: 8.758 MB / 0.92 GB Notification: Performance of Templates: time 0.002593/0.8588, allocations: 0.6393 MB / 1.167 GB, free: 8.121 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