Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001888/0.001888, allocations: 110 kB / 16.46 MB, free: 6.035 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002152/0.002152, allocations: 192.5 kB / 19.41 MB, free: 3.539 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.47/1.47, allocations: 225.6 MB / 247.8 MB, free: 13.93 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.103/3.103, allocations: 497.2 MB / 0.7811 GB, free: 33.62 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001908/0.001908, allocations: 66.02 kB / 1.134 GB, free: 33.74 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3478/0.3497, allocations: 173.9 MB / 1.304 GB, free: 1.57 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.00256/0.3523, allocations: 1.28 MB / 1.305 GB, free: 288 kB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.1794/0.5317, allocations: 147.4 MB / 1.449 GB, free: 12.27 MB / 1.154 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.026e-05/0.5317, allocations: 0 / 1.449 GB, free: 12.27 MB / 1.154 GB Notification: Performance of NFTyping.typeComponents: time 3.218e-05/0.5317, allocations: 3.938 kB / 1.449 GB, free: 12.27 MB / 1.154 GB Notification: Performance of NFTyping.typeBindings: time 4.501e-05/0.5318, allocations: 0 / 1.449 GB, free: 12.27 MB / 1.154 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003899/0.5322, allocations: 95.56 kB / 1.449 GB, free: 12.17 MB / 1.154 GB Notification: Performance of NFFlatten.flatten: time 7.836e-05/0.5323, allocations: 35.84 kB / 1.449 GB, free: 12.14 MB / 1.154 GB Notification: Performance of NFFlatten.resolveConnections: time 3.24e-05/0.5323, allocations: 0 / 1.449 GB, free: 12.14 MB / 1.154 GB Notification: Performance of NFEvalConstants.evaluate: time 3.917e-05/0.5323, allocations: 19.92 kB / 1.449 GB, free: 12.12 MB / 1.154 GB Notification: Performance of NFSimplifyModel.simplify: time 5.622e-05/0.5324, allocations: 19.92 kB / 1.449 GB, free: 12.1 MB / 1.154 GB Notification: Performance of NFPackage.collectConstants: time 9.397e-06/0.5324, allocations: 0 / 1.449 GB, free: 12.1 MB / 1.154 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002491/0.5326, allocations: 87.81 kB / 1.449 GB, free: 12.01 MB / 1.154 GB Notification: Performance of NFScalarize.scalarize: time 1.072e-05/0.5327, allocations: 0 / 1.449 GB, free: 12.01 MB / 1.154 GB Notification: Performance of NFVerifyModel.verify: time 3.043e-05/0.5327, allocations: 23.91 kB / 1.449 GB, free: 11.99 MB / 1.154 GB Notification: Performance of NFConvertDAE.convert: time 0.0001484/0.5328, allocations: 64.05 kB / 1.449 GB, free: 11.93 MB / 1.154 GB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.5328, allocations: 0 / 1.449 GB, free: 11.93 MB / 1.154 GB Notification: Performance of FrontEnd: time 1.182e-06/0.5328, allocations: 0 / 1.449 GB, free: 11.93 MB / 1.154 GB Notification: Performance of Transformations before backend: time 9.278e-06/0.5329, allocations: 4 kB / 1.45 GB, free: 11.92 MB / 1.154 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.0004516/0.5333, allocations: 359.3 kB / 1.45 GB, free: 11.52 MB / 1.154 GB Notification: Performance of prepare preOptimizeDAE: time 3.648e-05/0.5333, allocations: 8.625 kB / 1.45 GB, free: 11.52 MB / 1.154 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.434e-05/0.5334, allocations: 34.75 kB / 1.45 GB, free: 11.47 MB / 1.154 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001746/0.5335, allocations: 12.92 kB / 1.45 GB, free: 11.46 MB / 1.154 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001355/0.5337, allocations: 168.1 kB / 1.45 GB, free: 11.26 MB / 1.154 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.487e-05/0.5337, allocations: 8 kB / 1.45 GB, free: 11.25 MB / 1.154 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.144e-05/0.5337, allocations: 0 / 1.45 GB, free: 11.25 MB / 1.154 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001345/0.5339, allocations: 57.66 kB / 1.45 GB, free: 11.19 MB / 1.154 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.849e-06/0.5339, allocations: 3.984 kB / 1.45 GB, free: 11.18 MB / 1.154 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.181e-05/0.5339, allocations: 8 kB / 1.45 GB, free: 11.18 MB / 1.154 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.937e-06/0.5339, allocations: 0 / 1.45 GB, free: 11.18 MB / 1.154 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.662e-05/0.5339, allocations: 19.92 kB / 1.45 GB, free: 11.16 MB / 1.154 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001883/0.5341, allocations: 165.6 kB / 1.45 GB, free: 10.95 MB / 1.154 GB Notification: Performance of preOpt comSubExp (simulation): time 8.971e-05/0.5342, allocations: 46.56 kB / 1.45 GB, free: 10.89 MB / 1.154 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.92e-05/0.5342, allocations: 17.08 kB / 1.45 GB, free: 10.87 MB / 1.154 GB Notification: Performance of preOpt evalFunc (simulation): time 1.024e-05/0.5342, allocations: 0 / 1.45 GB, free: 10.87 MB / 1.154 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.186e-05/0.5343, allocations: 38.56 kB / 1.45 GB, free: 10.82 MB / 1.154 GB Notification: Performance of pre-optimization done (n=7): time 8.82e-07/0.5343, allocations: 0 / 1.45 GB, free: 10.82 MB / 1.154 GB Notification: Performance of matching and sorting (n=11): time 0.0007238/0.535, allocations: 370.1 kB / 1.451 GB, free: 10.41 MB / 1.154 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.708e-05/0.5351, allocations: 51.41 kB / 1.451 GB, free: 10.35 MB / 1.154 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.704e-05/0.5351, allocations: 101.8 kB / 1.451 GB, free: 10.24 MB / 1.154 GB Notification: Performance of collectPreVariables (initialization): time 2.098e-05/0.5352, allocations: 25.83 kB / 1.451 GB, free: 10.21 MB / 1.154 GB Notification: Performance of collectInitialEqns (initialization): time 4.491e-05/0.5352, allocations: 84.14 kB / 1.451 GB, free: 10.12 MB / 1.154 GB Notification: Performance of collectInitialBindings (initialization): time 4.673e-05/0.5352, allocations: 43.64 kB / 1.451 GB, free: 10.08 MB / 1.154 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.504e-05/0.5353, allocations: 33.64 kB / 1.451 GB, free: 10.04 MB / 1.154 GB Notification: Performance of setup shared object (initialization): time 0.0001408/0.5354, allocations: 318.8 kB / 1.451 GB, free: 9.719 MB / 1.154 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.372e-05/0.5355, allocations: 15.98 kB / 1.451 GB, free: 9.703 MB / 1.154 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.155e-05/0.5355, allocations: 37.7 kB / 1.451 GB, free: 9.66 MB / 1.154 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.434e-05/0.5356, allocations: 65.64 kB / 1.452 GB, free: 9.59 MB / 1.154 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.5356, allocations: 8 kB / 1.452 GB, free: 9.582 MB / 1.154 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001368/0.5358, allocations: 90.17 kB / 1.452 GB, free: 9.488 MB / 1.154 GB Notification: Performance of prepare postOptimizeDAE: time 1.285e-05/0.5358, allocations: 8 kB / 1.452 GB, free: 9.48 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.897e-06/0.5358, allocations: 0 / 1.452 GB, free: 9.48 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.19e-05/0.5358, allocations: 0 / 1.452 GB, free: 9.48 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001201/0.5359, allocations: 27.92 kB / 1.452 GB, free: 9.453 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.344e-06/0.5359, allocations: 4.141 kB / 1.452 GB, free: 9.449 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.043e-05/0.536, allocations: 4 kB / 1.452 GB, free: 9.445 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.438e-06/0.536, allocations: 7.938 kB / 1.452 GB, free: 9.438 MB / 1.154 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 9.764e-05/0.5361, allocations: 121.8 kB / 1.452 GB, free: 9.309 MB / 1.154 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.428e-05/0.5361, allocations: 4 kB / 1.452 GB, free: 9.305 MB / 1.154 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.56e-05/0.5361, allocations: 11.91 kB / 1.452 GB, free: 9.293 MB / 1.154 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.5361, allocations: 0 / 1.452 GB, free: 9.293 MB / 1.154 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.5361, allocations: 0 / 1.452 GB, free: 9.293 MB / 1.154 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.5361, allocations: 0 / 1.452 GB, free: 9.293 MB / 1.154 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001685/0.5363, allocations: 177.6 kB / 1.452 GB, free: 9.07 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.61e-07/0.5363, allocations: 0 / 1.452 GB, free: 9.07 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001263/0.5364, allocations: 27.92 kB / 1.452 GB, free: 9.043 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.5364, allocations: 0 / 1.452 GB, free: 9.043 MB / 1.154 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.464e-06/0.5364, allocations: 4 kB / 1.452 GB, free: 9.039 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.5364, allocations: 0 / 1.452 GB, free: 9.039 MB / 1.154 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.5364, allocations: 0 / 1.452 GB, free: 9.039 MB / 1.154 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002137/0.5366, allocations: 133 kB / 1.452 GB, free: 8.891 MB / 1.154 GB Notification: Performance of postOpt removeConstants (simulation): time 8.264e-05/0.5367, allocations: 93.03 kB / 1.452 GB, free: 8.781 MB / 1.154 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.411e-05/0.5367, allocations: 0 / 1.452 GB, free: 8.781 MB / 1.154 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.3e-05/0.5368, allocations: 8 kB / 1.452 GB, free: 8.773 MB / 1.154 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.55e-05/0.5368, allocations: 11.92 kB / 1.452 GB, free: 8.762 MB / 1.154 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.342e-06/0.5369, allocations: 4 kB / 1.452 GB, free: 8.758 MB / 1.154 GB Notification: Performance of sorting global known variables: time 5.349e-05/0.5369, allocations: 83.22 kB / 1.452 GB, free: 8.676 MB / 1.154 GB Notification: Performance of sort global known variables: time 1e-07/0.5369, allocations: 4 kB / 1.452 GB, free: 8.672 MB / 1.154 GB Notification: Performance of remove unused functions: time 0.0001957/0.5371, allocations: 12 kB / 1.452 GB, free: 8.66 MB / 1.154 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.0005401/0.5376, allocations: 0.6666 MB / 1.453 GB, free: 7.965 MB / 1.154 GB Notification: Performance of simCode: created initialization part: time 0.0001356/0.5378, allocations: 52.23 kB / 1.453 GB, free: 7.914 MB / 1.154 GB Notification: Performance of simCode: created event and clocks part: time 5.701e-06/0.5378, allocations: 0 / 1.453 GB, free: 7.914 MB / 1.154 GB Notification: Performance of simCode: created simulation system equations: time 4.234e-05/0.5378, allocations: 31.86 kB / 1.453 GB, free: 7.883 MB / 1.154 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000225/0.5381, allocations: 13.81 kB / 1.453 GB, free: 7.871 MB / 1.154 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001518/0.5396, allocations: 1.451 MB / 1.454 GB, free: 6.332 MB / 1.154 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003436/0.5399, allocations: 0.6961 MB / 1.455 GB, free: 5.609 MB / 1.154 GB Notification: Performance of simCode: alias equations: time 5.293e-05/0.54, allocations: 8.672 kB / 1.455 GB, free: 5.602 MB / 1.154 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.31e-05/0.54, allocations: 15.44 kB / 1.455 GB, free: 5.586 MB / 1.154 GB Notification: Performance of SimCode: time 3e-07/0.54, allocations: 0 / 1.455 GB, free: 5.586 MB / 1.154 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0246/0.5646, allocations: 1.702 MB / 1.457 GB, free: 4.023 MB / 1.154 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.136/8.7, allocations: 4.297 kB / 1.457 GB, free: 4.023 MB / 1.154 GB " [Timeout remaining time 291] (rm -f Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-08 Buildings_latest_Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.fmu > Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.238588969223201]