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.001657/0.001657, allocations: 108 kB / 15.61 MB, free: 152 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.001867/0.001867, allocations: 196.2 kB / 16.53 MB, free: 6.699 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.31/1.31, allocations: 222.9 MB / 240.2 MB, free: 4.418 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.299/2.299, allocations: 390.3 MB / 0.6647 GB, free: 428 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001244, allocations: 67.89 kB / 0.8126 GB, free: 14.36 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5052/0.5064, allocations: 140.4 MB / 0.9497 GB, free: 9.344 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.001851/0.5083, allocations: 1.274 MB / 0.951 GB, free: 8.328 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.14/0.6483, allocations: 147 MB / 1.095 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.428e-05/0.6484, allocations: 0 / 1.095 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.982e-05/0.6484, allocations: 7.922 kB / 1.095 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.313e-05/0.6485, allocations: 11.92 kB / 1.095 GB, free: 13.13 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003466/0.6488, allocations: 87.56 kB / 1.095 GB, free: 13.04 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 6.168e-05/0.6489, allocations: 31.92 kB / 1.095 GB, free: 13.01 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.294e-05/0.6489, allocations: 4 kB / 1.095 GB, free: 13.01 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.511e-05/0.649, allocations: 19.92 kB / 1.095 GB, free: 12.99 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.184e-05/0.649, allocations: 19.91 kB / 1.095 GB, free: 12.97 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.273e-05/0.6491, allocations: 4 kB / 1.095 GB, free: 12.96 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002255/0.6493, allocations: 67.84 kB / 1.095 GB, free: 12.9 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.863e-05/0.6493, allocations: 15.97 kB / 1.095 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.734e-05/0.6493, allocations: 15.94 kB / 1.095 GB, free: 12.87 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001412/0.6495, allocations: 66.27 kB / 1.095 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.6495, allocations: 0 / 1.095 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of FrontEnd: time 9.12e-07/0.6495, allocations: 3.938 kB / 1.095 GB, free: 12.8 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.168e-06/0.6495, allocations: 0 / 1.095 GB, free: 12.8 MB / 0.8575 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.0003329/0.6499, allocations: 355.4 kB / 1.095 GB, free: 12.41 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.619e-05/0.6499, allocations: 12.03 kB / 1.095 GB, free: 12.39 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.988e-05/0.6499, allocations: 34.73 kB / 1.095 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001735/0.6501, allocations: 12.88 kB / 1.095 GB, free: 12.34 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.657e-05/0.6502, allocations: 168.1 kB / 1.095 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.25e-05/0.6502, allocations: 8 kB / 1.095 GB, free: 12.13 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.405e-05/0.6503, allocations: 4 kB / 1.095 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001123/0.6504, allocations: 57.67 kB / 1.095 GB, free: 12.06 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.592e-06/0.6504, allocations: 0 / 1.095 GB, free: 12.06 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.819e-06/0.6504, allocations: 0 / 1.095 GB, free: 12.06 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.697e-06/0.6504, allocations: 0 / 1.095 GB, free: 12.06 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.615e-05/0.6505, allocations: 19.92 kB / 1.095 GB, free: 12.04 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001478/0.6506, allocations: 173.4 kB / 1.096 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 7.971e-05/0.6507, allocations: 54.55 kB / 1.096 GB, free: 11.76 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.68e-05/0.6507, allocations: 16.86 kB / 1.096 GB, free: 11.74 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 9.848e-06/0.6508, allocations: 4 kB / 1.096 GB, free: 11.74 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.164e-05/0.6508, allocations: 34.56 kB / 1.096 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 2.494e-06/0.6508, allocations: 0 / 1.096 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0006579/0.6515, allocations: 370.3 kB / 1.096 GB, free: 11.28 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.003e-05/0.6515, allocations: 55.41 kB / 1.096 GB, free: 11.21 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.196e-05/0.6516, allocations: 97.86 kB / 1.096 GB, free: 11.11 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.48e-05/0.6516, allocations: 25.7 kB / 1.096 GB, free: 11.08 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.361e-05/0.6516, allocations: 84.14 kB / 1.096 GB, free: 10.99 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.713e-05/0.6516, allocations: 43.3 kB / 1.096 GB, free: 10.95 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.104e-05/0.6517, allocations: 29.7 kB / 1.096 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.758e-05/0.6518, allocations: 318.8 kB / 1.097 GB, free: 10.59 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.41e-05/0.6518, allocations: 19.98 kB / 1.097 GB, free: 10.57 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.372e-05/0.6519, allocations: 33.83 kB / 1.097 GB, free: 10.54 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.116e-05/0.652, allocations: 66.19 kB / 1.097 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.81e-07/0.652, allocations: 4 kB / 1.097 GB, free: 10.46 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001295/0.6521, allocations: 93.66 kB / 1.097 GB, free: 10.36 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.091e-05/0.6521, allocations: 4 kB / 1.097 GB, free: 10.36 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.486e-06/0.6521, allocations: 0 / 1.097 GB, free: 10.36 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.878e-06/0.6521, allocations: 0 / 1.097 GB, free: 10.36 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000115/0.6523, allocations: 23.94 kB / 1.097 GB, free: 10.34 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.298e-06/0.6523, allocations: 0 / 1.097 GB, free: 10.34 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.6e-05/0.6523, allocations: 4 kB / 1.097 GB, free: 10.33 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.076e-06/0.6523, allocations: 15.88 kB / 1.097 GB, free: 10.32 MB / 0.8575 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.727e-05/0.6524, allocations: 117.8 kB / 1.097 GB, free: 10.19 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.909e-05/0.6524, allocations: 7.906 kB / 1.097 GB, free: 10.18 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.305e-05/0.6525, allocations: 11.97 kB / 1.097 GB, free: 10.17 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-06/0.6525, allocations: 0 / 1.097 GB, free: 10.17 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.6525, allocations: 0 / 1.097 GB, free: 10.17 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.575e-06/0.6525, allocations: 3.938 kB / 1.097 GB, free: 10.16 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001235/0.6526, allocations: 177.6 kB / 1.097 GB, free: 9.941 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.6526, allocations: 3.938 kB / 1.097 GB, free: 9.938 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001245/0.6528, allocations: 27.98 kB / 1.097 GB, free: 9.91 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.6528, allocations: 0 / 1.097 GB, free: 9.91 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.684e-06/0.6528, allocations: 0 / 1.097 GB, free: 9.91 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.6528, allocations: 0 / 1.097 GB, free: 9.91 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.6528, allocations: 0 / 1.097 GB, free: 9.91 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001799/0.653, allocations: 136.9 kB / 1.097 GB, free: 9.758 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 6.207e-05/0.653, allocations: 85.14 kB / 1.098 GB, free: 9.656 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.506e-05/0.6531, allocations: 7.938 kB / 1.098 GB, free: 9.648 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.942e-05/0.6532, allocations: 8 kB / 1.098 GB, free: 9.641 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.657e-05/0.6532, allocations: 3.984 kB / 1.098 GB, free: 9.637 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.859e-06/0.6532, allocations: 12 kB / 1.098 GB, free: 9.625 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.592e-05/0.6532, allocations: 79.22 kB / 1.098 GB, free: 9.547 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6532, allocations: 4 kB / 1.098 GB, free: 9.543 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002027/0.6534, allocations: 16 kB / 1.098 GB, free: 9.527 MB / 0.8575 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.0003711/0.6538, allocations: 0.6635 MB / 1.098 GB, free: 8.836 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001238/0.654, allocations: 63.91 kB / 1.098 GB, free: 8.773 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 3.186e-06/0.654, allocations: 0 / 1.098 GB, free: 8.773 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 3.879e-05/0.654, allocations: 31.92 kB / 1.098 GB, free: 8.742 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002006/0.6542, allocations: 8 kB / 1.098 GB, free: 8.734 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001197/0.6554, allocations: 1.436 MB / 1.1 GB, free: 7.211 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001895/0.6556, allocations: 0.6885 MB / 1.1 GB, free: 6.496 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 6.535e-05/0.6557, allocations: 8.672 kB / 1.1 GB, free: 6.488 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.737e-05/0.6557, allocations: 19.42 kB / 1.101 GB, free: 6.469 MB / 0.8575 GB Notification: Performance of SimCode: time 2.4e-07/0.6557, allocations: 0 / 1.101 GB, free: 6.469 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02017/0.6759, allocations: 1.642 MB / 1.102 GB, free: 4.926 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.956/7.632, allocations: 17.92 kB / 1.102 GB, free: 4.914 MB / 0.8575 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