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.001324/0.001324, allocations: 100.3 kB / 19.7 MB, free: 2.012 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.001581/0.001581, allocations: 222.8 kB / 22.99 MB, free: 4.914 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.506/1.506, allocations: 230.6 MB / 256.8 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] 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 3.258/3.258, allocations: 0.5107 GB / 0.8166 GB, free: 17.85 MB / 0.6231 GB " [Timeout remaining time 176] 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: translateModel(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.hSteSym.|der.hSteCod.|der.hAirSym.|der.hAirCod.",fileNamePrefix="Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck") translateModel(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.hSteSym.|der.hSteCod.|der.hAirSym.|der.hAirCod.",fileNamePrefix="Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck") [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.001996/0.001996, allocations: 72.28 kB / 1.187 GB, free: 13.46 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3767/0.3787, allocations: 181.9 MB / 1.365 GB, free: 13.66 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002716/0.3814, allocations: 1.286 MB / 1.366 GB, free: 12.36 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.1768/0.5582, allocations: 129 MB / 1.492 GB, free: 10.82 MB / 1.186 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.033e-05/0.5582, allocations: 0 / 1.492 GB, free: 10.82 MB / 1.186 GB Notification: Performance of NFTyping.typeComponents: time 3.073e-05/0.5583, allocations: 7.922 kB / 1.492 GB, free: 10.81 MB / 1.186 GB Notification: Performance of NFTyping.typeBindings: time 5.943e-05/0.5583, allocations: 7.938 kB / 1.492 GB, free: 10.8 MB / 1.186 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005364/0.5589, allocations: 87.56 kB / 1.492 GB, free: 10.71 MB / 1.186 GB Notification: Performance of NFFlatten.flatten: time 9.131e-05/0.559, allocations: 31.92 kB / 1.492 GB, free: 10.68 MB / 1.186 GB Notification: Performance of NFFlatten.resolveConnections: time 4.81e-05/0.559, allocations: 7.984 kB / 1.492 GB, free: 10.68 MB / 1.186 GB Notification: Performance of NFEvalConstants.evaluate: time 5.282e-05/0.5591, allocations: 11.94 kB / 1.492 GB, free: 10.66 MB / 1.186 GB Notification: Performance of NFSimplifyModel.simplify: time 6.909e-05/0.5591, allocations: 23.91 kB / 1.492 GB, free: 10.64 MB / 1.186 GB Notification: Performance of NFPackage.collectConstants: time 1.368e-05/0.5591, allocations: 4 kB / 1.492 GB, free: 10.64 MB / 1.186 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002931/0.5594, allocations: 67.84 kB / 1.492 GB, free: 10.57 MB / 1.186 GB Notification: Performance of NFScalarize.scalarize: time 2.712e-05/0.5595, allocations: 15.97 kB / 1.492 GB, free: 10.55 MB / 1.186 GB Notification: Performance of NFVerifyModel.verify: time 2.652e-05/0.5595, allocations: 11.94 kB / 1.492 GB, free: 10.54 MB / 1.186 GB Notification: Performance of NFConvertDAE.convert: time 0.0001854/0.5597, allocations: 59.83 kB / 1.492 GB, free: 10.48 MB / 1.186 GB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.5597, allocations: 7.922 kB / 1.492 GB, free: 10.48 MB / 1.186 GB Notification: Performance of FrontEnd: time 1.553e-06/0.5597, allocations: 3.938 kB / 1.492 GB, free: 10.47 MB / 1.186 GB Notification: Performance of Transformations before backend: time 6.693e-06/0.5597, allocations: 0 / 1.492 GB, free: 10.47 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.0004572/0.5601, allocations: 278.2 kB / 1.492 GB, free: 10.17 MB / 1.186 GB Notification: Performance of prepare preOptimizeDAE: time 3.815e-05/0.5602, allocations: 8.031 kB / 1.492 GB, free: 10.16 MB / 1.186 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002139/0.5604, allocations: 20.88 kB / 1.492 GB, free: 10.14 MB / 1.186 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001186/0.5605, allocations: 114.5 kB / 1.493 GB, free: 10.01 MB / 1.186 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.858e-05/0.5605, allocations: 7.938 kB / 1.493 GB, free: 10 MB / 1.186 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.408e-05/0.5606, allocations: 4 kB / 1.493 GB, free: 9.996 MB / 1.186 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001757/0.5607, allocations: 130.8 kB / 1.493 GB, free: 9.844 MB / 1.186 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.788e-06/0.5607, allocations: 0 / 1.493 GB, free: 9.844 MB / 1.186 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.14e-05/0.5608, allocations: 0 / 1.493 GB, free: 9.844 MB / 1.186 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.5608, allocations: 0 / 1.493 GB, free: 9.844 MB / 1.186 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.441e-05/0.5608, allocations: 27.92 kB / 1.493 GB, free: 9.816 MB / 1.186 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001704/0.561, allocations: 101.3 kB / 1.493 GB, free: 9.688 MB / 1.186 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000108/0.5611, allocations: 54.48 kB / 1.493 GB, free: 9.625 MB / 1.186 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.488e-05/0.5611, allocations: 20.84 kB / 1.493 GB, free: 9.602 MB / 1.186 GB Notification: Performance of preOpt evalFunc (simulation): time 1.333e-05/0.5611, allocations: 0 / 1.493 GB, free: 9.602 MB / 1.186 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.173e-05/0.5612, allocations: 30.56 kB / 1.493 GB, free: 9.562 MB / 1.186 GB Notification: Performance of pre-optimization done (n=7): time 8.02e-07/0.5612, allocations: 0 / 1.493 GB, free: 9.562 MB / 1.186 GB Notification: Performance of matching and sorting (n=11): time 0.0007706/0.5619, allocations: 305.2 kB / 1.493 GB, free: 9.23 MB / 1.186 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.487e-05/0.562, allocations: 51.41 kB / 1.493 GB, free: 9.168 MB / 1.186 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.55e-05/0.5621, allocations: 105.8 kB / 1.493 GB, free: 9.055 MB / 1.186 GB Notification: Performance of collectPreVariables (initialization): time 2.07e-05/0.5621, allocations: 25.7 kB / 1.493 GB, free: 9.023 MB / 1.186 GB Notification: Performance of collectInitialEqns (initialization): time 3.811e-05/0.5621, allocations: 80.14 kB / 1.494 GB, free: 8.941 MB / 1.186 GB Notification: Performance of collectInitialBindings (initialization): time 5.09e-05/0.5622, allocations: 43.64 kB / 1.494 GB, free: 8.898 MB / 1.186 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.624e-05/0.5622, allocations: 25.72 kB / 1.494 GB, free: 8.867 MB / 1.186 GB Notification: Performance of setup shared object (initialization): time 0.0001507/0.5624, allocations: 322.8 kB / 1.494 GB, free: 8.543 MB / 1.186 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.76e-05/0.5624, allocations: 12 kB / 1.494 GB, free: 8.531 MB / 1.186 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.542e-05/0.5625, allocations: 40.33 kB / 1.494 GB, free: 8.488 MB / 1.186 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001021/0.5626, allocations: 70.16 kB / 1.494 GB, free: 8.414 MB / 1.186 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.41e-07/0.5626, allocations: 0 / 1.494 GB, free: 8.414 MB / 1.186 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001447/0.5627, allocations: 93.81 kB / 1.494 GB, free: 8.316 MB / 1.186 GB Notification: Performance of prepare postOptimizeDAE: time 1.536e-05/0.5627, allocations: 4 kB / 1.494 GB, free: 8.312 MB / 1.186 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.71e-06/0.5627, allocations: 0 / 1.494 GB, free: 8.312 MB / 1.186 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/0.5628, allocations: 4 kB / 1.494 GB, free: 8.309 MB / 1.186 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001161/0.5629, allocations: 23.92 kB / 1.494 GB, free: 8.285 MB / 1.186 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.365e-06/0.5629, allocations: 4 kB / 1.494 GB, free: 8.281 MB / 1.186 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.132e-05/0.5629, allocations: 0 / 1.494 GB, free: 8.281 MB / 1.186 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.232e-05/0.5629, allocations: 8 kB / 1.494 GB, free: 8.273 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 9.045e-05/0.563, allocations: 114.9 kB / 1.494 GB, free: 8.152 MB / 1.186 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.644e-05/0.563, allocations: 7.953 kB / 1.494 GB, free: 8.145 MB / 1.186 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.56e-05/0.5631, allocations: 11.91 kB / 1.494 GB, free: 8.129 MB / 1.186 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.48e-06/0.5631, allocations: 11.92 kB / 1.494 GB, free: 8.117 MB / 1.186 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.5631, allocations: 0 / 1.494 GB, free: 8.117 MB / 1.186 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.5631, allocations: 0 / 1.494 GB, free: 8.117 MB / 1.186 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001209/0.5632, allocations: 117.2 kB / 1.494 GB, free: 7.973 MB / 1.186 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.5632, allocations: 0 / 1.494 GB, free: 7.973 MB / 1.186 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001195/0.5633, allocations: 27.92 kB / 1.494 GB, free: 7.945 MB / 1.186 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.973e-06/0.5633, allocations: 0 / 1.494 GB, free: 7.945 MB / 1.186 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.02e-05/0.5633, allocations: 7.938 kB / 1.494 GB, free: 7.938 MB / 1.186 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.99e-06/0.5633, allocations: 4 kB / 1.494 GB, free: 7.934 MB / 1.186 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.5633, allocations: 0 / 1.494 GB, free: 7.934 MB / 1.186 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002194/0.5636, allocations: 133 kB / 1.495 GB, free: 7.785 MB / 1.186 GB Notification: Performance of postOpt removeConstants (simulation): time 5.07e-05/0.5636, allocations: 12.03 kB / 1.495 GB, free: 7.773 MB / 1.186 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.967e-05/0.5636, allocations: 4 kB / 1.495 GB, free: 7.77 MB / 1.186 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.736e-05/0.5637, allocations: 0 / 1.495 GB, free: 7.77 MB / 1.186 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.405e-05/0.5637, allocations: 15.92 kB / 1.495 GB, free: 7.754 MB / 1.186 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.476e-06/0.5637, allocations: 4 kB / 1.495 GB, free: 7.75 MB / 1.186 GB Notification: Performance of sorting global known variables: time 4.048e-05/0.5638, allocations: 79.27 kB / 1.495 GB, free: 7.672 MB / 1.186 GB Notification: Performance of sort global known variables: time 8e-08/0.5638, allocations: 0 / 1.495 GB, free: 7.672 MB / 1.186 GB Notification: Performance of remove unused functions: time 0.0001987/0.564, allocations: 16 kB / 1.495 GB, free: 7.656 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.0001136/0.5641, allocations: 103.3 kB / 1.495 GB, free: 7.543 MB / 1.186 GB Notification: Performance of simCode: created initialization part: time 0.0001405/0.5642, allocations: 56.08 kB / 1.495 GB, free: 7.488 MB / 1.186 GB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.5642, allocations: 4 kB / 1.495 GB, free: 7.484 MB / 1.186 GB Notification: Performance of simCode: created simulation system equations: time 3.741e-05/0.5643, allocations: 23.98 kB / 1.495 GB, free: 7.461 MB / 1.186 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000265/0.5645, allocations: 14 kB / 1.495 GB, free: 7.449 MB / 1.186 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006886/0.5652, allocations: 358.8 kB / 1.495 GB, free: 7.066 MB / 1.186 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.002e-05/0.5653, allocations: 71.33 kB / 1.495 GB, free: 6.977 MB / 1.186 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.84e-05/0.5654, allocations: 11.44 kB / 1.495 GB, free: 6.969 MB / 1.186 GB Notification: Performance of SimCode: time 2.91e-07/0.5654, allocations: 0 / 1.495 GB, free: 6.969 MB / 1.186 GB Notification: Performance of Templates: time 0.002751/0.5681, allocations: 0.8474 MB / 1.496 GB, free: 6.121 MB / 1.186 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.makefile [Timeout 300] (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 & ./Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) [Timeout 800] 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: 11.25914077879861]