Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001426/0.00143, allocations: 107.1 kB / 16.27 MB, free: 6.41 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.001498/0.001498, allocations: 190.3 kB / 17.2 MB, free: 5.953 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.336/1.336, allocations: 222.9 MB / 240.9 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.233/2.233, allocations: 390.3 MB / 0.6653 GB, free: 0.7188 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001346/0.001346, allocations: 73.14 kB / 0.8132 GB, free: 33.01 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3056/0.307, allocations: 140.4 MB / 0.9503 GB, free: 8.879 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002695/0.3098, allocations: 1.268 MB / 0.9515 GB, free: 7.594 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.7586/1.068, allocations: 147 MB / 1.095 GB, free: 5.996 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.12e-05/1.069, allocations: 0 / 1.095 GB, free: 5.996 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.941e-05/1.069, allocations: 1.266 kB / 1.095 GB, free: 5.996 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.383e-05/1.069, allocations: 10.92 kB / 1.095 GB, free: 5.992 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.000436/1.069, allocations: 102.6 kB / 1.095 GB, free: 5.98 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 8.304e-05/1.069, allocations: 31.92 kB / 1.095 GB, free: 5.98 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.756e-05/1.069, allocations: 9.438 kB / 1.095 GB, free: 5.98 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 5.015e-05/1.069, allocations: 15.16 kB / 1.095 GB, free: 5.98 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.118e-05/1.069, allocations: 12.72 kB / 1.095 GB, free: 5.98 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.365e-05/1.069, allocations: 1.125 kB / 1.095 GB, free: 5.98 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002728/1.07, allocations: 83.97 kB / 1.095 GB, free: 5.973 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.835e-05/1.07, allocations: 7.734 kB / 1.095 GB, free: 5.973 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.51e-05/1.07, allocations: 16.06 kB / 1.095 GB, free: 5.973 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001768/1.07, allocations: 64.12 kB / 1.095 GB, free: 5.969 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.41e-06/1.07, allocations: 0 / 1.095 GB, free: 5.969 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.803e-06/1.07, allocations: 0 / 1.095 GB, free: 5.969 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.031e-06/1.07, allocations: 0 / 1.095 GB, free: 5.969 MB / 0.8575 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.0007137/1.071, allocations: 356.8 kB / 1.096 GB, free: 21.61 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.154e-05/1.071, allocations: 10.39 kB / 1.096 GB, free: 21.61 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002108/1.071, allocations: 13.73 kB / 1.096 GB, free: 21.61 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001131/1.071, allocations: 166.3 kB / 1.096 GB, free: 21.41 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.303e-05/1.071, allocations: 6.031 kB / 1.096 GB, free: 21.41 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.714e-05/1.071, allocations: 8.047 kB / 1.096 GB, free: 21.41 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001319/1.071, allocations: 51.17 kB / 1.096 GB, free: 21.37 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.462e-06/1.071, allocations: 1.094 kB / 1.096 GB, free: 21.37 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.317e-05/1.071, allocations: 3.625 kB / 1.096 GB, free: 21.37 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/1.071, allocations: 1.281 kB / 1.096 GB, free: 21.37 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.755e-05/1.071, allocations: 18.66 kB / 1.096 GB, free: 21.37 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001782/1.072, allocations: 173.7 kB / 1.096 GB, free: 21.17 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 9.327e-05/1.072, allocations: 53.75 kB / 1.096 GB, free: 21.14 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.052e-05/1.072, allocations: 17.58 kB / 1.096 GB, free: 21.14 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 1.081e-05/1.072, allocations: 1.094 kB / 1.096 GB, free: 21.14 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.067e-05/1.072, allocations: 35.44 kB / 1.096 GB, free: 21.1 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=7): time 1.904e-06/1.072, allocations: 0 / 1.096 GB, free: 21.1 MB / 0.8731 GB Notification: Performance of matching and sorting (n=11): time 0.0007769/1.073, allocations: 369.2 kB / 1.097 GB, free: 20.85 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.792e-05/1.073, allocations: 53.77 kB / 1.097 GB, free: 20.79 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.617e-05/1.073, allocations: 92.61 kB / 1.097 GB, free: 20.69 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 1.768e-05/1.073, allocations: 33.95 kB / 1.097 GB, free: 20.66 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 2.809e-05/1.073, allocations: 81.02 kB / 1.097 GB, free: 20.57 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 4.123e-05/1.073, allocations: 46.22 kB / 1.097 GB, free: 20.54 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.43e-05/1.073, allocations: 35.12 kB / 1.097 GB, free: 20.52 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001141/1.073, allocations: 317.1 kB / 1.097 GB, free: 20.21 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.997e-05/1.073, allocations: 20.81 kB / 1.097 GB, free: 20.21 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.271e-05/1.073, allocations: 35.11 kB / 1.097 GB, free: 20.19 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.9e-05/1.073, allocations: 55.44 kB / 1.097 GB, free: 20.18 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.21e-07/1.073, allocations: 3.188 kB / 1.097 GB, free: 20.18 MB / 0.8731 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001586/1.073, allocations: 95.95 kB / 1.097 GB, free: 20.14 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.645e-05/1.073, allocations: 5.781 kB / 1.097 GB, free: 20.14 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/1.073, allocations: 5.547 kB / 1.097 GB, free: 20.14 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.434e-05/1.073, allocations: 0.5938 kB / 1.097 GB, free: 20.14 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001268/1.073, allocations: 24.2 kB / 1.097 GB, free: 20.14 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.873e-06/1.074, allocations: 0.9375 kB / 1.097 GB, free: 20.14 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.447e-05/1.074, allocations: 5.031 kB / 1.097 GB, free: 20.14 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.767e-06/1.074, allocations: 3.844 kB / 1.097 GB, free: 20.14 MB / 0.8731 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.954e-05/1.074, allocations: 122.7 kB / 1.098 GB, free: 20.02 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.835e-05/1.074, allocations: 9.297 kB / 1.098 GB, free: 20.02 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.579e-05/1.074, allocations: 16.06 kB / 1.098 GB, free: 20 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/1.074, allocations: 2.656 kB / 1.098 GB, free: 20 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/1.074, allocations: 0.7188 kB / 1.098 GB, free: 20 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/1.074, allocations: 0.7031 kB / 1.098 GB, free: 20 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00013/1.074, allocations: 175.3 kB / 1.098 GB, free: 19.81 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/1.074, allocations: 0.5625 kB / 1.098 GB, free: 19.81 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001397/1.074, allocations: 24.16 kB / 1.098 GB, free: 19.81 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/1.074, allocations: 1.547 kB / 1.098 GB, free: 19.81 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.699e-06/1.074, allocations: 0.6875 kB / 1.098 GB, free: 19.81 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.786e-06/1.074, allocations: 4.625 kB / 1.098 GB, free: 19.81 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/1.074, allocations: 1.906 kB / 1.098 GB, free: 19.81 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002413/1.074, allocations: 143.5 kB / 1.098 GB, free: 19.73 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 7.463e-05/1.074, allocations: 86.88 kB / 1.098 GB, free: 19.64 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.821e-05/1.074, allocations: 4.703 kB / 1.098 GB, free: 19.64 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.567e-05/1.075, allocations: 6.922 kB / 1.098 GB, free: 19.64 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.257e-05/1.075, allocations: 5.422 kB / 1.098 GB, free: 19.64 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.799e-06/1.075, allocations: 4.344 kB / 1.098 GB, free: 19.64 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 3.334e-05/1.075, allocations: 79.97 kB / 1.098 GB, free: 19.56 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.1e-07/1.075, allocations: 0.75 kB / 1.098 GB, free: 19.56 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0001991/1.075, allocations: 16.03 kB / 1.098 GB, free: 19.56 MB / 0.8731 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.0001246/1.075, allocations: 112.6 kB / 1.098 GB, free: 19.46 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0001511/1.075, allocations: 62.03 kB / 1.098 GB, free: 19.46 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/1.075, allocations: 1.188 kB / 1.098 GB, free: 19.46 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 4.839e-05/1.075, allocations: 31.11 kB / 1.098 GB, free: 19.46 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002369/1.075, allocations: 7.812 kB / 1.098 GB, free: 19.46 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000564/1.076, allocations: 338.8 kB / 1.099 GB, free: 19.19 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002702/1.076, allocations: 0.6857 MB / 1.099 GB, free: 18.5 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.265e-05/1.076, allocations: 13.25 kB / 1.099 GB, free: 18.49 MB / 0.8731 GB Notification: Performance of SimCode: time 2.31e-07/1.076, allocations: 0 / 1.099 GB, free: 18.49 MB / 0.8731 GB Notification: Performance of Templates: time 0.002499/1.079, allocations: 0.8289 MB / 1.1 GB, free: 18.43 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.makefile (rm -f Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & ./Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches