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.004324/0.004324, allocations: 96.75 kB / 15.73 MB, free: 6.031 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.001051/0.001051, allocations: 194.6 kB / 16.68 MB, free: 5.961 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.339/1.339, allocations: 222.9 MB / 240.4 MB, free: 4.316 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.534/2.534, allocations: 437.1 MB / 0.7105 GB, free: 5.07 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001206/0.001206, allocations: 59.91 kB / 1.018 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2414/0.2426, allocations: 151.6 MB / 1.166 GB, free: 7.309 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.001961/0.2446, allocations: 1.272 MB / 1.167 GB, free: 6.023 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.6421/0.8867, allocations: 147 MB / 1.311 GB, free: 12.05 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.077e-05/0.8867, allocations: 0 / 1.311 GB, free: 12.05 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 2.251e-05/0.8868, allocations: 1.922 kB / 1.311 GB, free: 12.05 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 4.662e-05/0.8868, allocations: 8.016 kB / 1.311 GB, free: 12.05 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003733/0.8872, allocations: 94.55 kB / 1.311 GB, free: 12.02 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 6.893e-05/0.8873, allocations: 31.81 kB / 1.311 GB, free: 12.02 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 3.185e-05/0.8873, allocations: 3.188 kB / 1.311 GB, free: 12.02 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 4.057e-05/0.8874, allocations: 15.25 kB / 1.311 GB, free: 12.02 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 5.364e-05/0.8874, allocations: 16.08 kB / 1.311 GB, free: 12.02 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.126e-05/0.8875, allocations: 5.25 kB / 1.311 GB, free: 12.01 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002445/0.8877, allocations: 83.48 kB / 1.311 GB, free: 12 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 1.703e-05/0.8877, allocations: 11.88 kB / 1.311 GB, free: 11.99 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 3.163e-05/0.8878, allocations: 14.75 kB / 1.311 GB, free: 11.99 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0001557/0.8879, allocations: 62.69 kB / 1.311 GB, free: 11.99 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.8879, allocations: 0.6562 kB / 1.311 GB, free: 11.99 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.202e-06/0.888, allocations: 0 / 1.311 GB, free: 11.99 MB / 1.014 GB Notification: Performance of Transformations before backend: time 5.009e-06/0.888, allocations: 1.344 kB / 1.311 GB, free: 11.99 MB / 1.014 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.0003856/0.8884, allocations: 356.5 kB / 1.312 GB, free: 11.62 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 3.481e-05/0.8884, allocations: 10.91 kB / 1.312 GB, free: 11.62 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.569e-05/0.8884, allocations: 36.75 kB / 1.312 GB, free: 11.59 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001862/0.8886, allocations: 10.53 kB / 1.312 GB, free: 11.59 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.788e-05/0.8887, allocations: 163.1 kB / 1.312 GB, free: 11.39 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.258e-05/0.8888, allocations: 9.594 kB / 1.312 GB, free: 11.39 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.288e-05/0.8888, allocations: 8.312 kB / 1.312 GB, free: 11.38 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001147/0.8889, allocations: 56.28 kB / 1.312 GB, free: 11.35 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.693e-06/0.8889, allocations: 0.7031 kB / 1.312 GB, free: 11.35 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.112e-05/0.8889, allocations: 5.125 kB / 1.312 GB, free: 11.34 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.8889, allocations: 1.156 kB / 1.312 GB, free: 11.34 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.839e-05/0.889, allocations: 16.38 kB / 1.312 GB, free: 11.34 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001644/0.8892, allocations: 169.2 kB / 1.312 GB, free: 11.15 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 8.534e-05/0.8893, allocations: 46.02 kB / 1.312 GB, free: 11.12 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.12e-05/0.8893, allocations: 17.62 kB / 1.312 GB, free: 11.12 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 1.185e-05/0.8893, allocations: 1.125 kB / 1.312 GB, free: 11.12 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.532e-05/0.8893, allocations: 43.44 kB / 1.312 GB, free: 11.07 MB / 1.014 GB Notification: Performance of pre-optimization done (n=7): time 1.132e-06/0.8894, allocations: 0 / 1.312 GB, free: 11.07 MB / 1.014 GB Notification: Performance of matching and sorting (n=11): time 0.0007136/0.8901, allocations: 373.6 kB / 1.313 GB, free: 10.81 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.338e-05/0.8901, allocations: 53.45 kB / 1.313 GB, free: 10.75 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.308e-05/0.8902, allocations: 94.97 kB / 1.313 GB, free: 10.65 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.073e-05/0.8902, allocations: 26.98 kB / 1.313 GB, free: 10.62 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 2.62e-05/0.8902, allocations: 90.36 kB / 1.313 GB, free: 10.53 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 4.031e-05/0.8903, allocations: 38.27 kB / 1.313 GB, free: 10.5 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.312e-05/0.8903, allocations: 31.02 kB / 1.313 GB, free: 10.48 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001059/0.8905, allocations: 322.3 kB / 1.313 GB, free: 10.17 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.679e-05/0.8905, allocations: 19.64 kB / 1.313 GB, free: 10.17 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.783e-05/0.8905, allocations: 35.11 kB / 1.313 GB, free: 10.15 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.543e-05/0.8906, allocations: 67.55 kB / 1.313 GB, free: 10.13 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.513e-06/0.8906, allocations: 0.7031 kB / 1.313 GB, free: 10.13 MB / 1.014 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001305/0.8908, allocations: 94.95 kB / 1.313 GB, free: 10.09 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.272e-05/0.8908, allocations: 5.219 kB / 1.313 GB, free: 10.09 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.779e-06/0.8908, allocations: 3.625 kB / 1.313 GB, free: 10.09 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.225e-05/0.8908, allocations: 2.438 kB / 1.313 GB, free: 10.09 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001138/0.8909, allocations: 20.45 kB / 1.313 GB, free: 10.09 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.189e-06/0.891, allocations: 1.156 kB / 1.313 GB, free: 10.09 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.42e-05/0.891, allocations: 4.531 kB / 1.313 GB, free: 10.09 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.04e-05/0.891, allocations: 8.125 kB / 1.313 GB, free: 10.09 MB / 1.014 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.187e-05/0.8911, allocations: 124.2 kB / 1.314 GB, free: 9.965 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.754e-05/0.8911, allocations: 7.516 kB / 1.314 GB, free: 9.961 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.349e-05/0.8912, allocations: 11.53 kB / 1.314 GB, free: 9.953 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.124e-06/0.8912, allocations: 1.094 kB / 1.314 GB, free: 9.953 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/0.8912, allocations: 5.094 kB / 1.314 GB, free: 9.949 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.8912, allocations: 1.219 kB / 1.314 GB, free: 9.949 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001197/0.8913, allocations: 172.2 kB / 1.314 GB, free: 9.758 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.8913, allocations: 0 / 1.314 GB, free: 9.758 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001269/0.8915, allocations: 25.09 kB / 1.314 GB, free: 9.758 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.953e-06/0.8915, allocations: 4 kB / 1.314 GB, free: 9.754 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.756e-05/0.8915, allocations: 1.281 kB / 1.314 GB, free: 9.754 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.8915, allocations: 5.875 kB / 1.314 GB, free: 9.75 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.223e-06/0.8915, allocations: 0 / 1.314 GB, free: 9.75 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001917/0.8917, allocations: 138.6 kB / 1.314 GB, free: 9.676 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 6.411e-05/0.8918, allocations: 82.36 kB / 1.314 GB, free: 9.582 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.572e-05/0.8918, allocations: 1.656 kB / 1.314 GB, free: 9.582 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.014e-05/0.8919, allocations: 8.25 kB / 1.314 GB, free: 9.582 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.6e-05/0.8919, allocations: 8.859 kB / 1.314 GB, free: 9.578 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.696e-06/0.8919, allocations: 7.469 kB / 1.314 GB, free: 9.578 MB / 1.014 GB Notification: Performance of sorting global known variables: time 3.598e-05/0.892, allocations: 76.56 kB / 1.314 GB, free: 9.504 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.7e-07/0.892, allocations: 0 / 1.314 GB, free: 9.504 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002101/0.8922, allocations: 20.09 kB / 1.314 GB, free: 9.5 MB / 1.014 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.000413/0.8926, allocations: 0.6717 MB / 1.315 GB, free: 8.895 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.0001294/0.8927, allocations: 53.41 kB / 1.315 GB, free: 8.895 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.8928, allocations: 3.938 kB / 1.315 GB, free: 8.891 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 4.245e-05/0.8928, allocations: 35.45 kB / 1.315 GB, free: 8.883 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002159/0.893, allocations: 8.016 kB / 1.315 GB, free: 8.883 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001309/0.8943, allocations: 1.441 MB / 1.316 GB, free: 7.641 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000235/0.8946, allocations: 0.6852 MB / 1.317 GB, free: 6.945 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 5.618e-05/0.8947, allocations: 11.52 kB / 1.317 GB, free: 6.941 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.98e-05/0.8947, allocations: 20.14 kB / 1.317 GB, free: 6.934 MB / 1.014 GB Notification: Performance of SimCode: time 3.51e-07/0.8947, allocations: 4 kB / 1.317 GB, free: 6.93 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.135/1.03, allocations: 1.68 MB / 1.319 GB, free: 6.57 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.427/8.457, allocations: 1.094 kB / 1.319 GB, free: 6.57 MB / 1.014 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