Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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: "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00163/0.00163, allocations: 108 kB / 15.6 MB, free: 128 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.001804/0.001805, allocations: 196.2 kB / 16.53 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.386/1.386, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.68/2.68, allocations: 469.4 MB / 0.742 GB, free: 7.641 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 63.94 kB / 0.9083 GB, free: 34.5 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2357/0.237, allocations: 159.1 MB / 1.064 GB, free: 14.49 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002192/0.2392, allocations: 1.272 MB / 1.065 GB, free: 13.2 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.1365/0.3757, allocations: 147 MB / 1.208 GB, free: 9.645 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.952e-05/0.3757, allocations: 0 / 1.208 GB, free: 9.645 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.279e-05/0.3758, allocations: 7.938 kB / 1.208 GB, free: 9.637 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 3.809e-05/0.3758, allocations: 3.938 kB / 1.208 GB, free: 9.633 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004022/0.3763, allocations: 99.53 kB / 1.209 GB, free: 9.535 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 6.674e-05/0.3763, allocations: 39.86 kB / 1.209 GB, free: 9.496 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 3.547e-05/0.3764, allocations: 3.984 kB / 1.209 GB, free: 9.492 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 3.427e-05/0.3764, allocations: 8 kB / 1.209 GB, free: 9.484 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 5.063e-05/0.3765, allocations: 15.92 kB / 1.209 GB, free: 9.469 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.921e-05/0.3765, allocations: 4 kB / 1.209 GB, free: 9.465 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002505/0.3768, allocations: 79.81 kB / 1.209 GB, free: 9.387 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.333e-05/0.3768, allocations: 4 kB / 1.209 GB, free: 9.383 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.383e-05/0.3768, allocations: 27.91 kB / 1.209 GB, free: 9.355 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0001445/0.377, allocations: 64.11 kB / 1.209 GB, free: 9.293 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.317e-06/0.377, allocations: 0 / 1.209 GB, free: 9.293 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.392e-06/0.377, allocations: 0 / 1.209 GB, free: 9.293 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 4.459e-06/0.377, allocations: 3.938 kB / 1.209 GB, free: 9.289 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003615/0.3774, allocations: 351.5 kB / 1.209 GB, free: 8.898 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.425e-05/0.3774, allocations: 12.03 kB / 1.209 GB, free: 8.887 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.306e-05/0.3774, allocations: 30.75 kB / 1.209 GB, free: 8.848 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00019/0.3776, allocations: 16.83 kB / 1.209 GB, free: 8.832 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.856e-05/0.3778, allocations: 176 kB / 1.209 GB, free: 8.621 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.268e-05/0.3778, allocations: 8 kB / 1.209 GB, free: 8.613 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.104e-05/0.3778, allocations: 4 kB / 1.209 GB, free: 8.609 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001094/0.3779, allocations: 57.66 kB / 1.209 GB, free: 8.547 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.961e-06/0.3779, allocations: 0 / 1.209 GB, free: 8.547 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.16e-05/0.3779, allocations: 4 kB / 1.209 GB, free: 8.543 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.378, allocations: 0 / 1.209 GB, free: 8.543 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.753e-05/0.378, allocations: 15.98 kB / 1.209 GB, free: 8.527 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001505/0.3782, allocations: 165.6 kB / 1.21 GB, free: 8.316 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 8.553e-05/0.3783, allocations: 58.56 kB / 1.21 GB, free: 8.25 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.758e-05/0.3783, allocations: 16.84 kB / 1.21 GB, free: 8.23 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 9.618e-06/0.3783, allocations: 0 / 1.21 GB, free: 8.23 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.151e-05/0.3783, allocations: 34.56 kB / 1.21 GB, free: 8.188 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 8.62e-07/0.3783, allocations: 0 / 1.21 GB, free: 8.188 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11): time 0.0006693/0.379, allocations: 370.1 kB / 1.21 GB, free: 7.773 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.212e-05/0.3791, allocations: 55.34 kB / 1.21 GB, free: 7.707 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.62e-05/0.3791, allocations: 93.86 kB / 1.21 GB, free: 7.605 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.443e-05/0.3791, allocations: 25.7 kB / 1.21 GB, free: 7.574 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 3.028e-05/0.3792, allocations: 88.12 kB / 1.21 GB, free: 7.484 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.463e-05/0.3792, allocations: 39.55 kB / 1.21 GB, free: 7.445 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.235e-05/0.3793, allocations: 29.7 kB / 1.21 GB, free: 7.41 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 8.55e-05/0.3794, allocations: 326.9 kB / 1.211 GB, free: 7.082 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.521e-05/0.3794, allocations: 15.98 kB / 1.211 GB, free: 7.066 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.864e-05/0.3795, allocations: 43.58 kB / 1.211 GB, free: 7.02 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.41e-05/0.3795, allocations: 53.72 kB / 1.211 GB, free: 6.961 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.02e-07/0.3795, allocations: 0 / 1.211 GB, free: 6.961 MB / 0.9669 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001361/0.3797, allocations: 102.1 kB / 1.211 GB, free: 6.855 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.144e-05/0.3797, allocations: 4 kB / 1.211 GB, free: 6.852 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.968e-06/0.3797, allocations: 80 / 1.211 GB, free: 6.852 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.036e-05/0.3797, allocations: 4 kB / 1.211 GB, free: 6.848 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001139/0.3799, allocations: 27.92 kB / 1.211 GB, free: 6.82 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.881e-06/0.3799, allocations: 3.984 kB / 1.211 GB, free: 6.816 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.677e-05/0.3799, allocations: 8 kB / 1.211 GB, free: 6.809 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.364e-06/0.3799, allocations: 3.938 kB / 1.211 GB, free: 6.805 MB / 0.9669 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 8.064e-05/0.38, allocations: 113.8 kB / 1.211 GB, free: 6.684 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.63e-05/0.38, allocations: 4 kB / 1.211 GB, free: 6.68 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.293e-05/0.3801, allocations: 11.97 kB / 1.211 GB, free: 6.668 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.3801, allocations: 7.938 kB / 1.211 GB, free: 6.66 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.286e-06/0.3801, allocations: 0 / 1.211 GB, free: 6.66 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.3801, allocations: 0 / 1.211 GB, free: 6.66 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001091/0.3802, allocations: 173.6 kB / 1.211 GB, free: 6.441 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.3802, allocations: 0 / 1.211 GB, free: 6.441 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001281/0.3803, allocations: 27.92 kB / 1.211 GB, free: 6.414 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.3804, allocations: 0 / 1.211 GB, free: 6.414 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.654e-06/0.3804, allocations: 0 / 1.211 GB, free: 6.414 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.3804, allocations: 0 / 1.211 GB, free: 6.414 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.3804, allocations: 0 / 1.211 GB, free: 6.414 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001968/0.3806, allocations: 140.9 kB / 1.211 GB, free: 6.258 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.796e-05/0.3806, allocations: 85.14 kB / 1.211 GB, free: 6.156 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.813e-05/0.3807, allocations: 8 kB / 1.211 GB, free: 6.148 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.764e-05/0.3808, allocations: 4 kB / 1.212 GB, free: 6.145 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.763e-05/0.3808, allocations: 8.078 kB / 1.212 GB, free: 6.137 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.427e-06/0.3808, allocations: 7.984 kB / 1.212 GB, free: 6.129 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.197e-05/0.3808, allocations: 83.22 kB / 1.212 GB, free: 6.047 MB / 0.9669 GB Notification: Performance of sort global known variables: time 3.91e-07/0.3808, allocations: 96 / 1.212 GB, free: 6.047 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002066/0.3811, allocations: 20 kB / 1.212 GB, free: 6.027 MB / 0.9669 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.0003773/0.3814, allocations: 0.6715 MB / 1.212 GB, free: 5.324 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.000126/0.3816, allocations: 59.95 kB / 1.212 GB, free: 5.266 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.3816, allocations: 0 / 1.212 GB, free: 5.266 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 4.075e-05/0.3816, allocations: 31.92 kB / 1.212 GB, free: 5.234 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002104/0.3818, allocations: 13.38 kB / 1.212 GB, free: 5.223 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001238/0.3831, allocations: 1.446 MB / 1.214 GB, free: 3.691 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001895/0.3833, allocations: 0.6846 MB / 1.214 GB, free: 2.98 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 7.258e-05/0.3834, allocations: 12.66 kB / 1.214 GB, free: 2.969 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.751e-05/0.3834, allocations: 15.44 kB / 1.214 GB, free: 2.953 MB / 0.9669 GB Notification: Performance of SimCode: time 3e-07/0.3834, allocations: 0 / 1.214 GB, free: 2.953 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01735/0.4008, allocations: 1.665 MB / 1.216 GB, free: 1.41 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.993/7.394, allocations: 0.875 kB / 1.216 GB, free: 1.41 MB / 0.9669 GB (rm -f Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-08 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.fmu > Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches