Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_11_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.007411/0.007411, allocations: 95.44 kB / 15.73 MB, free: 6.051 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.002128/0.002128, allocations: 199.5 kB / 16.68 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.437/1.437, allocations: 222.9 MB / 240.4 MB, free: 4.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.874/2.874, allocations: 469.8 MB / 0.7425 GB, free: 7.328 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001918/0.001918, allocations: 60.11 kB / 1.065 GB, free: 13.61 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2953/0.2972, allocations: 159.1 MB / 1.22 GB, free: 14.35 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.003659/0.3009, allocations: 1.28 MB / 1.221 GB, free: 13.06 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.6775/0.9784, allocations: 147 MB / 1.365 GB, free: 0.5078 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.003e-05/0.9785, allocations: 1.188 kB / 1.365 GB, free: 0.5078 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 2.207e-05/0.9786, allocations: 1.688 kB / 1.365 GB, free: 0.5078 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 4.412e-05/0.9786, allocations: 4.594 kB / 1.365 GB, free: 0.5039 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004258/0.9791, allocations: 101.4 kB / 1.365 GB, free: 460 kB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 7.298e-05/0.9791, allocations: 28.41 kB / 1.365 GB, free: 452 kB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 3.105e-05/0.9792, allocations: 2.203 kB / 1.365 GB, free: 452 kB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 4.136e-05/0.9792, allocations: 19.38 kB / 1.365 GB, free: 444 kB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 5.948e-05/0.9793, allocations: 15.98 kB / 1.365 GB, free: 436 kB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 1.259e-05/0.9793, allocations: 2.906 kB / 1.365 GB, free: 436 kB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002552/0.9796, allocations: 75.39 kB / 1.365 GB, free: 404 kB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 1.91e-05/0.9796, allocations: 15.38 kB / 1.365 GB, free: 392 kB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 3.12e-05/0.9796, allocations: 16.91 kB / 1.365 GB, free: 384 kB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0001574/0.9798, allocations: 64.98 kB / 1.365 GB, free: 364 kB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.72e-06/0.9798, allocations: 1.094 kB / 1.365 GB, free: 364 kB / 1.061 GB Notification: Performance of FrontEnd: time 1.533e-06/0.9798, allocations: 5.812 kB / 1.365 GB, free: 360 kB / 1.061 GB Notification: Performance of Transformations before backend: time 4.248e-06/0.9798, allocations: 0 / 1.365 GB, free: 360 kB / 1.061 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.0004183/0.9803, allocations: 352.7 kB / 1.366 GB, free: 15.98 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.464e-05/0.9803, allocations: 10.66 kB / 1.366 GB, free: 15.98 MB / 1.076 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.968e-05/0.9803, allocations: 33 kB / 1.366 GB, free: 15.95 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001822/0.9805, allocations: 15.3 kB / 1.366 GB, free: 15.94 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000121/0.9807, allocations: 165.1 kB / 1.366 GB, free: 15.74 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.51e-05/0.9807, allocations: 9.531 kB / 1.366 GB, free: 15.73 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.929e-05/0.9807, allocations: 4.984 kB / 1.366 GB, free: 15.73 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001186/0.9808, allocations: 57.09 kB / 1.366 GB, free: 15.69 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.733e-06/0.9808, allocations: 3.938 kB / 1.366 GB, free: 15.69 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.044e-05/0.9809, allocations: 2.453 kB / 1.366 GB, free: 15.69 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.927e-06/0.9809, allocations: 0 / 1.366 GB, free: 15.69 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.362e-05/0.9809, allocations: 12.7 kB / 1.366 GB, free: 15.69 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001854/0.9811, allocations: 171.6 kB / 1.366 GB, free: 15.48 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 8.739e-05/0.9812, allocations: 50.75 kB / 1.366 GB, free: 15.45 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.073e-05/0.9812, allocations: 17.92 kB / 1.366 GB, free: 15.44 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 1.17e-05/0.9813, allocations: 1.062 kB / 1.366 GB, free: 15.44 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.069e-05/0.9813, allocations: 35.5 kB / 1.366 GB, free: 15.39 MB / 1.076 GB Notification: Performance of pre-optimization done (n=7): time 1.182e-06/0.9813, allocations: 1.156 kB / 1.366 GB, free: 15.39 MB / 1.076 GB Notification: Performance of matching and sorting (n=11): time 0.0007316/0.982, allocations: 382.1 kB / 1.367 GB, free: 15.08 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.919e-05/0.9821, allocations: 52.72 kB / 1.367 GB, free: 15.02 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.874e-05/0.9822, allocations: 96.84 kB / 1.367 GB, free: 14.92 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 1.825e-05/0.9822, allocations: 27.14 kB / 1.367 GB, free: 14.89 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 3.742e-05/0.9822, allocations: 80.14 kB / 1.367 GB, free: 14.8 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 4.542e-05/0.9823, allocations: 43.34 kB / 1.367 GB, free: 14.77 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.684e-05/0.9823, allocations: 29.55 kB / 1.367 GB, free: 14.75 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001292/0.9825, allocations: 321.4 kB / 1.367 GB, free: 14.43 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.317e-05/0.9825, allocations: 21.56 kB / 1.367 GB, free: 14.42 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.741e-05/0.9826, allocations: 31.78 kB / 1.367 GB, free: 14.4 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.265e-05/0.9827, allocations: 64.31 kB / 1.367 GB, free: 14.36 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.12e-07/0.9827, allocations: 0 / 1.367 GB, free: 14.36 MB / 1.076 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000138/0.9828, allocations: 94.05 kB / 1.367 GB, free: 14.3 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.261e-05/0.9828, allocations: 6.031 kB / 1.367 GB, free: 14.3 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.677e-06/0.9829, allocations: 1.031 kB / 1.367 GB, free: 14.3 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.129e-05/0.9829, allocations: 5.094 kB / 1.367 GB, free: 14.3 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000109/0.983, allocations: 22.12 kB / 1.367 GB, free: 14.3 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.16e-06/0.983, allocations: 1.219 kB / 1.367 GB, free: 14.3 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.761e-05/0.983, allocations: 6.094 kB / 1.367 GB, free: 14.3 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.013e-06/0.9831, allocations: 3.391 kB / 1.367 GB, free: 14.3 MB / 1.076 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.626e-05/0.9831, allocations: 121 kB / 1.368 GB, free: 14.17 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.643e-05/0.9832, allocations: 7.547 kB / 1.368 GB, free: 14.17 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.49e-05/0.9832, allocations: 12.72 kB / 1.368 GB, free: 14.16 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.847e-06/0.9832, allocations: 9.297 kB / 1.368 GB, free: 14.15 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.639e-06/0.9832, allocations: 2 kB / 1.368 GB, free: 14.15 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.9832, allocations: 0.8438 kB / 1.368 GB, free: 14.15 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001466/0.9834, allocations: 175 kB / 1.368 GB, free: 13.95 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.9834, allocations: 3.938 kB / 1.368 GB, free: 13.95 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001184/0.9835, allocations: 23.58 kB / 1.368 GB, free: 13.95 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.615e-06/0.9835, allocations: 1.406 kB / 1.368 GB, free: 13.95 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.536e-06/0.9835, allocations: 0 / 1.368 GB, free: 13.95 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.9836, allocations: 1.812 kB / 1.368 GB, free: 13.95 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.51e-07/0.9836, allocations: 0 / 1.368 GB, free: 13.95 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002117/0.9838, allocations: 143.1 kB / 1.368 GB, free: 13.84 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 6.978e-05/0.9839, allocations: 82.86 kB / 1.368 GB, free: 13.75 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.756e-05/0.9839, allocations: 5.312 kB / 1.368 GB, free: 13.75 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.514e-05/0.984, allocations: 3.453 kB / 1.368 GB, free: 13.75 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.649e-05/0.984, allocations: 5.141 kB / 1.368 GB, free: 13.75 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.161e-05/0.984, allocations: 3.781 kB / 1.368 GB, free: 13.75 MB / 1.076 GB Notification: Performance of sorting global known variables: time 4.371e-05/0.9841, allocations: 83.97 kB / 1.368 GB, free: 13.66 MB / 1.076 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9841, allocations: 4.781 kB / 1.368 GB, free: 13.66 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002047/0.9843, allocations: 15.78 kB / 1.368 GB, free: 13.66 MB / 1.076 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.0004691/0.9848, allocations: 0.6723 MB / 1.369 GB, free: 13.03 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0001272/0.9849, allocations: 57.25 kB / 1.369 GB, free: 13.01 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.9849, allocations: 0.8906 kB / 1.369 GB, free: 13.01 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 4.307e-05/0.985, allocations: 32.5 kB / 1.369 GB, free: 13 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002032/0.9852, allocations: 9.812 kB / 1.369 GB, free: 13 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001435/0.9866, allocations: 1.451 MB / 1.37 GB, free: 11.68 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003018/0.9869, allocations: 0.6849 MB / 1.371 GB, free: 10.98 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 5.52e-05/0.987, allocations: 10.42 kB / 1.371 GB, free: 10.98 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.137e-05/0.987, allocations: 18 kB / 1.371 GB, free: 10.96 MB / 1.076 GB Notification: Performance of SimCode: time 3.51e-07/0.987, allocations: 0 / 1.371 GB, free: 10.96 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02273/1.01, allocations: 1.703 MB / 1.373 GB, free: 10.6 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.767/8.777, allocations: 10.94 kB / 1.373 GB, free: 10.59 MB / 1.076 GB (rm -f Buildings_11_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_11_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_11_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_11_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & python3 -m fmpy simulate --output-file Buildings_11_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_11_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.fmu > Buildings_11_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches