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.001652/0.001652, allocations: 101.9 kB / 15.99 MB, free: 6.367 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.001977/0.001978, allocations: 198.8 kB / 16.91 MB, free: 6.195 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.378/1.378, allocations: 222.9 MB / 240.6 MB, free: 15.42 MB / 206.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.214/2.214, allocations: 390.2 MB / 0.665 GB, free: 0.8477 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001471/0.001471, allocations: 64.59 kB / 0.8127 GB, free: 33.34 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2667/0.2682, allocations: 140.4 MB / 0.9498 GB, free: 9.242 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Specialized.Air.Examples.PerfectGasDerivativeCheck): time 0.002661/0.2709, allocations: 1.346 MB / 0.9511 GB, free: 7.883 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.715/0.9859, allocations: 144.8 MB / 1.093 GB, free: 5.977 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.721e-05/0.986, allocations: 0 / 1.093 GB, free: 5.977 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.771e-05/0.9861, allocations: 5.547 kB / 1.093 GB, free: 5.973 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.835e-05/0.9861, allocations: 4.766 kB / 1.093 GB, free: 5.973 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004095/0.9865, allocations: 83.19 kB / 1.093 GB, free: 5.973 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 7.623e-05/0.9866, allocations: 33.8 kB / 1.093 GB, free: 5.973 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.465e-05/0.9867, allocations: 3.594 kB / 1.093 GB, free: 5.973 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 4.498e-05/0.9867, allocations: 14.61 kB / 1.093 GB, free: 5.973 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.039e-05/0.9868, allocations: 17.33 kB / 1.093 GB, free: 5.973 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.277e-05/0.9868, allocations: 2.188 kB / 1.093 GB, free: 5.973 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002468/0.9871, allocations: 80.42 kB / 1.093 GB, free: 5.965 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.878e-05/0.9871, allocations: 10.91 kB / 1.093 GB, free: 5.965 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.308e-05/0.9871, allocations: 15.2 kB / 1.093 GB, free: 5.965 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0001289/0.9873, allocations: 48.59 kB / 1.093 GB, free: 5.961 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.9873, allocations: 0 / 1.093 GB, free: 5.961 MB / 0.8575 GB Notification: Performance of FrontEnd: time 2.134e-06/0.9873, allocations: 1.203 kB / 1.093 GB, free: 5.961 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.512e-06/0.9873, allocations: 1.062 kB / 1.093 GB, free: 5.961 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.0007241/0.988, allocations: 355.1 kB / 1.093 GB, free: 21.6 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.314e-05/0.9881, allocations: 10.66 kB / 1.093 GB, free: 21.6 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002033/0.9883, allocations: 15.05 kB / 1.093 GB, free: 21.59 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001028/0.9884, allocations: 162.6 kB / 1.093 GB, free: 21.4 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.462e-05/0.9884, allocations: 9.422 kB / 1.093 GB, free: 21.39 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.324e-05/0.9884, allocations: 4.344 kB / 1.093 GB, free: 21.39 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00013/0.9886, allocations: 53.66 kB / 1.093 GB, free: 21.36 MB / 0.8731 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.255e-06/0.9886, allocations: 1.5 kB / 1.093 GB, free: 21.36 MB / 0.8731 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.268e-05/0.9886, allocations: 1.344 kB / 1.093 GB, free: 21.36 MB / 0.8731 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.139e-06/0.9886, allocations: 1.188 kB / 1.093 GB, free: 21.36 MB / 0.8731 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.437e-05/0.9887, allocations: 15.44 kB / 1.093 GB, free: 21.36 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001688/0.9889, allocations: 173.2 kB / 1.094 GB, free: 21.16 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 9.462e-05/0.989, allocations: 63.94 kB / 1.094 GB, free: 21.13 MB / 0.8731 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.978e-05/0.989, allocations: 16.12 kB / 1.094 GB, free: 21.12 MB / 0.8731 GB Notification: Performance of preOpt evalFunc (simulation): time 1.159e-05/0.989, allocations: 2.062 kB / 1.094 GB, free: 21.12 MB / 0.8731 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.428e-05/0.989, allocations: 33.47 kB / 1.094 GB, free: 21.09 MB / 0.8731 GB Notification: Performance of pre-optimization done (n=7): time 1.593e-06/0.9891, allocations: 0 / 1.094 GB, free: 21.09 MB / 0.8731 GB Notification: Performance of matching and sorting (n=11): time 0.0007129/0.9898, allocations: 371.8 kB / 1.094 GB, free: 20.83 MB / 0.8731 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.522e-05/0.9898, allocations: 53.3 kB / 1.094 GB, free: 20.77 MB / 0.8731 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.801e-05/0.9899, allocations: 95.62 kB / 1.094 GB, free: 20.67 MB / 0.8731 GB Notification: Performance of collectPreVariables (initialization): time 1.684e-05/0.9899, allocations: 28.2 kB / 1.094 GB, free: 20.64 MB / 0.8731 GB Notification: Performance of collectInitialEqns (initialization): time 3.161e-05/0.9899, allocations: 81.97 kB / 1.094 GB, free: 20.56 MB / 0.8731 GB Notification: Performance of collectInitialBindings (initialization): time 4.028e-05/0.99, allocations: 40.67 kB / 1.094 GB, free: 20.53 MB / 0.8731 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.378e-05/0.99, allocations: 35.95 kB / 1.094 GB, free: 20.51 MB / 0.8731 GB Notification: Performance of setup shared object (initialization): time 0.0001096/0.9902, allocations: 321.6 kB / 1.095 GB, free: 20.19 MB / 0.8731 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.081e-05/0.9902, allocations: 16.89 kB / 1.095 GB, free: 20.19 MB / 0.8731 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.764e-05/0.9903, allocations: 38.38 kB / 1.095 GB, free: 20.18 MB / 0.8731 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.826e-05/0.9904, allocations: 59.55 kB / 1.095 GB, free: 20.16 MB / 0.8731 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.51e-07/0.9904, allocations: 0 / 1.095 GB, free: 20.16 MB / 0.8731 GB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0001436/0.9905, allocations: 96.67 kB / 1.095 GB, free: 20.13 MB / 0.8731 GB Notification: Performance of prepare postOptimizeDAE: time 1.699e-05/0.9905, allocations: 12.64 kB / 1.095 GB, free: 20.12 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.61e-06/0.9906, allocations: 0 / 1.095 GB, free: 20.12 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.306e-05/0.9906, allocations: 1.125 kB / 1.095 GB, free: 20.12 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001198/0.9907, allocations: 27.88 kB / 1.095 GB, free: 20.12 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.713e-06/0.9907, allocations: 1.156 kB / 1.095 GB, free: 20.12 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.165e-05/0.9907, allocations: 1.609 kB / 1.095 GB, free: 20.12 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.524e-06/0.9908, allocations: 3.938 kB / 1.095 GB, free: 20.12 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.931e-05/0.9908, allocations: 121 kB / 1.095 GB, free: 20.01 MB / 0.8731 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.599e-05/0.9909, allocations: 6.094 kB / 1.095 GB, free: 20 MB / 0.8731 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.709e-05/0.9909, allocations: 16.17 kB / 1.095 GB, free: 19.99 MB / 0.8731 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.9909, allocations: 1.094 kB / 1.095 GB, free: 19.99 MB / 0.8731 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.9909, allocations: 1.641 kB / 1.095 GB, free: 19.99 MB / 0.8731 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.9909, allocations: 0.7031 kB / 1.095 GB, free: 19.99 MB / 0.8731 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001179/0.991, allocations: 174.2 kB / 1.095 GB, free: 19.8 MB / 0.8731 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.9911, allocations: 1.734 kB / 1.095 GB, free: 19.8 MB / 0.8731 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001214/0.9912, allocations: 20.83 kB / 1.095 GB, free: 19.8 MB / 0.8731 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-06/0.9912, allocations: 1.828 kB / 1.095 GB, free: 19.8 MB / 0.8731 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.568e-06/0.9912, allocations: 1.406 kB / 1.095 GB, free: 19.8 MB / 0.8731 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.204e-06/0.9912, allocations: 1.172 kB / 1.095 GB, free: 19.8 MB / 0.8731 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.9912, allocations: 8.594 kB / 1.095 GB, free: 19.79 MB / 0.8731 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002063/0.9914, allocations: 139.6 kB / 1.095 GB, free: 19.73 MB / 0.8731 GB Notification: Performance of postOpt removeConstants (simulation): time 7.336e-05/0.9915, allocations: 85.5 kB / 1.095 GB, free: 19.63 MB / 0.8731 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.658e-05/0.9915, allocations: 6.359 kB / 1.096 GB, free: 19.63 MB / 0.8731 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.555e-05/0.9916, allocations: 2.688 kB / 1.096 GB, free: 19.63 MB / 0.8731 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.045e-05/0.9917, allocations: 5.672 kB / 1.096 GB, free: 19.63 MB / 0.8731 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.318e-06/0.9917, allocations: 8.094 kB / 1.096 GB, free: 19.63 MB / 0.8731 GB Notification: Performance of sorting global known variables: time 3.167e-05/0.9917, allocations: 80.28 kB / 1.096 GB, free: 19.55 MB / 0.8731 GB Notification: Performance of sort global known variables: time 1e-07/0.9917, allocations: 0 / 1.096 GB, free: 19.55 MB / 0.8731 GB Notification: Performance of remove unused functions: time 0.0001997/0.9919, allocations: 16.03 kB / 1.096 GB, free: 19.55 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.0001048/0.992, allocations: 105 kB / 1.096 GB, free: 19.46 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0001672/0.9922, allocations: 60.08 kB / 1.096 GB, free: 19.46 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.9922, allocations: 1.938 kB / 1.096 GB, free: 19.46 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 4.832e-05/0.9923, allocations: 27.78 kB / 1.096 GB, free: 19.46 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002409/0.9925, allocations: 13.58 kB / 1.096 GB, free: 19.46 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005518/0.9931, allocations: 370.4 kB / 1.096 GB, free: 19.16 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002326/0.9933, allocations: 0.6903 MB / 1.097 GB, free: 18.46 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.482e-05/0.9934, allocations: 12.34 kB / 1.097 GB, free: 18.45 MB / 0.8731 GB Notification: Performance of SimCode: time 2.3e-07/0.9934, allocations: 0.75 kB / 1.097 GB, free: 18.45 MB / 0.8731 GB Notification: Performance of Templates: time 0.002469/0.9958, allocations: 0.8208 MB / 1.098 GB, free: 18.41 MB / 0.8731 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