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.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.001435/0.001435, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001637/0.001637, allocations: 209.1 kB / 22.24 MB, free: 5.262 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.309/1.309, allocations: 230.6 MB / 256 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.898/2.898, allocations: 0.5107 GB / 0.8158 GB, free: 17.8 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/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_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: 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.001929/0.001929, allocations: 60.89 kB / 1.186 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2914/0.2933, allocations: 181.9 MB / 1.363 GB, free: 14.11 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.00217/0.2955, allocations: 1.292 MB / 1.365 GB, free: 12.8 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.1477/0.4432, allocations: 129 MB / 1.491 GB, free: 11.26 MB / 1.186 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.565e-05/0.4432, allocations: 0 / 1.491 GB, free: 11.26 MB / 1.186 GB Notification: Performance of NFTyping.typeComponents: time 2.753e-05/0.4433, allocations: 3.938 kB / 1.491 GB, free: 11.25 MB / 1.186 GB Notification: Performance of NFTyping.typeBindings: time 5.243e-05/0.4433, allocations: 4 kB / 1.491 GB, free: 11.25 MB / 1.186 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004071/0.4437, allocations: 95.5 kB / 1.491 GB, free: 11.16 MB / 1.186 GB Notification: Performance of NFFlatten.flatten: time 7.981e-05/0.4438, allocations: 39.78 kB / 1.491 GB, free: 11.12 MB / 1.186 GB Notification: Performance of NFFlatten.resolveConnections: time 4.327e-05/0.4438, allocations: 4 kB / 1.491 GB, free: 11.11 MB / 1.186 GB Notification: Performance of NFEvalConstants.evaluate: time 4.94e-05/0.4439, allocations: 15.94 kB / 1.491 GB, free: 11.1 MB / 1.186 GB Notification: Performance of NFSimplifyModel.simplify: time 6.873e-05/0.444, allocations: 15.91 kB / 1.491 GB, free: 11.08 MB / 1.186 GB Notification: Performance of NFPackage.collectConstants: time 1.617e-05/0.444, allocations: 4 kB / 1.491 GB, free: 11.08 MB / 1.186 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000255/0.4442, allocations: 75.83 kB / 1.491 GB, free: 11 MB / 1.186 GB Notification: Performance of NFScalarize.scalarize: time 1.765e-05/0.4442, allocations: 11.98 kB / 1.491 GB, free: 10.99 MB / 1.186 GB Notification: Performance of NFVerifyModel.verify: time 2.97e-05/0.4443, allocations: 11.94 kB / 1.491 GB, free: 10.98 MB / 1.186 GB Notification: Performance of NFConvertDAE.convert: time 0.0001653/0.4444, allocations: 72.03 kB / 1.491 GB, free: 10.91 MB / 1.186 GB Notification: Performance of FrontEnd - DAE generated: time 5.48e-06/0.4444, allocations: 0 / 1.491 GB, free: 10.91 MB / 1.186 GB Notification: Performance of FrontEnd: time 1.533e-06/0.4444, allocations: 0 / 1.491 GB, free: 10.91 MB / 1.186 GB Notification: Performance of Transformations before backend: time 5.22e-06/0.4444, allocations: 0 / 1.491 GB, free: 10.91 MB / 1.186 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.00042/0.4449, allocations: 274.2 kB / 1.491 GB, free: 10.61 MB / 1.186 GB Notification: Performance of prepare preOptimizeDAE: time 4.12e-05/0.4449, allocations: 8.031 kB / 1.491 GB, free: 10.61 MB / 1.186 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.361e-05/0.445, allocations: 34.73 kB / 1.491 GB, free: 10.56 MB / 1.186 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001803/0.4451, allocations: 16.89 kB / 1.491 GB, free: 10.55 MB / 1.186 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001008/0.4452, allocations: 118.2 kB / 1.491 GB, free: 10.41 MB / 1.186 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.201e-05/0.4452, allocations: 0 / 1.491 GB, free: 10.41 MB / 1.186 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.914e-05/0.4453, allocations: 7.984 kB / 1.491 GB, free: 10.4 MB / 1.186 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001694/0.4454, allocations: 130.8 kB / 1.492 GB, free: 10.25 MB / 1.186 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.4455, allocations: 0 / 1.492 GB, free: 10.25 MB / 1.186 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.05e-05/0.4455, allocations: 0 / 1.492 GB, free: 10.25 MB / 1.186 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.111e-06/0.4455, allocations: 4 kB / 1.492 GB, free: 10.24 MB / 1.186 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.293e-05/0.4455, allocations: 19.92 kB / 1.492 GB, free: 10.22 MB / 1.186 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001624/0.4457, allocations: 136.7 kB / 1.492 GB, free: 10.05 MB / 1.186 GB Notification: Performance of preOpt comSubExp (simulation): time 8.889e-05/0.4458, allocations: 42.56 kB / 1.492 GB, free: 9.996 MB / 1.186 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.15e-05/0.4458, allocations: 24.84 kB / 1.492 GB, free: 9.969 MB / 1.186 GB Notification: Performance of preOpt evalFunc (simulation): time 9.829e-06/0.4458, allocations: 0 / 1.492 GB, free: 9.969 MB / 1.186 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.071e-05/0.4458, allocations: 34.56 kB / 1.492 GB, free: 9.926 MB / 1.186 GB Notification: Performance of pre-optimization done (n=7): time 7.62e-07/0.4458, allocations: 0 / 1.492 GB, free: 9.926 MB / 1.186 GB Notification: Performance of matching and sorting (n=11): time 0.0006524/0.4465, allocations: 305.7 kB / 1.492 GB, free: 9.594 MB / 1.186 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.961e-05/0.4465, allocations: 59.41 kB / 1.492 GB, free: 9.523 MB / 1.186 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.348e-05/0.4466, allocations: 89.86 kB / 1.492 GB, free: 9.426 MB / 1.186 GB Notification: Performance of collectPreVariables (initialization): time 1.867e-05/0.4466, allocations: 29.69 kB / 1.492 GB, free: 9.391 MB / 1.186 GB Notification: Performance of collectInitialEqns (initialization): time 3.305e-05/0.4467, allocations: 88.27 kB / 1.492 GB, free: 9.301 MB / 1.186 GB Notification: Performance of collectInitialBindings (initialization): time 4.154e-05/0.4467, allocations: 39.66 kB / 1.492 GB, free: 9.262 MB / 1.186 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.632e-05/0.4467, allocations: 29.7 kB / 1.492 GB, free: 9.227 MB / 1.186 GB Notification: Performance of setup shared object (initialization): time 0.0001213/0.4469, allocations: 314.8 kB / 1.493 GB, free: 8.91 MB / 1.186 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.678e-05/0.4469, allocations: 23.98 kB / 1.493 GB, free: 8.887 MB / 1.186 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.675e-05/0.4469, allocations: 35.45 kB / 1.493 GB, free: 8.848 MB / 1.186 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.492e-05/0.447, allocations: 57.66 kB / 1.493 GB, free: 8.785 MB / 1.186 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/0.447, allocations: 3.984 kB / 1.493 GB, free: 8.781 MB / 1.186 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.000128/0.4472, allocations: 89.67 kB / 1.493 GB, free: 8.688 MB / 1.186 GB Notification: Performance of prepare postOptimizeDAE: time 1.327e-05/0.4472, allocations: 11.94 kB / 1.493 GB, free: 8.676 MB / 1.186 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.117e-06/0.4472, allocations: 0 / 1.493 GB, free: 8.676 MB / 1.186 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.1e-05/0.4472, allocations: 4 kB / 1.493 GB, free: 8.672 MB / 1.186 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001145/0.4473, allocations: 27.92 kB / 1.493 GB, free: 8.645 MB / 1.186 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.08e-06/0.4473, allocations: 0 / 1.493 GB, free: 8.645 MB / 1.186 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.145e-05/0.4473, allocations: 4 kB / 1.493 GB, free: 8.641 MB / 1.186 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.797e-06/0.4474, allocations: 11.88 kB / 1.493 GB, free: 8.629 MB / 1.186 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.315e-05/0.4474, allocations: 113.8 kB / 1.493 GB, free: 8.508 MB / 1.186 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.708e-05/0.4475, allocations: 7.953 kB / 1.493 GB, free: 8.5 MB / 1.186 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.729e-05/0.4475, allocations: 11.91 kB / 1.493 GB, free: 8.484 MB / 1.186 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-06/0.4475, allocations: 0 / 1.493 GB, free: 8.484 MB / 1.186 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.616e-06/0.4475, allocations: 0 / 1.493 GB, free: 8.484 MB / 1.186 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.688e-06/0.4475, allocations: 7.984 kB / 1.493 GB, free: 8.477 MB / 1.186 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001193/0.4476, allocations: 144.7 kB / 1.493 GB, free: 8.293 MB / 1.186 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.4476, allocations: 0 / 1.493 GB, free: 8.293 MB / 1.186 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001184/0.4477, allocations: 27.92 kB / 1.493 GB, free: 8.266 MB / 1.186 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.4477, allocations: 0 / 1.493 GB, free: 8.266 MB / 1.186 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.815e-06/0.4477, allocations: 0 / 1.493 GB, free: 8.266 MB / 1.186 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.4477, allocations: 0 / 1.493 GB, free: 8.266 MB / 1.186 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.4477, allocations: 0 / 1.493 GB, free: 8.266 MB / 1.186 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001949/0.4479, allocations: 136.9 kB / 1.493 GB, free: 8.113 MB / 1.186 GB Notification: Performance of postOpt removeConstants (simulation): time 4.656e-05/0.448, allocations: 8.031 kB / 1.493 GB, free: 8.105 MB / 1.186 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.694e-05/0.448, allocations: 4 kB / 1.493 GB, free: 8.102 MB / 1.186 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.463e-05/0.4481, allocations: 8 kB / 1.493 GB, free: 8.094 MB / 1.186 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.969e-05/0.4481, allocations: 11.92 kB / 1.493 GB, free: 8.082 MB / 1.186 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.356e-06/0.4481, allocations: 4 kB / 1.493 GB, free: 8.078 MB / 1.186 GB Notification: Performance of sorting global known variables: time 4.261e-05/0.4482, allocations: 87.2 kB / 1.494 GB, free: 7.992 MB / 1.186 GB Notification: Performance of sort global known variables: time 6e-08/0.4482, allocations: 0 / 1.494 GB, free: 7.992 MB / 1.186 GB Notification: Performance of remove unused functions: time 0.0001865/0.4483, allocations: 16 kB / 1.494 GB, free: 7.977 MB / 1.186 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.0004375/0.4488, allocations: 0.6554 MB / 1.494 GB, free: 7.289 MB / 1.186 GB Notification: Performance of simCode: created initialization part: time 0.0001265/0.4489, allocations: 55.89 kB / 1.494 GB, free: 7.234 MB / 1.186 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.4489, allocations: 8.094 kB / 1.494 GB, free: 7.227 MB / 1.186 GB Notification: Performance of simCode: created simulation system equations: time 3.972e-05/0.4489, allocations: 27.94 kB / 1.494 GB, free: 7.199 MB / 1.186 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002047/0.4491, allocations: 13.48 kB / 1.494 GB, free: 7.188 MB / 1.186 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001339/0.4505, allocations: 1.443 MB / 1.496 GB, free: 5.66 MB / 1.186 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.839e-05/0.4505, allocations: 79.27 kB / 1.496 GB, free: 5.562 MB / 1.186 GB Notification: Performance of simCode: alias equations: time 4.905e-05/0.4506, allocations: 12.61 kB / 1.496 GB, free: 5.551 MB / 1.186 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.375e-05/0.4506, allocations: 19.42 kB / 1.496 GB, free: 5.531 MB / 1.186 GB Notification: Performance of SimCode: time 2.9e-07/0.4506, allocations: 0 / 1.496 GB, free: 5.531 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0272/0.4778, allocations: 2.213 MB / 1.498 GB, free: 3.457 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.3/10.78, allocations: 5.953 kB / 1.498 GB, free: 3.457 MB / 1.186 GB " [Timeout remaining time 289] (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/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: 16.689324515871704]