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.001652/0.001652, allocations: 104.9 kB / 16.27 MB, free: 6.414 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.001873/0.001873, allocations: 189.8 kB / 17.2 MB, free: 5.953 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.408/1.408, allocations: 222.9 MB / 240.9 MB, free: 15.26 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.691/2.691, allocations: 482.4 MB / 0.7553 GB, free: 7 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.00191/0.00191, allocations: 65.25 kB / 0.9245 GB, free: 20 kB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.755/0.7569, allocations: 162.2 MB / 1.083 GB, free: 1.672 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002259/0.7592, allocations: 1.285 MB / 1.084 GB, free: 0.7617 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.1751/0.9343, allocations: 147 MB / 1.228 GB, free: 10.23 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.53e-05/0.9344, allocations: 0 / 1.228 GB, free: 10.23 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 2.624e-05/0.9345, allocations: 3.938 kB / 1.228 GB, free: 10.23 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 4.495e-05/0.9345, allocations: 4 kB / 1.228 GB, free: 10.23 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003842/0.9349, allocations: 95.55 kB / 1.228 GB, free: 10.13 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 7.034e-05/0.935, allocations: 39.78 kB / 1.228 GB, free: 10.09 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 4.309e-05/0.9351, allocations: 7.984 kB / 1.228 GB, free: 10.09 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 4.011e-05/0.9351, allocations: 8 kB / 1.228 GB, free: 10.08 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 5.468e-05/0.9352, allocations: 15.92 kB / 1.228 GB, free: 10.06 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.268e-05/0.9352, allocations: 4 kB / 1.228 GB, free: 10.06 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002557/0.9354, allocations: 79.81 kB / 1.228 GB, free: 9.98 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 1.527e-05/0.9355, allocations: 4 kB / 1.228 GB, free: 9.977 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 3.266e-05/0.9355, allocations: 23.91 kB / 1.228 GB, free: 9.953 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0001502/0.9357, allocations: 61.86 kB / 1.228 GB, free: 9.895 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.9357, allocations: 4 kB / 1.228 GB, free: 9.891 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.442e-06/0.9357, allocations: 0 / 1.228 GB, free: 9.891 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 5.24e-06/0.9357, allocations: 0 / 1.228 GB, free: 9.891 MB / 0.9512 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.0004381/0.9361, allocations: 347.5 kB / 1.228 GB, free: 9.504 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.432e-05/0.9362, allocations: 12.03 kB / 1.228 GB, free: 9.492 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000203/0.9364, allocations: 16.83 kB / 1.228 GB, free: 9.477 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001216/0.9365, allocations: 164.3 kB / 1.229 GB, free: 9.277 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.379e-05/0.9365, allocations: 3.938 kB / 1.229 GB, free: 9.273 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.356e-05/0.9366, allocations: 12 kB / 1.229 GB, free: 9.262 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001242/0.9367, allocations: 49.67 kB / 1.229 GB, free: 9.207 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.9367, allocations: 0 / 1.229 GB, free: 9.207 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.768e-05/0.9367, allocations: 4 kB / 1.229 GB, free: 9.203 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.022e-06/0.9367, allocations: 7.938 kB / 1.229 GB, free: 9.195 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.531e-05/0.9368, allocations: 11.98 kB / 1.229 GB, free: 9.184 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001924/0.937, allocations: 173.5 kB / 1.229 GB, free: 8.965 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 9.907e-05/0.9371, allocations: 54.5 kB / 1.229 GB, free: 8.902 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.105e-05/0.9371, allocations: 24.84 kB / 1.229 GB, free: 8.875 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.243e-05/0.9371, allocations: 0 / 1.229 GB, free: 8.875 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.062e-05/0.9372, allocations: 30.56 kB / 1.229 GB, free: 8.836 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 7.52e-07/0.9372, allocations: 0 / 1.229 GB, free: 8.836 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11): time 0.0007399/0.9379, allocations: 362.6 kB / 1.229 GB, free: 8.43 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.17e-05/0.938, allocations: 63.34 kB / 1.229 GB, free: 8.355 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.862e-05/0.9381, allocations: 93.86 kB / 1.229 GB, free: 8.254 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.93e-05/0.9381, allocations: 33.62 kB / 1.229 GB, free: 8.215 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 4.194e-05/0.9381, allocations: 84.14 kB / 1.23 GB, free: 8.129 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 4.23e-05/0.9382, allocations: 39.69 kB / 1.23 GB, free: 8.09 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.49e-05/0.9382, allocations: 29.7 kB / 1.23 GB, free: 8.055 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 0.0001284/0.9384, allocations: 314.8 kB / 1.23 GB, free: 7.738 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.257e-05/0.9384, allocations: 19.98 kB / 1.23 GB, free: 7.719 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.219e-05/0.9385, allocations: 44.45 kB / 1.23 GB, free: 7.672 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.692e-05/0.9386, allocations: 57.78 kB / 1.23 GB, free: 7.609 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.9386, allocations: 7.922 kB / 1.23 GB, free: 7.602 MB / 0.9512 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001399/0.9387, allocations: 101.5 kB / 1.23 GB, free: 7.496 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.9387, allocations: 4 kB / 1.23 GB, free: 7.492 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.611e-06/0.9387, allocations: 4 kB / 1.23 GB, free: 7.488 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.26e-05/0.9388, allocations: 0 / 1.23 GB, free: 7.488 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000118/0.9389, allocations: 23.92 kB / 1.23 GB, free: 7.465 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.324e-06/0.9389, allocations: 4 kB / 1.23 GB, free: 7.461 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.202e-05/0.9389, allocations: 4 kB / 1.23 GB, free: 7.457 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.037e-06/0.939, allocations: 8 kB / 1.23 GB, free: 7.449 MB / 0.9512 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.344e-05/0.939, allocations: 115.5 kB / 1.23 GB, free: 7.328 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.233e-05/0.9391, allocations: 4 kB / 1.23 GB, free: 7.324 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.921e-05/0.9391, allocations: 7.969 kB / 1.23 GB, free: 7.32 MB / 0.9512 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.557e-06/0.9391, allocations: 4 kB / 1.23 GB, free: 7.316 MB / 0.9512 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.536e-06/0.9391, allocations: 0 / 1.23 GB, free: 7.316 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.055e-06/0.9391, allocations: 0 / 1.23 GB, free: 7.316 MB / 0.9512 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000145/0.9393, allocations: 177.6 kB / 1.23 GB, free: 7.094 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.9393, allocations: 4 kB / 1.23 GB, free: 7.09 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001223/0.9394, allocations: 23.92 kB / 1.23 GB, free: 7.066 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.9394, allocations: 0 / 1.23 GB, free: 7.066 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.979e-06/0.9394, allocations: 4 kB / 1.23 GB, free: 7.062 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.9394, allocations: 0 / 1.23 GB, free: 7.062 MB / 0.9512 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.9394, allocations: 0 / 1.23 GB, free: 7.062 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002073/0.9396, allocations: 136.9 kB / 1.231 GB, free: 6.91 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 7.432e-05/0.9397, allocations: 85.05 kB / 1.231 GB, free: 6.809 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.55e-05/0.9398, allocations: 8 kB / 1.231 GB, free: 6.801 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.672e-05/0.9398, allocations: 4 kB / 1.231 GB, free: 6.797 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.369e-05/0.9399, allocations: 7.984 kB / 1.231 GB, free: 6.789 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.558e-06/0.9399, allocations: 8 kB / 1.231 GB, free: 6.781 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 3.672e-05/0.9399, allocations: 75.28 kB / 1.231 GB, free: 6.707 MB / 0.9512 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9399, allocations: 0 / 1.231 GB, free: 6.707 MB / 0.9512 GB Notification: Performance of remove unused functions: time 0.0001954/0.9401, allocations: 19.94 kB / 1.231 GB, free: 6.688 MB / 0.9512 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.0001235/0.9403, allocations: 119.9 kB / 1.231 GB, free: 6.559 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.0001464/0.9404, allocations: 59.91 kB / 1.231 GB, free: 6.5 MB / 0.9512 GB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.9404, allocations: 0 / 1.231 GB, free: 6.5 MB / 0.9512 GB Notification: Performance of simCode: created simulation system equations: time 4.206e-05/0.9405, allocations: 31.86 kB / 1.231 GB, free: 6.469 MB / 0.9512 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001852/0.9407, allocations: 8 kB / 1.231 GB, free: 6.461 MB / 0.9512 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005803/0.9413, allocations: 342.6 kB / 1.231 GB, free: 6.094 MB / 0.9512 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002923/0.9416, allocations: 0.6885 MB / 1.232 GB, free: 5.379 MB / 0.9512 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.216e-05/0.9416, allocations: 15.42 kB / 1.232 GB, free: 5.363 MB / 0.9512 GB Notification: Performance of SimCode: time 2.6e-07/0.9416, allocations: 8 kB / 1.232 GB, free: 5.355 MB / 0.9512 GB Notification: Performance of Templates: time 0.00224/0.9439, allocations: 0.8236 MB / 1.233 GB, free: 4.535 MB / 0.9512 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=400 -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/jenkins1/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