Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.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.Examples.AirDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.hSteSym.|der.hSteCod.|der.cpSym.|der.cpCod.|der.cvSym.|der.cvCod.",fileNamePrefix="Buildings_9_Buildings.Media.Examples.AirDerivativeCheck") translateModel(Buildings.Media.Examples.AirDerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|der.hLiqSym.|der.hLiqCod.|der.hSteSym.|der.hSteCod.|der.cpSym.|der.cpCod.|der.cvSym.|der.cvCod.",fileNamePrefix="Buildings_9_Buildings.Media.Examples.AirDerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001121/0.00112, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001152/0.001152, allocations: 197.1 kB / 16.14 MB, free: 6.711 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.346/1.346, allocations: 222.9 MB / 239.8 MB, free: 4.633 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.343/2.343, allocations: 390.2 MB / 0.6642 GB, free: 0.5742 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 63.91 kB / 0.8118 GB, free: 14.88 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6837/0.6849, allocations: 140.4 MB / 0.9489 GB, free: 9.156 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Media.Examples.AirDerivativeCheck): time 0.002108/0.687, allocations: 1.396 MB / 0.9503 GB, free: 8.043 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.1652/0.8523, allocations: 145.8 MB / 1.093 GB, free: 14.37 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.235e-05/0.8524, allocations: 0 / 1.093 GB, free: 14.37 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 5.758e-05/0.8525, allocations: 3.938 kB / 1.093 GB, free: 14.37 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.0001186/0.8526, allocations: 15.91 kB / 1.093 GB, free: 14.35 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001176/0.8538, allocations: 298.8 kB / 1.093 GB, free: 14.06 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0001258/0.8539, allocations: 83.73 kB / 1.093 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.499e-05/0.854, allocations: 8 kB / 1.093 GB, free: 13.97 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 5.045e-05/0.8541, allocations: 23.98 kB / 1.093 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001015/0.8542, allocations: 39.83 kB / 1.093 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.707e-05/0.8542, allocations: 4 kB / 1.093 GB, free: 13.9 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001158/0.8554, allocations: 0.4908 MB / 1.094 GB, free: 13.41 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 6.199e-05/0.8554, allocations: 15.97 kB / 1.094 GB, free: 13.39 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 6.193e-05/0.8555, allocations: 35.86 kB / 1.094 GB, free: 13.36 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0005046/0.856, allocations: 181.5 kB / 1.094 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.001e-06/0.856, allocations: 0 / 1.094 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.262e-06/0.856, allocations: 0 / 1.094 GB, free: 13.18 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.431e-06/0.8561, allocations: 0 / 1.094 GB, free: 13.18 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0005741/0.8566, allocations: 399.3 kB / 1.094 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.435e-05/0.8567, allocations: 8.031 kB / 1.094 GB, free: 12.74 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004461/0.8571, allocations: 36.81 kB / 1.094 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001886/0.8573, allocations: 168.4 kB / 1.094 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.489e-05/0.8574, allocations: 3.938 kB / 1.094 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.27e-05/0.8574, allocations: 15.98 kB / 1.094 GB, free: 12.48 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001748/0.8576, allocations: 73.66 kB / 1.094 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.8576, allocations: 0 / 1.094 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.529e-05/0.8576, allocations: 0 / 1.094 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.306e-06/0.8576, allocations: 4 kB / 1.094 GB, free: 12.4 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.903e-05/0.8577, allocations: 47.89 kB / 1.095 GB, free: 12.35 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002152/0.858, allocations: 201.3 kB / 1.095 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001883/0.8582, allocations: 90.59 kB / 1.095 GB, free: 12.01 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001047/0.8583, allocations: 32.94 kB / 1.095 GB, free: 11.97 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002475/0.8585, allocations: 182.1 kB / 1.095 GB, free: 11.76 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.613e-05/0.8586, allocations: 34.56 kB / 1.095 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=12): time 1.303e-06/0.8586, allocations: 4 kB / 1.095 GB, free: 11.71 MB / 0.8575 GB Notification: Performance of matching and sorting (n=19): time 0.001386/0.86, allocations: 0.5301 MB / 1.096 GB, free: 11.13 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.59e-05/0.8601, allocations: 55.41 kB / 1.096 GB, free: 11.06 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.65e-05/0.8601, allocations: 105.8 kB / 1.096 GB, free: 10.95 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.315e-05/0.8602, allocations: 33.7 kB / 1.096 GB, free: 10.91 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.807e-05/0.8602, allocations: 80.52 kB / 1.096 GB, free: 10.83 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 6.275e-05/0.8603, allocations: 63.02 kB / 1.096 GB, free: 10.77 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.829e-05/0.8603, allocations: 41.7 kB / 1.096 GB, free: 10.72 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001275/0.8605, allocations: 322.8 kB / 1.096 GB, free: 10.39 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.007e-05/0.8606, allocations: 35.92 kB / 1.096 GB, free: 10.36 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.493e-05/0.8607, allocations: 72.95 kB / 1.096 GB, free: 10.28 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001654/0.8608, allocations: 123.3 kB / 1.096 GB, free: 10.14 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.323e-06/0.8608, allocations: 0 / 1.096 GB, free: 10.14 MB / 0.8575 GB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002285/0.8611, allocations: 157.5 kB / 1.097 GB, free: 9.984 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/0.8611, allocations: 5.719 kB / 1.097 GB, free: 9.98 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.109e-06/0.8611, allocations: 0 / 1.097 GB, free: 9.98 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.405e-05/0.8611, allocations: 4 kB / 1.097 GB, free: 9.977 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001758/0.8613, allocations: 39.92 kB / 1.097 GB, free: 9.938 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.153e-06/0.8613, allocations: 4 kB / 1.097 GB, free: 9.934 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.068e-05/0.8614, allocations: 15.88 kB / 1.097 GB, free: 9.918 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.038e-05/0.8614, allocations: 4 kB / 1.097 GB, free: 9.914 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * 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 (24): * Single equations (assignments): 24 * 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.812e-05/0.8615, allocations: 121.8 kB / 1.097 GB, free: 9.785 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.315e-05/0.8615, allocations: 7.906 kB / 1.097 GB, free: 9.777 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.502e-05/0.8616, allocations: 20.44 kB / 1.097 GB, free: 9.754 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.8616, allocations: 0 / 1.097 GB, free: 9.754 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.075e-06/0.8616, allocations: 3.984 kB / 1.097 GB, free: 9.75 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.8616, allocations: 7.938 kB / 1.097 GB, free: 9.742 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002071/0.8618, allocations: 197.6 kB / 1.097 GB, free: 9.5 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.724e-06/0.8618, allocations: 0 / 1.097 GB, free: 9.5 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001942/0.862, allocations: 35.98 kB / 1.097 GB, free: 9.465 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.8621, allocations: 0 / 1.097 GB, free: 9.465 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.541e-05/0.8621, allocations: 8 kB / 1.097 GB, free: 9.457 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.8621, allocations: 0 / 1.097 GB, free: 9.457 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.8621, allocations: 0 / 1.097 GB, free: 9.457 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003991/0.8625, allocations: 214 kB / 1.097 GB, free: 9.23 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001207/0.8626, allocations: 97.06 kB / 1.097 GB, free: 9.117 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.035e-05/0.8627, allocations: 4 kB / 1.097 GB, free: 9.113 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001268/0.8628, allocations: 8.25 kB / 1.097 GB, free: 9.105 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.958e-05/0.8628, allocations: 11.92 kB / 1.097 GB, free: 9.094 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.67e-05/0.8628, allocations: 15.98 kB / 1.097 GB, free: 9.078 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.924e-05/0.8629, allocations: 79.28 kB / 1.097 GB, free: 9 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8629, allocations: 0 / 1.097 GB, free: 9 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.00024/0.8631, allocations: 28 kB / 1.098 GB, free: 8.973 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (hLiqSym,hSteSym,hAirSym,cpSym,cvSym) * 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 (19): * Single equations (assignments): 19 * 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.000197/0.8633, allocations: 115.3 kB / 1.098 GB, free: 8.852 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002187/0.8636, allocations: 101.4 kB / 1.098 GB, free: 8.754 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/0.8636, allocations: 4 kB / 1.098 GB, free: 8.75 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 8.464e-05/0.8637, allocations: 55.91 kB / 1.098 GB, free: 8.695 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002933/0.864, allocations: 13.27 kB / 1.098 GB, free: 8.684 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009507/0.8649, allocations: 0.538 MB / 1.098 GB, free: 8.117 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002905/0.8652, allocations: 0.6972 MB / 1.099 GB, free: 7.395 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 0.0001435/0.8654, allocations: 32.61 kB / 1.099 GB, free: 7.363 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.23e-05/0.8654, allocations: 15.44 kB / 1.099 GB, free: 7.348 MB / 0.8575 GB Notification: Performance of SimCode: time 3.6e-07/0.8654, allocations: 0 / 1.099 GB, free: 7.348 MB / 0.8575 GB Notification: Performance of Templates: time 0.003875/0.8693, allocations: 1.071 MB / 1.1 GB, free: 6.281 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.makefile (rm -f Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.sim & ./Buildings_9_Buildings.Media.Examples.AirDerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Media.Examples.AirDerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Media_Examples_AirDerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Media.Examples.AirDerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches