Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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: translateModel(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.hSteSym.|der.hSteCod.|der.hAirSym.|der.hAirCod.",fileNamePrefix="Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck") translateModel(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.hSteSym.|der.hSteCod.|der.hAirSym.|der.hAirCod.",fileNamePrefix="Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001887/0.001887, allocations: 103.4 kB / 15.33 MB, free: 0.5078 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002209/0.002209, allocations: 194.3 kB / 16.25 MB, free: 6.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.544/1.544, allocations: 222.9 MB / 239.9 MB, free: 4.469 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.941/2.941, allocations: 437 MB / 0.7101 GB, free: 5.242 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002008/0.002009, allocations: 59.91 kB / 0.8687 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.727/0.729, allocations: 151.6 MB / 1.017 GB, free: 2.875 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002588/0.7316, allocations: 1.334 MB / 1.018 GB, free: 1.531 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.1774/0.9091, allocations: 144.9 MB / 1.16 GB, free: 132 kB / 0.9044 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.418e-05/0.9091, allocations: 0 / 1.16 GB, free: 132 kB / 0.9044 GB Notification: Performance of NFTyping.typeComponents: time 2.328e-05/0.9092, allocations: 3.984 kB / 1.16 GB, free: 128 kB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 4.867e-05/0.9093, allocations: 0 / 1.16 GB, free: 128 kB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003981/0.9097, allocations: 87.62 kB / 1.16 GB, free: 40 kB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 6.967e-05/0.9097, allocations: 31.86 kB / 1.16 GB, free: 8 kB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 6.037e-05/0.9098, allocations: 12.03 kB / 1.16 GB, free: 15.99 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 3.901e-05/0.9098, allocations: 8 kB / 1.16 GB, free: 15.98 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 6.793e-05/0.9099, allocations: 19.86 kB / 1.16 GB, free: 15.97 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.259e-05/0.9099, allocations: 0 / 1.16 GB, free: 15.97 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002601/0.9102, allocations: 79.78 kB / 1.16 GB, free: 15.89 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.728e-05/0.9102, allocations: 7.969 kB / 1.16 GB, free: 15.88 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 3.534e-05/0.9103, allocations: 15.94 kB / 1.16 GB, free: 15.87 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0001522/0.9104, allocations: 65.98 kB / 1.16 GB, free: 15.8 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.9104, allocations: 0 / 1.16 GB, free: 15.8 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.503e-06/0.9105, allocations: 0 / 1.16 GB, free: 15.8 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.25e-06/0.9105, allocations: 4 kB / 1.16 GB, free: 15.8 MB / 0.92 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.0004415/0.9109, allocations: 347.5 kB / 1.16 GB, free: 15.41 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.904e-05/0.911, allocations: 11.98 kB / 1.16 GB, free: 15.4 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001845/0.9111, allocations: 12.92 kB / 1.16 GB, free: 15.39 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001285/0.9113, allocations: 164.4 kB / 1.16 GB, free: 15.19 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.299e-05/0.9113, allocations: 3.938 kB / 1.16 GB, free: 15.19 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.305e-05/0.9113, allocations: 15.84 kB / 1.16 GB, free: 15.17 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001353/0.9115, allocations: 61.64 kB / 1.16 GB, free: 15.11 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.704e-06/0.9115, allocations: 0 / 1.16 GB, free: 15.11 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.585e-05/0.9115, allocations: 4 kB / 1.16 GB, free: 15.1 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.458e-06/0.9115, allocations: 3.938 kB / 1.16 GB, free: 15.1 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.003e-05/0.9116, allocations: 19.92 kB / 1.161 GB, free: 15.08 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001966/0.9118, allocations: 169.5 kB / 1.161 GB, free: 14.86 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 9.912e-05/0.9119, allocations: 50.56 kB / 1.161 GB, free: 14.8 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.856e-05/0.9119, allocations: 12.86 kB / 1.161 GB, free: 14.79 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.603e-05/0.912, allocations: 8 kB / 1.161 GB, free: 14.78 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.014e-05/0.912, allocations: 30.56 kB / 1.161 GB, free: 14.74 MB / 0.92 GB Notification: Performance of pre-optimization done (n=7): time 1.022e-06/0.912, allocations: 0 / 1.161 GB, free: 14.74 MB / 0.92 GB Notification: Performance of matching and sorting (n=11): time 0.0008349/0.9128, allocations: 370.3 kB / 1.161 GB, free: 14.33 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.465e-05/0.9129, allocations: 51.41 kB / 1.161 GB, free: 14.27 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.063e-05/0.913, allocations: 101.9 kB / 1.161 GB, free: 14.16 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 2.173e-05/0.913, allocations: 25.7 kB / 1.161 GB, free: 14.12 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 3.943e-05/0.9131, allocations: 80.14 kB / 1.161 GB, free: 14.04 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 5.212e-05/0.9131, allocations: 43.39 kB / 1.161 GB, free: 14 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.316e-05/0.9132, allocations: 29.72 kB / 1.161 GB, free: 13.96 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001595/0.9133, allocations: 322.8 kB / 1.162 GB, free: 13.64 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.782e-05/0.9134, allocations: 15.98 kB / 1.162 GB, free: 13.62 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.769e-05/0.9135, allocations: 45.2 kB / 1.162 GB, free: 13.58 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001017/0.9136, allocations: 61.66 kB / 1.162 GB, free: 13.51 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.002e-06/0.9136, allocations: 3.938 kB / 1.162 GB, free: 13.51 MB / 0.92 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001521/0.9137, allocations: 94.12 kB / 1.162 GB, free: 13.41 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.647e-05/0.9138, allocations: 4 kB / 1.162 GB, free: 13.41 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.9138, allocations: 160 / 1.162 GB, free: 13.41 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.931e-05/0.9138, allocations: 3.984 kB / 1.162 GB, free: 13.4 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001208/0.9139, allocations: 23.94 kB / 1.162 GB, free: 13.38 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.087e-06/0.9139, allocations: 3.984 kB / 1.162 GB, free: 13.38 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.336e-05/0.914, allocations: 4 kB / 1.162 GB, free: 13.37 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.997e-06/0.914, allocations: 8 kB / 1.162 GB, free: 13.36 MB / 0.92 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.886e-05/0.9141, allocations: 117.8 kB / 1.162 GB, free: 13.24 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.934e-05/0.9141, allocations: 7.984 kB / 1.162 GB, free: 13.23 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.073e-05/0.9142, allocations: 7.969 kB / 1.162 GB, free: 13.22 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.26e-06/0.9142, allocations: 3.984 kB / 1.162 GB, free: 13.22 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/0.9142, allocations: 7.938 kB / 1.162 GB, free: 13.21 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.9142, allocations: 4 kB / 1.162 GB, free: 13.21 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000171/0.9144, allocations: 177.6 kB / 1.162 GB, free: 12.98 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.9144, allocations: 4 kB / 1.162 GB, free: 12.98 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001241/0.9145, allocations: 20 kB / 1.162 GB, free: 12.96 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.893e-06/0.9145, allocations: 0 / 1.162 GB, free: 12.96 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.016e-05/0.9145, allocations: 7.922 kB / 1.162 GB, free: 12.95 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.9145, allocations: 0 / 1.162 GB, free: 12.95 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.92e-07/0.9145, allocations: 0 / 1.162 GB, free: 12.95 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002292/0.9148, allocations: 140.9 kB / 1.162 GB, free: 12.8 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 9.358e-05/0.9149, allocations: 89.08 kB / 1.163 GB, free: 12.69 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.506e-05/0.9149, allocations: 0 / 1.163 GB, free: 12.69 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.094e-05/0.915, allocations: 12 kB / 1.163 GB, free: 12.68 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.981e-05/0.915, allocations: 7.984 kB / 1.163 GB, free: 12.67 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.312e-06/0.915, allocations: 0 / 1.163 GB, free: 12.67 MB / 0.92 GB Notification: Performance of sorting global known variables: time 4.516e-05/0.9151, allocations: 79.28 kB / 1.163 GB, free: 12.59 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9151, allocations: 0 / 1.163 GB, free: 12.59 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002079/0.9153, allocations: 19.94 kB / 1.163 GB, free: 12.57 MB / 0.92 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.0001306/0.9154, allocations: 99.78 kB / 1.163 GB, free: 12.47 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.000154/0.9156, allocations: 64 kB / 1.163 GB, free: 12.41 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.9156, allocations: 0 / 1.163 GB, free: 12.41 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 4.43e-05/0.9157, allocations: 31.88 kB / 1.163 GB, free: 12.38 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00025/0.9159, allocations: 14.23 kB / 1.163 GB, free: 12.36 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006766/0.9166, allocations: 349 kB / 1.163 GB, free: 12 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003458/0.917, allocations: 0.6884 MB / 1.164 GB, free: 11.28 MB / 0.92 GB Notification: Performance of simCode: alias equations: time 6.818e-05/0.917, allocations: 4.672 kB / 1.164 GB, free: 11.28 MB / 0.92 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.936e-05/0.9171, allocations: 19.42 kB / 1.164 GB, free: 11.26 MB / 0.92 GB Notification: Performance of SimCode: time 3.3e-07/0.9171, allocations: 0 / 1.164 GB, free: 11.26 MB / 0.92 GB Notification: Performance of Templates: time 0.0032/0.9203, allocations: 0.6272 MB / 1.165 GB, free: 10.63 MB / 0.92 GB make -j1 -f Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.makefile (rm -f Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & ./Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches