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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001797/0.001797, allocations: 106.8 kB / 16.45 MB, free: 6.453 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002126/0.002126, allocations: 216.2 kB / 19.43 MB, free: 3.625 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.492/1.492, allocations: 230.6 MB / 252.8 MB, free: 8.957 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.815/2.815, allocations: 476.7 MB / 0.7672 GB, free: 5.203 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002251/0.002251, allocations: 63.91 kB / 1.112 GB, free: 1.547 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8472/0.8494, allocations: 169.9 MB / 1.278 GB, free: 13.41 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002492/0.8519, allocations: 1.299 MB / 1.28 GB, free: 12.11 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.1806/1.032, allocations: 150.3 MB / 1.426 GB, free: 5.254 MB / 1.123 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.868e-05/1.033, allocations: 0 / 1.426 GB, free: 5.254 MB / 1.123 GB Notification: Performance of NFTyping.typeComponents: time 1.725e-05/1.033, allocations: 0 / 1.426 GB, free: 5.254 MB / 1.123 GB Notification: Performance of NFTyping.typeBindings: time 4.946e-05/1.033, allocations: 3.938 kB / 1.426 GB, free: 5.25 MB / 1.123 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005012/1.033, allocations: 91.56 kB / 1.426 GB, free: 5.16 MB / 1.123 GB Notification: Performance of NFFlatten.flatten: time 8.84e-05/1.033, allocations: 35.91 kB / 1.426 GB, free: 5.125 MB / 1.123 GB Notification: Performance of NFFlatten.resolveConnections: time 4.308e-05/1.033, allocations: 4 kB / 1.426 GB, free: 5.121 MB / 1.123 GB Notification: Performance of NFEvalConstants.evaluate: time 5.061e-05/1.033, allocations: 19.92 kB / 1.426 GB, free: 5.102 MB / 1.123 GB Notification: Performance of NFSimplifyModel.simplify: time 6.353e-05/1.033, allocations: 19.92 kB / 1.426 GB, free: 5.082 MB / 1.123 GB Notification: Performance of NFPackage.collectConstants: time 1.149e-05/1.033, allocations: 0 / 1.426 GB, free: 5.082 MB / 1.123 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002952/1.034, allocations: 79.81 kB / 1.427 GB, free: 5.004 MB / 1.123 GB Notification: Performance of NFScalarize.scalarize: time 1.541e-05/1.034, allocations: 4 kB / 1.427 GB, free: 5 MB / 1.123 GB Notification: Performance of NFVerifyModel.verify: time 3.915e-05/1.034, allocations: 19.91 kB / 1.427 GB, free: 4.98 MB / 1.123 GB Notification: Performance of NFConvertDAE.convert: time 0.0001695/1.034, allocations: 65.66 kB / 1.427 GB, free: 4.918 MB / 1.123 GB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/1.034, allocations: 3.938 kB / 1.427 GB, free: 4.914 MB / 1.123 GB Notification: Performance of FrontEnd: time 1.122e-06/1.034, allocations: 4 kB / 1.427 GB, free: 4.91 MB / 1.123 GB Notification: Performance of Transformations before backend: time 5.52e-06/1.034, allocations: 0 / 1.427 GB, free: 4.91 MB / 1.123 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.0004569/1.034, allocations: 363.2 kB / 1.427 GB, free: 4.508 MB / 1.123 GB Notification: Performance of prepare preOptimizeDAE: time 4.724e-05/1.034, allocations: 8.031 kB / 1.427 GB, free: 4.5 MB / 1.123 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.187e-05/1.034, allocations: 38.75 kB / 1.427 GB, free: 4.453 MB / 1.123 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001903/1.035, allocations: 12.92 kB / 1.427 GB, free: 4.441 MB / 1.123 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001364/1.035, allocations: 168.1 kB / 1.427 GB, free: 4.238 MB / 1.123 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.476e-06/1.035, allocations: 0 / 1.427 GB, free: 4.238 MB / 1.123 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.673e-05/1.035, allocations: 15.94 kB / 1.427 GB, free: 4.223 MB / 1.123 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001273/1.035, allocations: 53.67 kB / 1.427 GB, free: 4.164 MB / 1.123 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.194e-06/1.035, allocations: 0 / 1.427 GB, free: 4.164 MB / 1.123 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.939e-06/1.035, allocations: 0 / 1.427 GB, free: 4.164 MB / 1.123 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.973e-06/1.035, allocations: 4 kB / 1.427 GB, free: 4.16 MB / 1.123 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.051e-05/1.035, allocations: 15.98 kB / 1.427 GB, free: 4.145 MB / 1.123 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002033/1.035, allocations: 173.5 kB / 1.427 GB, free: 3.926 MB / 1.123 GB Notification: Performance of preOpt comSubExp (simulation): time 9.836e-05/1.035, allocations: 46.5 kB / 1.427 GB, free: 3.871 MB / 1.123 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.624e-05/1.035, allocations: 24.84 kB / 1.427 GB, free: 3.844 MB / 1.123 GB Notification: Performance of preOpt evalFunc (simulation): time 8.656e-06/1.035, allocations: 0 / 1.427 GB, free: 3.844 MB / 1.123 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.535e-05/1.035, allocations: 34.8 kB / 1.428 GB, free: 3.801 MB / 1.123 GB Notification: Performance of pre-optimization done (n=7): time 9.82e-07/1.035, allocations: 4 kB / 1.428 GB, free: 3.797 MB / 1.123 GB Notification: Performance of matching and sorting (n=11): time 0.0008042/1.036, allocations: 362.2 kB / 1.428 GB, free: 3.391 MB / 1.123 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.888e-05/1.036, allocations: 55.41 kB / 1.428 GB, free: 3.324 MB / 1.123 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.506e-05/1.036, allocations: 89.86 kB / 1.428 GB, free: 3.227 MB / 1.123 GB Notification: Performance of collectPreVariables (initialization): time 2.423e-05/1.036, allocations: 33.7 kB / 1.428 GB, free: 3.188 MB / 1.123 GB Notification: Performance of collectInitialEqns (initialization): time 4.256e-05/1.036, allocations: 84.12 kB / 1.428 GB, free: 3.102 MB / 1.123 GB Notification: Performance of collectInitialBindings (initialization): time 5.676e-05/1.036, allocations: 39.59 kB / 1.428 GB, free: 3.062 MB / 1.123 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.21e-05/1.036, allocations: 29.7 kB / 1.428 GB, free: 3.027 MB / 1.123 GB Notification: Performance of setup shared object (initialization): time 0.0001642/1.037, allocations: 318.8 kB / 1.428 GB, free: 2.707 MB / 1.123 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.425e-05/1.037, allocations: 23.92 kB / 1.429 GB, free: 2.684 MB / 1.123 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.041e-05/1.037, allocations: 49.19 kB / 1.429 GB, free: 2.633 MB / 1.123 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.861e-05/1.037, allocations: 54.25 kB / 1.429 GB, free: 2.574 MB / 1.123 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.12e-07/1.037, allocations: 0 / 1.429 GB, free: 2.574 MB / 1.123 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.00018/1.037, allocations: 101.5 kB / 1.429 GB, free: 2.469 MB / 1.123 GB Notification: Performance of prepare postOptimizeDAE: time 1.888e-05/1.037, allocations: 10.03 kB / 1.429 GB, free: 2.461 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.489e-06/1.037, allocations: 0 / 1.429 GB, free: 2.461 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.586e-05/1.037, allocations: 0 / 1.429 GB, free: 2.461 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001291/1.037, allocations: 27.98 kB / 1.429 GB, free: 2.434 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.901e-06/1.037, allocations: 0 / 1.429 GB, free: 2.434 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.598e-05/1.037, allocations: 4 kB / 1.429 GB, free: 2.43 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.358e-05/1.037, allocations: 7.938 kB / 1.429 GB, free: 2.422 MB / 1.123 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 0.0001297/1.037, allocations: 120 kB / 1.429 GB, free: 2.297 MB / 1.123 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.656e-05/1.037, allocations: 3.938 kB / 1.429 GB, free: 2.293 MB / 1.123 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.197e-05/1.037, allocations: 15.97 kB / 1.429 GB, free: 2.277 MB / 1.123 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/1.037, allocations: 0 / 1.429 GB, free: 2.277 MB / 1.123 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/1.037, allocations: 0 / 1.429 GB, free: 2.277 MB / 1.123 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/1.037, allocations: 0 / 1.429 GB, free: 2.277 MB / 1.123 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000166/1.038, allocations: 173.6 kB / 1.429 GB, free: 2.059 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/1.038, allocations: 4 kB / 1.429 GB, free: 2.055 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001303/1.038, allocations: 19.98 kB / 1.429 GB, free: 2.035 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.91e-06/1.038, allocations: 4 kB / 1.429 GB, free: 2.031 MB / 1.123 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.18e-05/1.038, allocations: 4 kB / 1.429 GB, free: 2.027 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/1.038, allocations: 0 / 1.429 GB, free: 2.027 MB / 1.123 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.42e-07/1.038, allocations: 0 / 1.429 GB, free: 2.027 MB / 1.123 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002264/1.038, allocations: 136.9 kB / 1.429 GB, free: 1.875 MB / 1.123 GB Notification: Performance of postOpt removeConstants (simulation): time 8.809e-05/1.038, allocations: 97.09 kB / 1.429 GB, free: 1.762 MB / 1.123 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.495e-05/1.038, allocations: 4 kB / 1.429 GB, free: 1.758 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.547e-05/1.038, allocations: 0 / 1.429 GB, free: 1.758 MB / 1.123 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.235e-05/1.038, allocations: 11.98 kB / 1.429 GB, free: 1.746 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.011e-05/1.038, allocations: 4 kB / 1.429 GB, free: 1.742 MB / 1.123 GB Notification: Performance of sorting global known variables: time 7.306e-05/1.038, allocations: 79.22 kB / 1.429 GB, free: 1.664 MB / 1.123 GB Notification: Performance of sort global known variables: time 7e-08/1.038, allocations: 0 / 1.429 GB, free: 1.664 MB / 1.123 GB Notification: Performance of remove unused functions: time 0.0002036/1.039, allocations: 16 kB / 1.429 GB, free: 1.648 MB / 1.123 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.0005316/1.039, allocations: 0.6758 MB / 1.43 GB, free: 0.9414 MB / 1.123 GB Notification: Performance of simCode: created initialization part: time 0.0001401/1.039, allocations: 51.97 kB / 1.43 GB, free: 0.8906 MB / 1.123 GB Notification: Performance of simCode: created event and clocks part: time 2.175e-06/1.039, allocations: 0 / 1.43 GB, free: 0.8906 MB / 1.123 GB Notification: Performance of simCode: created simulation system equations: time 4.646e-05/1.039, allocations: 27.92 kB / 1.43 GB, free: 0.8633 MB / 1.123 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000217/1.039, allocations: 11.98 kB / 1.43 GB, free: 0.8516 MB / 1.123 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00159/1.041, allocations: 1.452 MB / 1.432 GB, free: 15.31 MB / 1.139 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003442/1.041, allocations: 0.6924 MB / 1.432 GB, free: 14.59 MB / 1.139 GB Notification: Performance of simCode: alias equations: time 9.101e-05/1.041, allocations: 8.672 kB / 1.432 GB, free: 14.59 MB / 1.139 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.729e-05/1.042, allocations: 19.44 kB / 1.432 GB, free: 14.57 MB / 1.139 GB Notification: Performance of SimCode: time 3.81e-07/1.042, allocations: 0 / 1.432 GB, free: 14.57 MB / 1.139 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0263/1.068, allocations: 1.703 MB / 1.434 GB, free: 13 MB / 1.139 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.374/9.442, allocations: 4.438 kB / 1.434 GB, free: 13 MB / 1.139 GB " [Timeout remaining time 290] (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 400 --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) [Timeout 420.0] 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) [Timeout 300] "Error: Could not read variable der(hLiqSym) in file Buildings_11_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.csv. Warning: Get data of variable der(hLiqSym) from file Buildings_11_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.csv failed! Error: Could not read variable der(hLiqCod) in file Buildings_11_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.csv. Warning: Get data of variable der(hLiqCod) from file Buildings_11_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.csv failed! Error: Could not read variable der(hSteSym) in file Buildings_11_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.csv. Warning: Get data of variable der(hSteSym) from file Buildings_11_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.csv failed! Error: Could not read variable der(hSteCod) in file Buildings_11_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.csv. Warning: Get data of variable der(hSteCod) from file Buildings_11_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.csv failed! Error: Could not read variable der(hAirSym) in file Buildings_11_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.csv. Warning: Get data of variable der(hAirSym) from file Buildings_11_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.csv failed! Error: Could not read variable der(hAirCod) in file Buildings_11_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.csv. Warning: Get data of variable der(hAirCod) from file Buildings_11_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.624535036971793]