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.001463/0.001463, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001442/0.001443, allocations: 194.5 kB / 16.25 MB, free: 6.633 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.368/1.368, allocations: 222.9 MB / 239.9 MB, free: 4.516 MB / 190.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.4/2.4, allocations: 390.2 MB / 0.6643 GB, free: 0.6172 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001331/0.001331, allocations: 63.91 kB / 0.812 GB, free: 14.81 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6522/0.6536, allocations: 140.4 MB / 0.9491 GB, free: 9.145 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002661/0.6563, allocations: 1.35 MB / 0.9504 GB, free: 8.066 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1859/0.8423, allocations: 144.9 MB / 1.092 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.599e-05/0.8424, allocations: 0 / 1.092 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.235e-05/0.8425, allocations: 0 / 1.092 GB, free: 15.36 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 8.628e-05/0.8426, allocations: 3.984 kB / 1.092 GB, free: 15.35 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006526/0.8432, allocations: 95.62 kB / 1.092 GB, free: 15.26 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 9.569e-05/0.8433, allocations: 31.86 kB / 1.092 GB, free: 15.23 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.227e-05/0.8434, allocations: 4 kB / 1.092 GB, free: 15.22 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 5.827e-05/0.8435, allocations: 12 kB / 1.092 GB, free: 15.21 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.664e-05/0.8435, allocations: 15.91 kB / 1.092 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.375e-05/0.8436, allocations: 0 / 1.092 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003315/0.8439, allocations: 83.81 kB / 1.092 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.725e-05/0.8439, allocations: 0 / 1.092 GB, free: 15.11 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.723e-05/0.844, allocations: 23.86 kB / 1.092 GB, free: 15.09 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002094/0.8442, allocations: 65.86 kB / 1.092 GB, free: 15.03 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.128e-06/0.8442, allocations: 0 / 1.092 GB, free: 15.03 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.303e-06/0.8442, allocations: 0 / 1.092 GB, free: 15.03 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.204e-06/0.8442, allocations: 0 / 1.092 GB, free: 15.03 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.0004998/0.8447, allocations: 357.1 kB / 1.093 GB, free: 14.63 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.964e-05/0.8448, allocations: 8.031 kB / 1.093 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00023/0.845, allocations: 8.938 kB / 1.093 GB, free: 14.62 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001855/0.8452, allocations: 172.4 kB / 1.093 GB, free: 14.41 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.566e-05/0.8452, allocations: 11.88 kB / 1.093 GB, free: 14.4 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.122e-05/0.8453, allocations: 8 kB / 1.093 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001495/0.8454, allocations: 45.69 kB / 1.093 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.275e-06/0.8455, allocations: 0 / 1.093 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.717e-05/0.8455, allocations: 4 kB / 1.093 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.42e-06/0.8455, allocations: 0 / 1.093 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.627e-05/0.8456, allocations: 19.92 kB / 1.093 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002039/0.8458, allocations: 173.4 kB / 1.093 GB, free: 14.1 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 9.695e-05/0.8459, allocations: 54.56 kB / 1.093 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.208e-05/0.8459, allocations: 12.86 kB / 1.093 GB, free: 14.02 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.454e-05/0.8459, allocations: 7.938 kB / 1.093 GB, free: 14.01 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.624e-05/0.846, allocations: 34.55 kB / 1.093 GB, free: 13.97 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.443e-06/0.846, allocations: 0 / 1.093 GB, free: 13.97 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.0008202/0.8468, allocations: 366.4 kB / 1.093 GB, free: 13.56 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.971e-05/0.8469, allocations: 55.41 kB / 1.093 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.218e-05/0.847, allocations: 97.86 kB / 1.094 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.01e-05/0.847, allocations: 25.7 kB / 1.094 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 7.071e-05/0.8471, allocations: 80.14 kB / 1.094 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 6.036e-05/0.8471, allocations: 43.36 kB / 1.094 GB, free: 13.23 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.124e-05/0.8472, allocations: 29.7 kB / 1.094 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001288/0.8473, allocations: 318.8 kB / 1.094 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.962e-05/0.8474, allocations: 20.11 kB / 1.094 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.385e-05/0.8474, allocations: 41.33 kB / 1.094 GB, free: 12.81 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002023/0.8476, allocations: 70.17 kB / 1.094 GB, free: 12.74 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.8476, allocations: 0 / 1.094 GB, free: 12.74 MB / 0.8575 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001492/0.8478, allocations: 89.67 kB / 1.094 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 2.117e-05/0.8478, allocations: 6.031 kB / 1.094 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.373e-06/0.8478, allocations: 4 kB / 1.094 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.709e-05/0.8479, allocations: 0 / 1.094 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001208/0.848, allocations: 35.86 kB / 1.094 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.032e-05/0.848, allocations: 3.984 kB / 1.094 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.903e-05/0.8481, allocations: 8 kB / 1.094 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.66e-06/0.8481, allocations: 0 / 1.094 GB, free: 12.59 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 9.878e-05/0.8482, allocations: 117.8 kB / 1.094 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.982e-05/0.8482, allocations: 7.906 kB / 1.094 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.805e-05/0.8482, allocations: 7.969 kB / 1.094 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.8482, allocations: 0 / 1.094 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.223e-06/0.8483, allocations: 0 / 1.094 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.8483, allocations: 8 kB / 1.094 GB, free: 12.44 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001501/0.8484, allocations: 181.5 kB / 1.095 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.8484, allocations: 0 / 1.095 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001253/0.8486, allocations: 23.98 kB / 1.095 GB, free: 12.19 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.836e-06/0.8486, allocations: 3.938 kB / 1.095 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.021e-05/0.8486, allocations: 0 / 1.095 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.8486, allocations: 0 / 1.095 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.8486, allocations: 0 / 1.095 GB, free: 12.18 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002346/0.8488, allocations: 137 kB / 1.095 GB, free: 12.03 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 7.785e-05/0.8489, allocations: 93.05 kB / 1.095 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.195e-05/0.849, allocations: 0 / 1.095 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.635e-05/0.8491, allocations: 11.94 kB / 1.095 GB, free: 11.91 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.221e-05/0.8491, allocations: 7.984 kB / 1.095 GB, free: 11.9 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.763e-06/0.8491, allocations: 0 / 1.095 GB, free: 11.9 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.867e-05/0.8491, allocations: 83.28 kB / 1.095 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.11e-07/0.8492, allocations: 0 / 1.095 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002155/0.8494, allocations: 15.94 kB / 1.095 GB, free: 11.8 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.0001314/0.8495, allocations: 105.6 kB / 1.095 GB, free: 11.7 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001862/0.8497, allocations: 63.91 kB / 1.095 GB, free: 11.63 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.8497, allocations: 0 / 1.095 GB, free: 11.63 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 4.089e-05/0.8498, allocations: 31.92 kB / 1.095 GB, free: 11.6 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002735/0.85, allocations: 8 kB / 1.095 GB, free: 11.59 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006861/0.8507, allocations: 341 kB / 1.095 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003185/0.8511, allocations: 0.6845 MB / 1.096 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 7.55e-05/0.8512, allocations: 16.64 kB / 1.096 GB, free: 10.51 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.194e-05/0.8512, allocations: 19.44 kB / 1.096 GB, free: 10.49 MB / 0.8575 GB Notification: Performance of SimCode: time 6.51e-07/0.8512, allocations: 0 / 1.096 GB, free: 10.49 MB / 0.8575 GB Notification: Performance of Templates: time 0.003886/0.8551, allocations: 0.6228 MB / 1.097 GB, free: 9.867 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/jenkins/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