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.001115/0.001116, allocations: 92.23 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001793/0.001793, allocations: 184.3 kB / 16.92 MB, free: 6.922 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.489/1.489, allocations: 223.3 MB / 241 MB, free: 5.352 MB / 190.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.396/2.396, allocations: 390.9 MB / 0.667 GB, free: 2.395 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003838/0.000384, allocations: 8 kB / 0.8166 GB, free: 13.28 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6683/0.6687, allocations: 142.4 MB / 0.9557 GB, free: 7.781 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.001109/0.6699, allocations: 1.013 MB / 0.9567 GB, free: 6.961 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1501/0.82, allocations: 143.2 MB / 1.096 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.427e-05/0.82, allocations: 0 / 1.096 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.976e-05/0.8201, allocations: 0 / 1.096 GB, free: 14.7 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.825e-05/0.8201, allocations: 11.92 kB / 1.097 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004406/0.8206, allocations: 83.69 kB / 1.097 GB, free: 14.6 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 6.885e-05/0.8207, allocations: 27.92 kB / 1.097 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.077e-05/0.8207, allocations: 0 / 1.097 GB, free: 14.57 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.286e-05/0.8208, allocations: 19.88 kB / 1.097 GB, free: 14.55 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.048e-05/0.8208, allocations: 19.91 kB / 1.097 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.395e-05/0.8208, allocations: 4 kB / 1.097 GB, free: 14.53 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002928/0.8211, allocations: 75.81 kB / 1.097 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.57e-05/0.8212, allocations: 4 kB / 1.097 GB, free: 14.45 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.508e-05/0.8212, allocations: 45.62 kB / 1.097 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001258/0.8214, allocations: 49.92 kB / 1.097 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.8214, allocations: 0 / 1.097 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.684e-06/0.8214, allocations: 0 / 1.097 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 4.158e-06/0.8214, allocations: 0 / 1.097 GB, free: 14.36 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.0003783/0.8218, allocations: 339.5 kB / 1.097 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.47e-05/0.8218, allocations: 8.031 kB / 1.097 GB, free: 13.97 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000206/0.822, allocations: 12.92 kB / 1.097 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001064/0.8221, allocations: 172.3 kB / 1.097 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.33e-05/0.8222, allocations: 3.938 kB / 1.097 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.475e-05/0.8222, allocations: 8 kB / 1.097 GB, free: 13.74 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001173/0.8223, allocations: 53.61 kB / 1.097 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.392e-06/0.8223, allocations: 0 / 1.097 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.404e-05/0.8224, allocations: 4 kB / 1.097 GB, free: 13.68 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.618e-06/0.8224, allocations: 3.938 kB / 1.097 GB, free: 13.67 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.895e-05/0.8224, allocations: 19.97 kB / 1.097 GB, free: 13.65 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001752/0.8226, allocations: 173.5 kB / 1.098 GB, free: 13.43 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 8.53e-05/0.8227, allocations: 50.56 kB / 1.098 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.968e-05/0.8227, allocations: 16.84 kB / 1.098 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 9.378e-06/0.8228, allocations: 7.938 kB / 1.098 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.804e-05/0.8228, allocations: 30.56 kB / 1.098 GB, free: 13.31 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.213e-06/0.8228, allocations: 0 / 1.098 GB, free: 13.31 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0007283/0.8235, allocations: 374.4 kB / 1.098 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.95e-05/0.8236, allocations: 51.41 kB / 1.098 GB, free: 12.83 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.309e-05/0.8236, allocations: 101.8 kB / 1.098 GB, free: 12.72 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.728e-05/0.8237, allocations: 25.7 kB / 1.098 GB, free: 12.69 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.415e-05/0.8237, allocations: 80.14 kB / 1.098 GB, free: 12.61 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.935e-05/0.8238, allocations: 43.36 kB / 1.098 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.285e-05/0.8238, allocations: 17.72 kB / 1.098 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.000103/0.8239, allocations: 318.9 kB / 1.099 GB, free: 12.22 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.659e-05/0.824, allocations: 19.98 kB / 1.099 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.192e-05/0.824, allocations: 37.7 kB / 1.099 GB, free: 12.16 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.149e-05/0.8241, allocations: 66.19 kB / 1.099 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.41e-07/0.8241, allocations: 3.938 kB / 1.099 GB, free: 12.08 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001487/0.8243, allocations: 97.59 kB / 1.099 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.8243, allocations: 4 kB / 1.099 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.009e-06/0.8243, allocations: 0 / 1.099 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.294e-05/0.8243, allocations: 0 / 1.099 GB, free: 11.98 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001168/0.8244, allocations: 27.98 kB / 1.099 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.8245, allocations: 0 / 1.099 GB, free: 11.95 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.505e-05/0.8245, allocations: 8 kB / 1.099 GB, free: 11.94 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.33e-06/0.8245, allocations: 0 / 1.099 GB, free: 11.94 MB / 0.8575 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.425e-05/0.8246, allocations: 121.7 kB / 1.099 GB, free: 11.81 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.564e-05/0.8246, allocations: 7.906 kB / 1.099 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.293e-05/0.8247, allocations: 11.97 kB / 1.099 GB, free: 11.79 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.8247, allocations: 0 / 1.099 GB, free: 11.79 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.749e-06/0.8247, allocations: 0 / 1.099 GB, free: 11.79 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.809e-06/0.8247, allocations: 8 kB / 1.099 GB, free: 11.78 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001314/0.8248, allocations: 173.6 kB / 1.099 GB, free: 11.56 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.903e-06/0.8248, allocations: 0 / 1.099 GB, free: 11.56 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001267/0.825, allocations: 27.92 kB / 1.099 GB, free: 11.54 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.849e-06/0.825, allocations: 3.984 kB / 1.099 GB, free: 11.53 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.035e-06/0.825, allocations: 0 / 1.099 GB, free: 11.53 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.825, allocations: 4 kB / 1.099 GB, free: 11.53 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.825, allocations: 0 / 1.099 GB, free: 11.53 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002109/0.8252, allocations: 140.9 kB / 1.099 GB, free: 11.37 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 7.084e-05/0.8253, allocations: 89.05 kB / 1.099 GB, free: 11.27 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.582e-05/0.8253, allocations: 4 kB / 1.099 GB, free: 11.26 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.608e-05/0.8254, allocations: 4 kB / 1.099 GB, free: 11.26 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.902e-05/0.8254, allocations: 7.984 kB / 1.099 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.923e-06/0.8255, allocations: 0 / 1.099 GB, free: 11.25 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.165e-05/0.8255, allocations: 83.28 kB / 1.1 GB, free: 11.17 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.41e-07/0.8255, allocations: 0 / 1.1 GB, free: 11.17 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002048/0.8257, allocations: 15.94 kB / 1.1 GB, free: 11.15 MB / 0.8575 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.0001018/0.8258, allocations: 107.3 kB / 1.1 GB, free: 11.04 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001238/0.826, allocations: 55.92 kB / 1.1 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.826, allocations: 0 / 1.1 GB, free: 10.98 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 4.732e-05/0.826, allocations: 35.86 kB / 1.1 GB, free: 10.95 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000217/0.8262, allocations: 9.25 kB / 1.1 GB, free: 10.94 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006089/0.8269, allocations: 408.2 kB / 1.1 GB, free: 10.51 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002367/0.8271, allocations: 0.6926 MB / 1.101 GB, free: 9.789 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.006e-05/0.8272, allocations: 11.44 kB / 1.101 GB, free: 9.777 MB / 0.8575 GB Notification: Performance of SimCode: time 2.51e-07/0.8272, allocations: 0 / 1.101 GB, free: 9.777 MB / 0.8575 GB Notification: Performance of Templates: time 0.002383/0.8295, allocations: 0.8137 MB / 1.102 GB, free: 8.965 MB / 0.8575 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