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: "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_9_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.004275/0.004275, allocations: 100.6 kB / 15.73 MB, free: 6.035 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.001082/0.001083, allocations: 191.3 kB / 16.67 MB, free: 5.973 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.351/1.351, allocations: 222.9 MB / 240.4 MB, free: 4.301 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.311/2.311, allocations: 390.2 MB / 0.6648 GB, free: 208 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.002052/0.002052, allocations: 62.03 kB / 0.9504 GB, free: 5.961 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2325/0.2346, allocations: 140.4 MB / 1.087 GB, free: 2.035 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002012/0.2367, allocations: 1.269 MB / 1.089 GB, free: 0.7578 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.1421/0.3788, allocations: 147 MB / 1.232 GB, free: 13.18 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.033e-05/0.3789, allocations: 0 / 1.232 GB, free: 13.18 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 1.88e-05/0.3789, allocations: 7.984 kB / 1.232 GB, free: 13.18 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 5.039e-05/0.379, allocations: 11.92 kB / 1.232 GB, free: 13.16 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003966/0.3794, allocations: 87.56 kB / 1.232 GB, free: 13.08 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 7.082e-05/0.3795, allocations: 35.86 kB / 1.232 GB, free: 13.04 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.431e-05/0.3795, allocations: 7.984 kB / 1.232 GB, free: 13.04 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.772e-05/0.3796, allocations: 11.98 kB / 1.232 GB, free: 13.02 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 6.003e-05/0.3796, allocations: 15.92 kB / 1.232 GB, free: 13.01 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.161e-05/0.3796, allocations: 4 kB / 1.232 GB, free: 13 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002453/0.3799, allocations: 83.81 kB / 1.232 GB, free: 12.92 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.395e-05/0.3799, allocations: 4 kB / 1.232 GB, free: 12.92 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 2.694e-05/0.38, allocations: 11.94 kB / 1.233 GB, free: 12.91 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001529/0.3801, allocations: 74.67 kB / 1.233 GB, free: 12.84 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.3801, allocations: 0 / 1.233 GB, free: 12.84 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.333e-06/0.3801, allocations: 0 / 1.233 GB, free: 12.84 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 4.318e-06/0.3801, allocations: 0 / 1.233 GB, free: 12.84 MB / 0.9981 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.0003579/0.3805, allocations: 356.3 kB / 1.233 GB, free: 12.44 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.3806, allocations: 12.03 kB / 1.233 GB, free: 12.43 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.456e-05/0.3806, allocations: 34.75 kB / 1.233 GB, free: 12.39 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001844/0.3808, allocations: 12.84 kB / 1.233 GB, free: 12.38 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.869e-05/0.3809, allocations: 172.1 kB / 1.233 GB, free: 12.17 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.198e-05/0.3809, allocations: 11.94 kB / 1.233 GB, free: 12.16 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.079e-05/0.3809, allocations: 4 kB / 1.233 GB, free: 12.15 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001045/0.381, allocations: 45.69 kB / 1.233 GB, free: 12.1 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.364e-06/0.3811, allocations: 4 kB / 1.233 GB, free: 12.1 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.08e-05/0.3811, allocations: 0 / 1.233 GB, free: 12.1 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.837e-06/0.3811, allocations: 0 / 1.233 GB, free: 12.1 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.005e-05/0.3811, allocations: 23.97 kB / 1.233 GB, free: 12.07 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001505/0.3813, allocations: 165.6 kB / 1.233 GB, free: 11.86 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 8.658e-05/0.3814, allocations: 50.5 kB / 1.233 GB, free: 11.8 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.829e-05/0.3814, allocations: 16.86 kB / 1.233 GB, free: 11.79 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 7.775e-06/0.3814, allocations: 0 / 1.233 GB, free: 11.79 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.403e-05/0.3815, allocations: 34.56 kB / 1.233 GB, free: 11.74 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 9.32e-07/0.3815, allocations: 4 kB / 1.233 GB, free: 11.74 MB / 0.9981 GB Notification: Performance of matching and sorting (n=11): time 0.0006834/0.3822, allocations: 378.2 kB / 1.234 GB, free: 11.32 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.251e-05/0.3822, allocations: 59.28 kB / 1.234 GB, free: 11.25 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.416e-05/0.3823, allocations: 93.86 kB / 1.234 GB, free: 11.14 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.85e-05/0.3823, allocations: 25.7 kB / 1.234 GB, free: 11.11 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 2.535e-05/0.3823, allocations: 84.14 kB / 1.234 GB, free: 11.03 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 3.749e-05/0.3824, allocations: 43.52 kB / 1.234 GB, free: 10.98 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.263e-05/0.3824, allocations: 29.7 kB / 1.234 GB, free: 10.95 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 9.837e-05/0.3825, allocations: 322.8 kB / 1.234 GB, free: 10.62 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.494e-05/0.3826, allocations: 15.98 kB / 1.234 GB, free: 10.61 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.625e-05/0.3826, allocations: 33.7 kB / 1.235 GB, free: 10.57 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.292e-05/0.3827, allocations: 61.7 kB / 1.235 GB, free: 10.5 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.02e-07/0.3827, allocations: 0 / 1.235 GB, free: 10.5 MB / 0.9981 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001377/0.3829, allocations: 102.1 kB / 1.235 GB, free: 10.4 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.261e-05/0.3829, allocations: 4 kB / 1.235 GB, free: 10.39 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.391e-06/0.3829, allocations: 4 kB / 1.235 GB, free: 10.39 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.223e-05/0.3829, allocations: 3.984 kB / 1.235 GB, free: 10.39 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001165/0.383, allocations: 23.94 kB / 1.235 GB, free: 10.36 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.01e-06/0.383, allocations: 160 / 1.235 GB, free: 10.36 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.657e-05/0.3831, allocations: 7.984 kB / 1.235 GB, free: 10.36 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.206e-06/0.3831, allocations: 11.92 kB / 1.235 GB, free: 10.34 MB / 0.9981 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 6.826e-05/0.3832, allocations: 113.8 kB / 1.235 GB, free: 10.22 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.541e-05/0.3832, allocations: 8 kB / 1.235 GB, free: 10.21 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.446e-05/0.3832, allocations: 11.97 kB / 1.235 GB, free: 10.2 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.3832, allocations: 0 / 1.235 GB, free: 10.2 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.3832, allocations: 0 / 1.235 GB, free: 10.2 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.3832, allocations: 0 / 1.235 GB, free: 10.2 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001208/0.3834, allocations: 177.6 kB / 1.235 GB, free: 9.98 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.3834, allocations: 0 / 1.235 GB, free: 9.98 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001304/0.3835, allocations: 27.92 kB / 1.235 GB, free: 9.953 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.004e-06/0.3835, allocations: 3.938 kB / 1.235 GB, free: 9.949 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.664e-06/0.3835, allocations: 0 / 1.235 GB, free: 9.949 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.403e-06/0.3835, allocations: 0 / 1.235 GB, free: 9.949 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.3836, allocations: 4 kB / 1.235 GB, free: 9.945 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001892/0.3837, allocations: 136.9 kB / 1.235 GB, free: 9.793 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.468e-05/0.3838, allocations: 85.14 kB / 1.235 GB, free: 9.691 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.473e-05/0.3838, allocations: 4 kB / 1.235 GB, free: 9.688 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.873e-05/0.3839, allocations: 4 kB / 1.235 GB, free: 9.684 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.887e-05/0.384, allocations: 7.984 kB / 1.235 GB, free: 9.676 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.235e-06/0.384, allocations: 4 kB / 1.235 GB, free: 9.672 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 2.96e-05/0.384, allocations: 87.22 kB / 1.235 GB, free: 9.586 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.384, allocations: 0 / 1.235 GB, free: 9.586 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002154/0.3842, allocations: 16 kB / 1.235 GB, free: 9.57 MB / 0.9981 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.0003933/0.3846, allocations: 0.6676 MB / 1.236 GB, free: 8.871 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0001251/0.3848, allocations: 60.06 kB / 1.236 GB, free: 8.812 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3848, allocations: 0 / 1.236 GB, free: 8.812 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 4.65e-05/0.3848, allocations: 35.86 kB / 1.236 GB, free: 8.777 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002102/0.385, allocations: 9.719 kB / 1.236 GB, free: 8.77 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001236/0.3863, allocations: 1.446 MB / 1.238 GB, free: 7.238 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002102/0.3865, allocations: 0.6884 MB / 1.238 GB, free: 6.523 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 5.414e-05/0.3866, allocations: 16.64 kB / 1.238 GB, free: 6.508 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.978e-05/0.3866, allocations: 15.44 kB / 1.238 GB, free: 6.492 MB / 0.9981 GB Notification: Performance of SimCode: time 3.01e-07/0.3866, allocations: 0 / 1.238 GB, free: 6.492 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01597/0.4026, allocations: 1.685 MB / 1.24 GB, free: 4.926 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.348/7.751, allocations: 13.62 kB / 1.24 GB, free: 4.914 MB / 0.9981 GB (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 & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.fmu > Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.csv","/var/lib/jenkins1/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