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: "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_10_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_10_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.001608/0.001608, 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.001768/0.001768, allocations: 193.2 kB / 16.53 MB, free: 6.391 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.321/1.321, allocations: 222.9 MB / 240.2 MB, free: 4.395 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.549/2.549, allocations: 437.1 MB / 0.7104 GB, free: 5.102 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001374/0.001374, allocations: 71.88 kB / 0.8693 GB, free: 4.566 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.509/0.5104, allocations: 151.6 MB / 1.017 GB, free: 2.492 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002169/0.5126, allocations: 1.277 MB / 1.019 GB, free: 1.203 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.1358/0.6484, allocations: 147 MB / 1.162 GB, free: 13.64 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.926e-05/0.6484, allocations: 0 / 1.162 GB, free: 13.64 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 1.515e-05/0.6485, allocations: 0 / 1.162 GB, free: 13.64 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 5.387e-05/0.6486, allocations: 7.922 kB / 1.162 GB, free: 13.63 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.000402/0.649, allocations: 95.55 kB / 1.162 GB, free: 13.54 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 6.4e-05/0.649, allocations: 35.8 kB / 1.162 GB, free: 13.5 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 3.504e-05/0.6491, allocations: 8 kB / 1.162 GB, free: 13.49 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 3.688e-05/0.6491, allocations: 15.98 kB / 1.162 GB, free: 13.48 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 4.831e-05/0.6492, allocations: 11.92 kB / 1.162 GB, free: 13.46 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.109e-05/0.6492, allocations: 0 / 1.162 GB, free: 13.46 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002446/0.6494, allocations: 83.81 kB / 1.162 GB, free: 13.38 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.345e-05/0.6495, allocations: 4 kB / 1.162 GB, free: 13.38 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.805e-05/0.6495, allocations: 15.92 kB / 1.162 GB, free: 13.36 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001451/0.6497, allocations: 70.06 kB / 1.163 GB, free: 13.3 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.6497, allocations: 0 / 1.163 GB, free: 13.3 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.413e-06/0.6497, allocations: 0 / 1.163 GB, free: 13.3 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.01e-06/0.6497, allocations: 0 / 1.163 GB, free: 13.3 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.0003633/0.6501, allocations: 359.4 kB / 1.163 GB, free: 12.9 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.486e-05/0.6501, allocations: 8.031 kB / 1.163 GB, free: 12.89 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.499e-05/0.6502, allocations: 38.75 kB / 1.163 GB, free: 12.84 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001869/0.6503, allocations: 12.92 kB / 1.163 GB, free: 12.83 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.903e-05/0.6505, allocations: 168.1 kB / 1.163 GB, free: 12.63 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.576e-06/0.6505, allocations: 0 / 1.163 GB, free: 12.63 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.657e-05/0.6505, allocations: 15.84 kB / 1.163 GB, free: 12.61 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001126/0.6506, allocations: 53.67 kB / 1.163 GB, free: 12.55 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.592e-06/0.6506, allocations: 0 / 1.163 GB, free: 12.55 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.007e-05/0.6506, allocations: 0 / 1.163 GB, free: 12.55 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.6507, allocations: 4 kB / 1.163 GB, free: 12.55 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.731e-05/0.6507, allocations: 15.98 kB / 1.163 GB, free: 12.54 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001576/0.6509, allocations: 169.5 kB / 1.163 GB, free: 12.32 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 8.429e-05/0.651, allocations: 50.5 kB / 1.163 GB, free: 12.26 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.014e-05/0.651, allocations: 16.84 kB / 1.163 GB, free: 12.24 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 7.855e-06/0.651, allocations: 4 kB / 1.163 GB, free: 12.24 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.508e-05/0.6511, allocations: 34.56 kB / 1.163 GB, free: 12.2 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 1.172e-06/0.6511, allocations: 0 / 1.163 GB, free: 12.2 MB / 0.92 GB Notification: Performance of matching and sorting (n=11): time 0.0006868/0.6517, allocations: 370.1 kB / 1.164 GB, free: 11.79 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.887e-05/0.6518, allocations: 55.41 kB / 1.164 GB, free: 11.72 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.662e-05/0.6519, allocations: 97.84 kB / 1.164 GB, free: 11.61 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.836e-05/0.6519, allocations: 29.7 kB / 1.164 GB, free: 11.58 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 2.722e-05/0.6519, allocations: 88.08 kB / 1.164 GB, free: 11.49 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.86e-05/0.652, allocations: 35.45 kB / 1.164 GB, free: 11.45 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.253e-05/0.652, allocations: 25.72 kB / 1.164 GB, free: 11.42 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 8.459e-05/0.6521, allocations: 326.7 kB / 1.164 GB, free: 11.09 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.459e-05/0.6521, allocations: 16 kB / 1.164 GB, free: 11.08 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.901e-05/0.6522, allocations: 37.83 kB / 1.164 GB, free: 11.04 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.731e-05/0.6523, allocations: 66.22 kB / 1.165 GB, free: 10.96 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.22e-07/0.6523, allocations: 0 / 1.165 GB, free: 10.96 MB / 0.92 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001285/0.6524, allocations: 93.62 kB / 1.165 GB, free: 10.87 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.38e-05/0.6524, allocations: 6.344 kB / 1.165 GB, free: 10.86 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.14e-06/0.6525, allocations: 4 kB / 1.165 GB, free: 10.86 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.11e-05/0.6525, allocations: 0 / 1.165 GB, free: 10.86 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001227/0.6526, allocations: 19.98 kB / 1.165 GB, free: 10.84 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.596e-06/0.6526, allocations: 7.938 kB / 1.165 GB, free: 10.83 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.368e-05/0.6527, allocations: 0 / 1.165 GB, free: 10.83 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.965e-06/0.6527, allocations: 11.94 kB / 1.165 GB, free: 10.82 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.078e-05/0.6527, allocations: 117.8 kB / 1.165 GB, free: 10.7 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.707e-05/0.6528, allocations: 11.89 kB / 1.165 GB, free: 10.68 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.218e-05/0.6528, allocations: 7.969 kB / 1.165 GB, free: 10.68 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.876e-06/0.6528, allocations: 4 kB / 1.165 GB, free: 10.67 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.6528, allocations: 0 / 1.165 GB, free: 10.67 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.108e-06/0.6528, allocations: 3.984 kB / 1.165 GB, free: 10.67 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001103/0.6529, allocations: 169.6 kB / 1.165 GB, free: 10.45 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.653, allocations: 4 kB / 1.165 GB, free: 10.45 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001217/0.6531, allocations: 27.98 kB / 1.165 GB, free: 10.42 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-06/0.6531, allocations: 0 / 1.165 GB, free: 10.42 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.319e-05/0.6531, allocations: 8 kB / 1.165 GB, free: 10.41 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.6531, allocations: 3.938 kB / 1.165 GB, free: 10.41 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.6531, allocations: 0 / 1.165 GB, free: 10.41 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001926/0.6533, allocations: 148.9 kB / 1.165 GB, free: 10.25 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 5.489e-05/0.6534, allocations: 77.11 kB / 1.165 GB, free: 10.15 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.551e-05/0.6534, allocations: 4 kB / 1.165 GB, free: 10.15 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.023e-05/0.6535, allocations: 12.03 kB / 1.165 GB, free: 10.14 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.67e-05/0.6535, allocations: 4 kB / 1.165 GB, free: 10.13 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.775e-06/0.6535, allocations: 4 kB / 1.165 GB, free: 10.13 MB / 0.92 GB Notification: Performance of sorting global known variables: time 2.654e-05/0.6536, allocations: 79.22 kB / 1.165 GB, free: 10.05 MB / 0.92 GB Notification: Performance of sort global known variables: time 1e-07/0.6536, allocations: 0 / 1.165 GB, free: 10.05 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002078/0.6538, allocations: 16 kB / 1.165 GB, free: 10.04 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.0003805/0.6542, allocations: 0.6749 MB / 1.166 GB, free: 9.332 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0001311/0.6543, allocations: 59.95 kB / 1.166 GB, free: 9.273 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.6543, allocations: 0 / 1.166 GB, free: 9.273 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 3.721e-05/0.6544, allocations: 27.94 kB / 1.166 GB, free: 9.246 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002102/0.6546, allocations: 11.98 kB / 1.166 GB, free: 9.234 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001241/0.6558, allocations: 1.443 MB / 1.168 GB, free: 7.703 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001872/0.656, allocations: 0.6846 MB / 1.168 GB, free: 6.992 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 6.892e-05/0.6561, allocations: 16.59 kB / 1.168 GB, free: 6.977 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.837e-05/0.6562, allocations: 19.44 kB / 1.168 GB, free: 6.957 MB / 0.92 GB Notification: Performance of SimCode: time 2.61e-07/0.6562, allocations: 0 / 1.168 GB, free: 6.957 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01686/0.673, allocations: 1.65 MB / 1.17 GB, free: 5.426 MB / 0.92 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.937/7.61, allocations: 5.359 kB / 1.17 GB, free: 5.422 MB / 0.92 GB (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 & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.fmu > Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.csv","/var/lib/jenkins1/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