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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001597/0.001597, allocations: 103.5 kB / 16.36 MB, free: 6.285 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.002355/0.002355, allocations: 193.5 kB / 17.29 MB, free: 5.863 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.397/1.397, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.228/2.228, allocations: 390.3 MB / 0.6655 GB, free: 0.5742 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001282/0.001283, allocations: 64.81 kB / 0.814 GB, free: 32.68 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2519/0.2532, allocations: 140.4 MB / 0.9511 GB, free: 8.059 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002671/0.2559, allocations: 1.267 MB / 0.9524 GB, free: 6.781 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.6145/0.8704, allocations: 147 MB / 1.096 GB, free: 22.21 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.447e-05/0.8705, allocations: 1.094 kB / 1.096 GB, free: 22.21 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 2.736e-05/0.8706, allocations: 3.891 kB / 1.096 GB, free: 22.21 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 5.16e-05/0.8706, allocations: 5.422 kB / 1.096 GB, free: 22.21 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004144/0.871, allocations: 102 kB / 1.096 GB, free: 22.2 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 9.379e-05/0.8711, allocations: 32.09 kB / 1.096 GB, free: 22.2 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 4.883e-05/0.8712, allocations: 3.25 kB / 1.096 GB, free: 22.2 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 5.166e-05/0.8712, allocations: 17.58 kB / 1.096 GB, free: 22.2 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 7.507e-05/0.8713, allocations: 18.16 kB / 1.096 GB, free: 22.2 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 1.387e-05/0.8713, allocations: 1.719 kB / 1.096 GB, free: 22.2 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002798/0.8716, allocations: 77.22 kB / 1.096 GB, free: 22.19 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 1.898e-05/0.8717, allocations: 7.938 kB / 1.096 GB, free: 22.19 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 4.313e-05/0.8717, allocations: 19 kB / 1.096 GB, free: 22.19 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.0001844/0.8719, allocations: 61.97 kB / 1.096 GB, free: 22.19 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.8719, allocations: 6.062 kB / 1.096 GB, free: 22.18 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.613e-06/0.8719, allocations: 0 / 1.096 GB, free: 22.18 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 6.513e-06/0.8719, allocations: 0 / 1.096 GB, free: 22.18 MB / 0.8731 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.0004265/0.8724, allocations: 358.5 kB / 1.097 GB, free: 21.82 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.586e-05/0.8724, allocations: 9.312 kB / 1.097 GB, free: 21.82 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000204/0.8726, allocations: 11.72 kB / 1.097 GB, free: 21.82 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001046/0.8727, allocations: 165.1 kB / 1.097 GB, free: 21.62 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.012e-05/0.8728, allocations: 6.156 kB / 1.097 GB, free: 21.62 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.692e-05/0.8728, allocations: 11.39 kB / 1.097 GB, free: 21.62 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001225/0.8729, allocations: 51.95 kB / 1.097 GB, free: 21.59 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.945e-06/0.8729, allocations: 0 / 1.097 GB, free: 21.59 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.207e-05/0.8729, allocations: 0.9688 kB / 1.097 GB, free: 21.59 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.873, allocations: 1.828 kB / 1.097 GB, free: 21.59 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.076e-05/0.873, allocations: 17.31 kB / 1.097 GB, free: 21.59 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001621/0.8732, allocations: 169.7 kB / 1.097 GB, free: 21.39 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 9.005e-05/0.8733, allocations: 53.39 kB / 1.097 GB, free: 21.36 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.042e-05/0.8733, allocations: 21.31 kB / 1.097 GB, free: 21.35 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 1.02e-05/0.8733, allocations: 1.781 kB / 1.097 GB, free: 21.35 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.666e-05/0.8734, allocations: 35.67 kB / 1.097 GB, free: 21.31 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=7): time 1.092e-06/0.8734, allocations: 0 / 1.097 GB, free: 21.31 MB / 0.8731 GB Notification: Performance of matching and sorting (n=11): time 0.000757/0.8741, allocations: 363.7 kB / 1.097 GB, free: 21.07 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.341e-05/0.8742, allocations: 57.7 kB / 1.098 GB, free: 21 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.956e-05/0.8743, allocations: 92.03 kB / 1.098 GB, free: 20.9 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 1.892e-05/0.8743, allocations: 30.64 kB / 1.098 GB, free: 20.87 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 2.591e-05/0.8743, allocations: 81.02 kB / 1.098 GB, free: 20.79 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 4.002e-05/0.8744, allocations: 50.09 kB / 1.098 GB, free: 20.76 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.309e-05/0.8744, allocations: 26.34 kB / 1.098 GB, free: 20.74 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001046/0.8745, allocations: 318.6 kB / 1.098 GB, free: 20.43 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.897e-05/0.8746, allocations: 21.59 kB / 1.098 GB, free: 20.43 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.218e-05/0.8746, allocations: 40.08 kB / 1.098 GB, free: 20.41 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.206e-05/0.8747, allocations: 61.8 kB / 1.098 GB, free: 20.39 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/0.8747, allocations: 0.5938 kB / 1.098 GB, free: 20.39 MB / 0.8731 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001523/0.8749, allocations: 93.2 kB / 1.098 GB, free: 20.36 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.8749, allocations: 5.594 kB / 1.098 GB, free: 20.36 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.188e-06/0.8749, allocations: 0.9062 kB / 1.098 GB, free: 20.36 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.8749, allocations: 5.453 kB / 1.098 GB, free: 20.36 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001414/0.8751, allocations: 24.27 kB / 1.098 GB, free: 20.36 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.883e-06/0.8751, allocations: 10.08 kB / 1.098 GB, free: 20.35 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.289e-05/0.8751, allocations: 1.641 kB / 1.098 GB, free: 20.35 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.945e-06/0.8752, allocations: 3.562 kB / 1.098 GB, free: 20.35 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 7.66e-05/0.8752, allocations: 128.5 kB / 1.098 GB, free: 20.23 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.59e-05/0.8753, allocations: 6.594 kB / 1.098 GB, free: 20.23 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.423e-05/0.8753, allocations: 9.875 kB / 1.098 GB, free: 20.22 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.8753, allocations: 1.094 kB / 1.098 GB, free: 20.22 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.418e-06/0.8753, allocations: 1.5 kB / 1.098 GB, free: 20.22 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.537e-06/0.8753, allocations: 4.594 kB / 1.098 GB, free: 20.21 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001175/0.8754, allocations: 184.5 kB / 1.099 GB, free: 20.02 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.8755, allocations: 1.562 kB / 1.099 GB, free: 20.02 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001267/0.8756, allocations: 21.98 kB / 1.099 GB, free: 20.02 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.8756, allocations: 1.094 kB / 1.099 GB, free: 20.02 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.008e-05/0.8756, allocations: 0.6562 kB / 1.099 GB, free: 20.02 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.8756, allocations: 0.9375 kB / 1.099 GB, free: 20.02 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.8756, allocations: 0.875 kB / 1.099 GB, free: 20.02 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000218/0.8758, allocations: 136.8 kB / 1.099 GB, free: 19.95 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 7.697e-05/0.8759, allocations: 90.94 kB / 1.099 GB, free: 19.85 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.638e-05/0.876, allocations: 5 kB / 1.099 GB, free: 19.85 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.428e-05/0.876, allocations: 3.734 kB / 1.099 GB, free: 19.85 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.421e-05/0.8761, allocations: 5.5 kB / 1.099 GB, free: 19.85 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.038e-05/0.8761, allocations: 8.219 kB / 1.099 GB, free: 19.85 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 3.424e-05/0.8761, allocations: 76.92 kB / 1.099 GB, free: 19.78 MB / 0.8731 GB Notification: Performance of sort global known variables: time 7.22e-07/0.8761, allocations: 0 / 1.099 GB, free: 19.78 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0002062/0.8763, allocations: 17.38 kB / 1.099 GB, free: 19.78 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.0001102/0.8765, allocations: 109 kB / 1.099 GB, free: 19.68 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0001509/0.8766, allocations: 57.02 kB / 1.099 GB, free: 19.68 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.8766, allocations: 1.438 kB / 1.099 GB, free: 19.68 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 4.811e-05/0.8767, allocations: 24.36 kB / 1.099 GB, free: 19.68 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00024/0.8769, allocations: 11.97 kB / 1.099 GB, free: 19.68 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000529/0.8775, allocations: 313 kB / 1.1 GB, free: 19.45 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002305/0.8777, allocations: 0.6854 MB / 1.1 GB, free: 18.75 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 5.569e-05/0.8778, allocations: 14.22 kB / 1.1 GB, free: 18.74 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.827e-05/0.8778, allocations: 11.66 kB / 1.1 GB, free: 18.73 MB / 0.8731 GB Notification: Performance of SimCode: time 1.072e-06/0.8778, allocations: 7.938 kB / 1.1 GB, free: 18.73 MB / 0.8731 GB Notification: Performance of Templates: time 0.002954/0.8808, allocations: 0.6392 MB / 1.101 GB, free: 18.67 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 -s gbode -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