Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001362/0.001362, allocations: 105.4 kB / 15.99 MB, free: 6.348 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.001458/0.001458, allocations: 198.9 kB / 16.91 MB, free: 6.188 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.334/1.334, allocations: 222.9 MB / 240.6 MB, free: 13.72 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.343/2.343, allocations: 437 MB / 0.7107 GB, free: 4.621 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00138/0.00138, allocations: 64.5 kB / 0.8694 GB, free: 2.516 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2763/0.2777, allocations: 151.6 MB / 1.017 GB, free: 10.95 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.00246/0.2802, allocations: 1.344 MB / 1.019 GB, free: 9.59 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.6407/0.9209, allocations: 144.8 MB / 1.16 GB, free: 7.488 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.007e-05/0.9209, allocations: 0 / 1.16 GB, free: 7.488 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 2.03e-05/0.921, allocations: 0 / 1.16 GB, free: 7.488 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 5.741e-05/0.9211, allocations: 9.266 kB / 1.16 GB, free: 7.48 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004826/0.9216, allocations: 89.97 kB / 1.16 GB, free: 7.438 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 7.465e-05/0.9216, allocations: 32.59 kB / 1.16 GB, free: 7.426 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 3.872e-05/0.9217, allocations: 1.312 kB / 1.16 GB, free: 7.426 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 4.594e-05/0.9217, allocations: 16.7 kB / 1.16 GB, free: 7.418 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 5.932e-05/0.9218, allocations: 13.64 kB / 1.16 GB, free: 7.414 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 1.291e-05/0.9218, allocations: 1.5 kB / 1.16 GB, free: 7.414 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003008/0.9221, allocations: 78.92 kB / 1.16 GB, free: 7.383 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 1.941e-05/0.9222, allocations: 15.95 kB / 1.16 GB, free: 7.371 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 3.492e-05/0.9222, allocations: 15.5 kB / 1.16 GB, free: 7.363 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.0001435/0.9224, allocations: 42.28 kB / 1.161 GB, free: 7.355 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.9224, allocations: 4.547 kB / 1.161 GB, free: 7.352 MB / 0.8731 GB Notification: Performance of FrontEnd: time 2.504e-06/0.9224, allocations: 1.156 kB / 1.161 GB, free: 7.352 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 7.695e-06/0.9224, allocations: 0 / 1.161 GB, free: 7.352 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.0004453/0.9228, allocations: 358.5 kB / 1.161 GB, free: 6.98 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.374e-05/0.9229, allocations: 13.84 kB / 1.161 GB, free: 6.977 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002155/0.9231, allocations: 15.28 kB / 1.161 GB, free: 6.973 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001227/0.9232, allocations: 163.4 kB / 1.161 GB, free: 6.777 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.274e-05/0.9233, allocations: 6 kB / 1.161 GB, free: 6.773 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.588e-05/0.9233, allocations: 12.47 kB / 1.161 GB, free: 6.766 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001363/0.9234, allocations: 51.83 kB / 1.161 GB, free: 6.727 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.905e-06/0.9235, allocations: 0 / 1.161 GB, free: 6.727 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.457e-05/0.9235, allocations: 1.375 kB / 1.161 GB, free: 6.727 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.9235, allocations: 0 / 1.161 GB, free: 6.727 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.61e-05/0.9235, allocations: 22.88 kB / 1.161 GB, free: 6.719 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001764/0.9237, allocations: 170.8 kB / 1.161 GB, free: 6.516 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 8.834e-05/0.9238, allocations: 52.41 kB / 1.161 GB, free: 6.48 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.845e-05/0.9239, allocations: 14.58 kB / 1.161 GB, free: 6.473 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 9.759e-06/0.9239, allocations: 0.9062 kB / 1.161 GB, free: 6.473 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.536e-05/0.9239, allocations: 35.72 kB / 1.161 GB, free: 6.43 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=7): time 1.282e-06/0.9239, allocations: 3.938 kB / 1.161 GB, free: 6.426 MB / 0.8731 GB Notification: Performance of matching and sorting (n=11): time 0.000734/0.9247, allocations: 374.1 kB / 1.162 GB, free: 6.121 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.011e-05/0.9247, allocations: 52.59 kB / 1.162 GB, free: 6.059 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.868e-05/0.9248, allocations: 90.89 kB / 1.162 GB, free: 5.961 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 1.841e-05/0.9248, allocations: 30.73 kB / 1.162 GB, free: 5.926 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 3.398e-05/0.9248, allocations: 81.39 kB / 1.162 GB, free: 5.844 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 4.241e-05/0.9249, allocations: 41.41 kB / 1.162 GB, free: 5.812 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.28e-05/0.9249, allocations: 31.91 kB / 1.162 GB, free: 5.785 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001041/0.925, allocations: 320.2 kB / 1.162 GB, free: 5.465 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.624e-05/0.9251, allocations: 21.5 kB / 1.162 GB, free: 5.457 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.696e-05/0.9251, allocations: 37.48 kB / 1.162 GB, free: 5.434 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.487e-05/0.9252, allocations: 60.7 kB / 1.162 GB, free: 5.398 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.92e-07/0.9252, allocations: 0 / 1.162 GB, free: 5.398 MB / 0.8731 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001395/0.9254, allocations: 90.55 kB / 1.163 GB, free: 5.348 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/0.9254, allocations: 5.719 kB / 1.163 GB, free: 5.348 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.9254, allocations: 4 kB / 1.163 GB, free: 5.344 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.305e-05/0.9254, allocations: 1.188 kB / 1.163 GB, free: 5.344 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001131/0.9255, allocations: 28.89 kB / 1.163 GB, free: 5.336 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.814e-06/0.9256, allocations: 1.625 kB / 1.163 GB, free: 5.336 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.174e-05/0.9256, allocations: 5.062 kB / 1.163 GB, free: 5.332 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.063e-06/0.9256, allocations: 3.344 kB / 1.163 GB, free: 5.332 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.966e-05/0.9257, allocations: 120.9 kB / 1.163 GB, free: 5.211 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.876e-05/0.9257, allocations: 7.188 kB / 1.163 GB, free: 5.207 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.557e-05/0.9258, allocations: 13.06 kB / 1.163 GB, free: 5.195 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.786e-06/0.9258, allocations: 5.094 kB / 1.163 GB, free: 5.191 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.9258, allocations: 0.875 kB / 1.163 GB, free: 5.191 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.9258, allocations: 1.062 kB / 1.163 GB, free: 5.191 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001283/0.9259, allocations: 174.5 kB / 1.163 GB, free: 4.988 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.391e-06/0.9259, allocations: 1.125 kB / 1.163 GB, free: 4.988 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001214/0.9261, allocations: 25.77 kB / 1.163 GB, free: 4.984 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.554e-06/0.9261, allocations: 1.062 kB / 1.163 GB, free: 4.984 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.379e-05/0.9261, allocations: 9.031 kB / 1.163 GB, free: 4.98 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.575e-06/0.9261, allocations: 1.203 kB / 1.163 GB, free: 4.98 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.285e-06/0.9261, allocations: 3.984 kB / 1.163 GB, free: 4.977 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002004/0.9263, allocations: 138.2 kB / 1.163 GB, free: 4.879 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 6.748e-05/0.9264, allocations: 87.03 kB / 1.163 GB, free: 4.781 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.498e-05/0.9264, allocations: 1.031 kB / 1.163 GB, free: 4.781 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.53e-05/0.9265, allocations: 2.344 kB / 1.163 GB, free: 4.781 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.553e-05/0.9265, allocations: 13.41 kB / 1.163 GB, free: 4.773 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.126e-05/0.9265, allocations: 9.5 kB / 1.163 GB, free: 4.77 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 3.074e-05/0.9266, allocations: 80.34 kB / 1.163 GB, free: 4.691 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9266, allocations: 0 / 1.163 GB, free: 4.691 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0002105/0.9268, allocations: 17.38 kB / 1.163 GB, free: 4.688 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.0001055/0.9269, allocations: 100.3 kB / 1.163 GB, free: 4.598 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0001427/0.9271, allocations: 59.92 kB / 1.163 GB, free: 4.582 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.514e-06/0.9271, allocations: 0 / 1.163 GB, free: 4.582 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 4.17e-05/0.9271, allocations: 33.36 kB / 1.163 GB, free: 4.57 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002271/0.9273, allocations: 5.5 kB / 1.163 GB, free: 4.57 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005878/0.9279, allocations: 370.5 kB / 1.164 GB, free: 4.254 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002425/0.9282, allocations: 0.6886 MB / 1.165 GB, free: 3.555 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.762e-05/0.9282, allocations: 13.88 kB / 1.165 GB, free: 3.547 MB / 0.8731 GB Notification: Performance of SimCode: time 2.6e-07/0.9283, allocations: 3.938 kB / 1.165 GB, free: 3.543 MB / 0.8731 GB Notification: Performance of Templates: time 0.002281/0.9305, allocations: 0.8229 MB / 1.165 GB, free: 3.492 MB / 0.8731 GB make -j1 -f Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.makefile (rm -f Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.sim & ./Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Media_Specialized_Air_Examples_PerfectGasDerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches