Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001989/0.001989, allocations: 112.8 kB / 16.46 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.00208/0.00208, allocations: 213.7 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.558/1.558, allocations: 230.6 MB / 252.8 MB, free: 8.992 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.525/3.525, allocations: 0.4899 GB / 0.7915 GB, free: 33.64 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.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: 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_12_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_12_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.002162/0.002162, allocations: 67.83 kB / 1.149 GB, free: 26.14 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4488/0.451, allocations: 176.1 MB / 1.321 GB, free: 2.82 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002743/0.4537, allocations: 1.3 MB / 1.322 GB, free: 1.512 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.21/0.6637, allocations: 150.3 MB / 1.469 GB, free: 10.64 MB / 1.17 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.198e-05/0.6637, allocations: 0 / 1.469 GB, free: 10.64 MB / 1.17 GB Notification: Performance of NFTyping.typeComponents: time 2.158e-05/0.6638, allocations: 0 / 1.469 GB, free: 10.64 MB / 1.17 GB Notification: Performance of NFTyping.typeBindings: time 6.178e-05/0.6638, allocations: 7.922 kB / 1.469 GB, free: 10.64 MB / 1.17 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004667/0.6643, allocations: 95.55 kB / 1.469 GB, free: 10.54 MB / 1.17 GB Notification: Performance of NFFlatten.flatten: time 8.697e-05/0.6644, allocations: 27.92 kB / 1.469 GB, free: 10.52 MB / 1.17 GB Notification: Performance of NFFlatten.resolveConnections: time 4.196e-05/0.6644, allocations: 3.938 kB / 1.469 GB, free: 10.51 MB / 1.17 GB Notification: Performance of NFEvalConstants.evaluate: time 4.702e-05/0.6645, allocations: 19.94 kB / 1.469 GB, free: 10.49 MB / 1.17 GB Notification: Performance of NFSimplifyModel.simplify: time 6.822e-05/0.6645, allocations: 15.97 kB / 1.469 GB, free: 10.48 MB / 1.17 GB Notification: Performance of NFPackage.collectConstants: time 1.198e-05/0.6645, allocations: 0 / 1.469 GB, free: 10.48 MB / 1.17 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002773/0.6648, allocations: 83.83 kB / 1.47 GB, free: 10.39 MB / 1.17 GB Notification: Performance of NFScalarize.scalarize: time 1.795e-05/0.6648, allocations: 7.922 kB / 1.47 GB, free: 10.39 MB / 1.17 GB Notification: Performance of NFVerifyModel.verify: time 3.193e-05/0.6649, allocations: 15.98 kB / 1.47 GB, free: 10.37 MB / 1.17 GB Notification: Performance of NFConvertDAE.convert: time 0.0001852/0.6651, allocations: 63.77 kB / 1.47 GB, free: 10.31 MB / 1.17 GB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.6651, allocations: 0 / 1.47 GB, free: 10.31 MB / 1.17 GB Notification: Performance of FrontEnd: time 1.653e-06/0.6651, allocations: 0 / 1.47 GB, free: 10.31 MB / 1.17 GB Notification: Performance of Transformations before backend: time 8.937e-06/0.6651, allocations: 4 kB / 1.47 GB, free: 10.3 MB / 1.17 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.0004762/0.6655, allocations: 359.3 kB / 1.47 GB, free: 9.906 MB / 1.17 GB Notification: Performance of prepare preOptimizeDAE: time 3.903e-05/0.6656, allocations: 8.031 kB / 1.47 GB, free: 9.898 MB / 1.17 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001979/0.6658, allocations: 12.92 kB / 1.47 GB, free: 9.887 MB / 1.17 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001506/0.6659, allocations: 172.3 kB / 1.47 GB, free: 9.68 MB / 1.17 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.14e-05/0.6659, allocations: 3.938 kB / 1.47 GB, free: 9.676 MB / 1.17 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.621e-05/0.666, allocations: 8 kB / 1.47 GB, free: 9.668 MB / 1.17 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001383/0.6661, allocations: 53.61 kB / 1.47 GB, free: 9.609 MB / 1.17 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.907e-06/0.6661, allocations: 0 / 1.47 GB, free: 9.609 MB / 1.17 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.469e-05/0.6661, allocations: 8 kB / 1.47 GB, free: 9.602 MB / 1.17 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.6661, allocations: 0 / 1.47 GB, free: 9.602 MB / 1.17 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.394e-05/0.6662, allocations: 15.98 kB / 1.47 GB, free: 9.586 MB / 1.17 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002093/0.6664, allocations: 165.6 kB / 1.47 GB, free: 9.375 MB / 1.17 GB Notification: Performance of preOpt comSubExp (simulation): time 9.86e-05/0.6665, allocations: 50.5 kB / 1.47 GB, free: 9.316 MB / 1.17 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.461e-05/0.6665, allocations: 16.84 kB / 1.47 GB, free: 9.297 MB / 1.17 GB Notification: Performance of preOpt evalFunc (simulation): time 8.025e-06/0.6666, allocations: 0 / 1.47 GB, free: 9.297 MB / 1.17 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.421e-05/0.6666, allocations: 38.56 kB / 1.47 GB, free: 9.25 MB / 1.17 GB Notification: Performance of pre-optimization done (n=7): time 8.32e-07/0.6666, allocations: 0 / 1.47 GB, free: 9.25 MB / 1.17 GB Notification: Performance of matching and sorting (n=11): time 0.0008264/0.6674, allocations: 378.3 kB / 1.471 GB, free: 8.828 MB / 1.17 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.327e-05/0.6675, allocations: 55.41 kB / 1.471 GB, free: 8.762 MB / 1.17 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.369e-05/0.6675, allocations: 93.84 kB / 1.471 GB, free: 8.66 MB / 1.17 GB Notification: Performance of collectPreVariables (initialization): time 2.094e-05/0.6676, allocations: 29.83 kB / 1.471 GB, free: 8.625 MB / 1.17 GB Notification: Performance of collectInitialEqns (initialization): time 4.131e-05/0.6676, allocations: 84.14 kB / 1.471 GB, free: 8.539 MB / 1.17 GB Notification: Performance of collectInitialBindings (initialization): time 4.313e-05/0.6676, allocations: 35.7 kB / 1.471 GB, free: 8.504 MB / 1.17 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.917e-05/0.6677, allocations: 29.7 kB / 1.471 GB, free: 8.469 MB / 1.17 GB Notification: Performance of setup shared object (initialization): time 0.0001551/0.6679, allocations: 322.7 kB / 1.471 GB, free: 8.145 MB / 1.17 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.997e-05/0.6679, allocations: 19.98 kB / 1.471 GB, free: 8.125 MB / 1.17 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.839e-05/0.668, allocations: 41.64 kB / 1.472 GB, free: 8.078 MB / 1.17 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.426e-05/0.668, allocations: 65.69 kB / 1.472 GB, free: 8.008 MB / 1.17 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.01e-07/0.668, allocations: 0 / 1.472 GB, free: 8.008 MB / 1.17 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001396/0.6682, allocations: 93.58 kB / 1.472 GB, free: 7.91 MB / 1.17 GB Notification: Performance of prepare postOptimizeDAE: time 1.416e-05/0.6682, allocations: 6.188 kB / 1.472 GB, free: 7.906 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.6682, allocations: 4 kB / 1.472 GB, free: 7.902 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.6682, allocations: 0 / 1.472 GB, free: 7.902 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001206/0.6683, allocations: 23.98 kB / 1.472 GB, free: 7.879 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.506e-06/0.6683, allocations: 4.703 kB / 1.472 GB, free: 7.875 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.255e-05/0.6684, allocations: 4 kB / 1.472 GB, free: 7.871 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.764e-06/0.6684, allocations: 4 kB / 1.472 GB, free: 7.867 MB / 1.17 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.678e-05/0.6685, allocations: 123.5 kB / 1.472 GB, free: 7.738 MB / 1.17 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.49e-05/0.6685, allocations: 7.953 kB / 1.472 GB, free: 7.73 MB / 1.17 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.835e-05/0.6685, allocations: 11.97 kB / 1.472 GB, free: 7.719 MB / 1.17 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.496e-06/0.6685, allocations: 4 kB / 1.472 GB, free: 7.715 MB / 1.17 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.6685, allocations: 0 / 1.472 GB, free: 7.715 MB / 1.17 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.075e-06/0.6686, allocations: 0 / 1.472 GB, free: 7.715 MB / 1.17 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001593/0.6687, allocations: 173.6 kB / 1.472 GB, free: 7.496 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.6687, allocations: 4 kB / 1.472 GB, free: 7.492 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001259/0.6688, allocations: 19.98 kB / 1.472 GB, free: 7.473 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.973e-06/0.6688, allocations: 0 / 1.472 GB, free: 7.473 MB / 1.17 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.318e-05/0.6689, allocations: 12 kB / 1.472 GB, free: 7.461 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.6689, allocations: 3.938 kB / 1.472 GB, free: 7.457 MB / 1.17 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.6689, allocations: 0 / 1.472 GB, free: 7.457 MB / 1.17 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000221/0.6691, allocations: 129 kB / 1.472 GB, free: 7.312 MB / 1.17 GB Notification: Performance of postOpt removeConstants (simulation): time 8.203e-05/0.6692, allocations: 89.09 kB / 1.472 GB, free: 7.207 MB / 1.17 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.863e-05/0.6692, allocations: 4 kB / 1.472 GB, free: 7.203 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.507e-05/0.6693, allocations: 3.984 kB / 1.472 GB, free: 7.199 MB / 1.17 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.303e-05/0.6693, allocations: 12 kB / 1.472 GB, free: 7.188 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.416e-06/0.6693, allocations: 4 kB / 1.472 GB, free: 7.184 MB / 1.17 GB Notification: Performance of sorting global known variables: time 4.389e-05/0.6693, allocations: 75.28 kB / 1.472 GB, free: 7.109 MB / 1.17 GB Notification: Performance of sort global known variables: time 7e-08/0.6693, allocations: 0 / 1.472 GB, free: 7.109 MB / 1.17 GB Notification: Performance of remove unused functions: time 0.0001973/0.6695, allocations: 19.94 kB / 1.472 GB, free: 7.09 MB / 1.17 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.0001232/0.6697, allocations: 103.2 kB / 1.472 GB, free: 6.977 MB / 1.17 GB Notification: Performance of simCode: created initialization part: time 0.0001521/0.6698, allocations: 56.02 kB / 1.473 GB, free: 6.922 MB / 1.17 GB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.6698, allocations: 96 / 1.473 GB, free: 6.922 MB / 1.17 GB Notification: Performance of simCode: created simulation system equations: time 3.947e-05/0.6699, allocations: 31.92 kB / 1.473 GB, free: 6.891 MB / 1.17 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002317/0.6701, allocations: 9.703 kB / 1.473 GB, free: 6.883 MB / 1.17 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000606/0.6707, allocations: 332.4 kB / 1.473 GB, free: 6.531 MB / 1.17 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003253/0.671, allocations: 0.6884 MB / 1.474 GB, free: 5.816 MB / 1.17 GB Notification: Performance of simCode: alias equations: time 5.185e-05/0.6711, allocations: 16.64 kB / 1.474 GB, free: 5.801 MB / 1.17 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.502e-05/0.6711, allocations: 11.44 kB / 1.474 GB, free: 5.789 MB / 1.17 GB Notification: Performance of SimCode: time 3.01e-07/0.6711, allocations: 0 / 1.474 GB, free: 5.789 MB / 1.17 GB Notification: Performance of Templates: time 0.00333/0.6744, allocations: 0.6429 MB / 1.474 GB, free: 5.148 MB / 1.17 GB " [Timeout remaining time 299] make -j1 -f Buildings_12_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_12_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_12_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_12_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & ./Buildings_12_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 9.83392879506573]