Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.007176/0.007176, allocations: 102.7 kB / 15.74 MB, free: 6.488 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.001454/0.001455, allocations: 193 kB / 16.67 MB, free: 6.367 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.42/1.42, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.875/2.875, allocations: 472.6 MB / 0.7453 GB, free: 4.578 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001203/0.001203, allocations: 68.12 kB / 1.069 GB, free: 9.219 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3418/0.343, allocations: 159.9 MB / 1.226 GB, free: 9.203 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002315/0.3454, allocations: 1.285 MB / 1.227 GB, free: 7.91 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.946/1.291, allocations: 147 MB / 1.37 GB, free: 10.84 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.298e-05/1.291, allocations: 0 / 1.37 GB, free: 10.84 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 2.591e-05/1.292, allocations: 2.625 kB / 1.37 GB, free: 10.84 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 6.929e-05/1.292, allocations: 9.109 kB / 1.37 GB, free: 10.83 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004474/1.292, allocations: 92.78 kB / 1.37 GB, free: 10.78 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 8.805e-05/1.292, allocations: 36.53 kB / 1.37 GB, free: 10.77 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 4.539e-05/1.292, allocations: 2.5 kB / 1.371 GB, free: 10.77 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 4.479e-05/1.292, allocations: 14.83 kB / 1.371 GB, free: 10.76 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 6.749e-05/1.292, allocations: 18.52 kB / 1.371 GB, free: 10.75 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 1.546e-05/1.292, allocations: 1.812 kB / 1.371 GB, free: 10.75 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002685/1.293, allocations: 76.09 kB / 1.371 GB, free: 10.72 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 1.739e-05/1.293, allocations: 14.56 kB / 1.371 GB, free: 10.71 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 3.102e-05/1.293, allocations: 17.72 kB / 1.371 GB, free: 10.7 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0001699/1.293, allocations: 62.45 kB / 1.371 GB, free: 10.69 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 4.359e-06/1.293, allocations: 0 / 1.371 GB, free: 10.69 MB / 1.076 GB Notification: Performance of FrontEnd: time 1.383e-06/1.293, allocations: 0 / 1.371 GB, free: 10.69 MB / 1.076 GB Notification: Performance of Transformations before backend: time 8.897e-06/1.293, allocations: 1.375 kB / 1.371 GB, free: 10.69 MB / 1.076 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.000403/1.293, allocations: 355.2 kB / 1.371 GB, free: 10.32 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.832e-05/1.293, allocations: 10.78 kB / 1.371 GB, free: 10.32 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002029/1.294, allocations: 13.83 kB / 1.371 GB, free: 10.31 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001027/1.294, allocations: 168.1 kB / 1.371 GB, free: 10.11 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.671e-05/1.294, allocations: 6.531 kB / 1.371 GB, free: 10.11 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.462e-05/1.294, allocations: 10.44 kB / 1.371 GB, free: 10.1 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001355/1.294, allocations: 48.45 kB / 1.371 GB, free: 10.07 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.586e-06/1.294, allocations: 0 / 1.371 GB, free: 10.07 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.521e-05/1.294, allocations: 5.281 kB / 1.371 GB, free: 10.06 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.424e-06/1.294, allocations: 3.984 kB / 1.371 GB, free: 10.06 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.594e-05/1.294, allocations: 18.67 kB / 1.371 GB, free: 10.05 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001689/1.294, allocations: 171.3 kB / 1.371 GB, free: 9.852 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 9.739e-05/1.294, allocations: 54.28 kB / 1.372 GB, free: 9.812 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.324e-05/1.294, allocations: 17.52 kB / 1.372 GB, free: 9.801 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 1.288e-05/1.294, allocations: 1.125 kB / 1.372 GB, free: 9.801 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.315e-05/1.294, allocations: 31.94 kB / 1.372 GB, free: 9.762 MB / 1.076 GB Notification: Performance of pre-optimization done (n=7): time 1.052e-06/1.294, allocations: 0 / 1.372 GB, free: 9.762 MB / 1.076 GB Notification: Performance of matching and sorting (n=11): time 0.0007461/1.295, allocations: 377.7 kB / 1.372 GB, free: 9.453 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.641e-05/1.295, allocations: 52.66 kB / 1.372 GB, free: 9.391 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.443e-05/1.295, allocations: 97.14 kB / 1.372 GB, free: 9.289 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 1.352e-05/1.295, allocations: 26.86 kB / 1.372 GB, free: 9.258 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 2.596e-05/1.295, allocations: 81.36 kB / 1.372 GB, free: 9.176 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 4.2e-05/1.295, allocations: 46.27 kB / 1.372 GB, free: 9.137 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.013e-05/1.295, allocations: 27.78 kB / 1.372 GB, free: 9.113 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 0.0001008/1.296, allocations: 322.2 kB / 1.373 GB, free: 8.793 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.751e-05/1.296, allocations: 21.72 kB / 1.373 GB, free: 8.785 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.331e-05/1.296, allocations: 37.14 kB / 1.373 GB, free: 8.762 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.852e-05/1.296, allocations: 59.2 kB / 1.373 GB, free: 8.727 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.152e-06/1.296, allocations: 1.125 kB / 1.373 GB, free: 8.727 MB / 1.076 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001328/1.296, allocations: 95.8 kB / 1.373 GB, free: 8.672 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.401e-05/1.296, allocations: 4.562 kB / 1.373 GB, free: 8.672 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-06/1.296, allocations: 4.844 kB / 1.373 GB, free: 8.668 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.592e-05/1.296, allocations: 1.656 kB / 1.373 GB, free: 8.668 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001199/1.296, allocations: 20.2 kB / 1.373 GB, free: 8.668 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.697e-06/1.296, allocations: 3.875 kB / 1.373 GB, free: 8.668 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.329e-05/1.296, allocations: 5.25 kB / 1.373 GB, free: 8.664 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.903e-06/1.296, allocations: 2.844 kB / 1.373 GB, free: 8.664 MB / 1.076 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.428e-05/1.296, allocations: 120.6 kB / 1.373 GB, free: 8.539 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.577e-05/1.296, allocations: 7.922 kB / 1.373 GB, free: 8.535 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.458e-05/1.296, allocations: 7.969 kB / 1.373 GB, free: 8.531 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/1.296, allocations: 5.344 kB / 1.373 GB, free: 8.527 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.09e-06/1.296, allocations: 2.203 kB / 1.373 GB, free: 8.527 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.417e-06/1.296, allocations: 1.094 kB / 1.373 GB, free: 8.527 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001275/1.296, allocations: 178.5 kB / 1.373 GB, free: 8.32 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/1.296, allocations: 0.9688 kB / 1.373 GB, free: 8.32 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001187/1.297, allocations: 20.12 kB / 1.373 GB, free: 8.32 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.051e-06/1.297, allocations: 1.406 kB / 1.373 GB, free: 8.32 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.406e-06/1.297, allocations: 3.938 kB / 1.373 GB, free: 8.316 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/1.297, allocations: 6.078 kB / 1.373 GB, free: 8.316 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/1.297, allocations: 0 / 1.373 GB, free: 8.316 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002045/1.297, allocations: 142 kB / 1.373 GB, free: 8.215 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 7.102e-05/1.297, allocations: 83.25 kB / 1.373 GB, free: 8.121 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.452e-05/1.297, allocations: 4.656 kB / 1.373 GB, free: 8.117 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.481e-05/1.297, allocations: 8.828 kB / 1.373 GB, free: 8.113 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.798e-05/1.297, allocations: 4.828 kB / 1.373 GB, free: 8.113 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.794e-06/1.297, allocations: 2.344 kB / 1.373 GB, free: 8.113 MB / 1.076 GB Notification: Performance of sorting global known variables: time 2.997e-05/1.297, allocations: 76.41 kB / 1.373 GB, free: 8.039 MB / 1.076 GB Notification: Performance of sort global known variables: time 1.5e-07/1.297, allocations: 5.594 kB / 1.373 GB, free: 8.035 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0001994/1.297, allocations: 15.47 kB / 1.373 GB, free: 8.031 MB / 1.076 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.0001146/1.297, allocations: 112.4 kB / 1.374 GB, free: 7.93 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.000136/1.298, allocations: 53.06 kB / 1.374 GB, free: 7.918 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/1.298, allocations: 0 / 1.374 GB, free: 7.918 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 4.469e-05/1.298, allocations: 33.12 kB / 1.374 GB, free: 7.906 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002312/1.298, allocations: 11.52 kB / 1.374 GB, free: 7.902 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005521/1.298, allocations: 324.8 kB / 1.374 GB, free: 7.637 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002197/1.299, allocations: 0.6902 MB / 1.375 GB, free: 6.938 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 5.19e-05/1.299, allocations: 9.234 kB / 1.375 GB, free: 6.934 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.802e-05/1.299, allocations: 11.94 kB / 1.375 GB, free: 6.926 MB / 1.076 GB Notification: Performance of SimCode: time 2.1e-07/1.299, allocations: 0 / 1.375 GB, free: 6.926 MB / 1.076 GB Notification: Performance of Templates: time 0.002838/1.302, allocations: 0.6464 MB / 1.375 GB, free: 6.844 MB / 1.076 GB make -j1 -f Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.makefile (rm -f Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & ./Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches