Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.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.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp|m_flow_turbulent|der.m_flow.|der.m_flow_comp.|err_m_flow|err_der_m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp|m_flow_turbulent|der.m_flow.|der.m_flow_comp.|err_m_flow|err_der_m_flow",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008706/0.008706, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.001755/0.001755, allocations: 196.7 kB / 16.67 MB, free: 5.52 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.4 MB, free: 15.17 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.379/2.379, allocations: 390.2 MB / 0.6648 GB, free: 0.6758 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001272/0.001272, allocations: 55.91 kB / 0.9508 GB, free: 7.676 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8588/0.8601, allocations: 140.4 MB / 1.088 GB, free: 5.523 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002295/0.8624, allocations: 1.281 MB / 1.089 GB, free: 4.629 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0009916/0.8635, allocations: 0.6237 MB / 1.09 GB, free: 4.199 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.963e-05/0.8635, allocations: 0 / 1.09 GB, free: 4.199 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.555e-05/0.8635, allocations: 5.578 kB / 1.09 GB, free: 4.195 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 3.824e-05/0.8636, allocations: 0.5625 kB / 1.09 GB, free: 4.195 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005741/0.8642, allocations: 147.5 kB / 1.09 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 7.431e-05/0.8643, allocations: 29.75 kB / 1.09 GB, free: 4.117 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 6.561e-05/0.8643, allocations: 11.45 kB / 1.09 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 2.948e-05/0.8644, allocations: 6.281 kB / 1.09 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.428e-05/0.8644, allocations: 20.34 kB / 1.09 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.331e-05/0.8645, allocations: 1.125 kB / 1.09 GB, free: 4.098 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006293/0.8651, allocations: 342.3 kB / 1.09 GB, free: 4 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.984e-05/0.8651, allocations: 10.8 kB / 1.09 GB, free: 3.992 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.619e-05/0.8652, allocations: 14.94 kB / 1.09 GB, free: 3.984 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003278/0.8655, allocations: 150.2 kB / 1.09 GB, free: 3.941 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.8655, allocations: 0 / 1.09 GB, free: 3.941 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.523e-06/0.8655, allocations: 0 / 1.09 GB, free: 3.941 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.881e-06/0.8655, allocations: 1.281 kB / 1.09 GB, free: 3.941 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.0004368/0.866, allocations: 371.4 kB / 1.091 GB, free: 3.555 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.915e-05/0.866, allocations: 14.06 kB / 1.091 GB, free: 3.551 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.64e-05/0.8661, allocations: 6.844 kB / 1.091 GB, free: 3.547 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.173e-05/0.8662, allocations: 163 kB / 1.091 GB, free: 3.352 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.546e-05/0.8662, allocations: 9.859 kB / 1.091 GB, free: 3.344 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.01e-05/0.8662, allocations: 8.422 kB / 1.091 GB, free: 3.34 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001324/0.8664, allocations: 49.81 kB / 1.091 GB, free: 3.301 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.335e-05/0.8664, allocations: 0.8438 kB / 1.091 GB, free: 3.301 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.42e-05/0.8664, allocations: 12.56 kB / 1.091 GB, free: 3.289 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.263e-06/0.8664, allocations: 2.297 kB / 1.091 GB, free: 3.289 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.126e-05/0.8665, allocations: 14.22 kB / 1.091 GB, free: 3.289 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001668/0.8667, allocations: 166.6 kB / 1.091 GB, free: 3.09 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001221/0.8668, allocations: 56.52 kB / 1.091 GB, free: 3.055 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.214e-05/0.8668, allocations: 29.06 kB / 1.091 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.724e-05/0.8669, allocations: 1.391 kB / 1.091 GB, free: 3.039 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.448e-05/0.8669, allocations: 40.59 kB / 1.091 GB, free: 2.992 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.152e-06/0.8669, allocations: 0 / 1.091 GB, free: 2.992 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.001169/0.8681, allocations: 0.5873 MB / 1.092 GB, free: 2.473 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.468e-05/0.8681, allocations: 61.06 kB / 1.092 GB, free: 2.402 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.721e-05/0.8682, allocations: 98.34 kB / 1.092 GB, free: 2.301 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.395e-05/0.8682, allocations: 26.3 kB / 1.092 GB, free: 2.27 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.039e-05/0.8682, allocations: 85.66 kB / 1.092 GB, free: 2.184 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.102e-05/0.8683, allocations: 34.72 kB / 1.092 GB, free: 2.156 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.74e-05/0.8683, allocations: 28.64 kB / 1.092 GB, free: 2.133 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.198e-05/0.8684, allocations: 314.6 kB / 1.093 GB, free: 1.82 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.801e-05/0.8684, allocations: 22.17 kB / 1.093 GB, free: 1.812 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.418e-05/0.8685, allocations: 24.61 kB / 1.093 GB, free: 1.805 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001002/0.8686, allocations: 62.89 kB / 1.093 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.81e-07/0.8686, allocations: 3.938 kB / 1.093 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001502/0.8688, allocations: 100.9 kB / 1.093 GB, free: 1.711 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.8688, allocations: 4.75 kB / 1.093 GB, free: 1.711 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.03e-06/0.8688, allocations: 1.484 kB / 1.093 GB, free: 1.711 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.917e-05/0.8688, allocations: 0.6875 kB / 1.093 GB, free: 1.711 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001112/0.8689, allocations: 24.56 kB / 1.093 GB, free: 1.707 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.869, allocations: 0.75 kB / 1.093 GB, free: 1.707 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.239e-05/0.869, allocations: 0.8125 kB / 1.093 GB, free: 1.707 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.073e-05/0.869, allocations: 7.766 kB / 1.093 GB, free: 1.703 MB / 0.8575 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (13): * Single equations (assignments): 13 * 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 6.516e-05/0.8691, allocations: 116.5 kB / 1.093 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.699e-05/0.8691, allocations: 11.67 kB / 1.093 GB, free: 1.574 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001931/0.8693, allocations: 101.6 kB / 1.093 GB, free: 1.512 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.8693, allocations: 1.219 kB / 1.093 GB, free: 1.512 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/0.8693, allocations: 0 / 1.093 GB, free: 1.512 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.8693, allocations: 1.562 kB / 1.093 GB, free: 1.512 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000337/0.8697, allocations: 356.3 kB / 1.093 GB, free: 1.176 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.8697, allocations: 4.703 kB / 1.093 GB, free: 1.172 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001212/0.8698, allocations: 28.5 kB / 1.093 GB, free: 1.164 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.554e-06/0.8698, allocations: 1.156 kB / 1.093 GB, free: 1.164 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.918e-06/0.8698, allocations: 2 kB / 1.093 GB, free: 1.164 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.8698, allocations: 0 / 1.093 GB, free: 1.164 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.8698, allocations: 0.7969 kB / 1.093 GB, free: 1.164 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002349/0.8701, allocations: 222.7 kB / 1.094 GB, free: 0.9922 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.857e-05/0.8701, allocations: 79.55 kB / 1.094 GB, free: 0.8984 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.47e-05/0.8701, allocations: 6.641 kB / 1.094 GB, free: 0.8945 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.789e-05/0.8702, allocations: 6.672 kB / 1.094 GB, free: 0.8906 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.138e-05/0.8702, allocations: 8.906 kB / 1.094 GB, free: 0.8867 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.696e-06/0.8703, allocations: 3.859 kB / 1.094 GB, free: 0.8867 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.069e-05/0.8703, allocations: 78.08 kB / 1.094 GB, free: 0.8125 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1e-07/0.8703, allocations: 0 / 1.094 GB, free: 0.8125 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002914/0.8706, allocations: 41.95 kB / 1.094 GB, free: 0.7969 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (m_flow_comp,der_m_flow_comp) * 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.0002083/0.8708, allocations: 135.6 kB / 1.094 GB, free: 0.6953 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001632/0.871, allocations: 65.59 kB / 1.094 GB, free: 0.6758 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.871, allocations: 0 / 1.094 GB, free: 0.6758 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 5.474e-05/0.871, allocations: 36.53 kB / 1.094 GB, free: 0.6641 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002221/0.8713, allocations: 16 kB / 1.094 GB, free: 0.6523 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005122/0.8718, allocations: 293 kB / 1.094 GB, free: 428 kB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002296/0.872, allocations: 0.685 MB / 1.095 GB, free: 15.72 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 4.606e-05/0.8721, allocations: 12.78 kB / 1.095 GB, free: 15.72 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.571e-05/0.8721, allocations: 12.78 kB / 1.095 GB, free: 15.71 MB / 0.8731 GB Notification: Performance of SimCode: time 2.5e-07/0.8721, allocations: 0 / 1.095 GB, free: 15.71 MB / 0.8731 GB Notification: Performance of Templates: time 0.003808/0.8759, allocations: 0.9433 MB / 1.096 GB, free: 15.63 MB / 0.8731 GB make -j1 -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & ./Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,m_flow,m_flow_comp,m_flow_turbulent,der(m_flow),der(m_flow_comp),err_m_flow,err_der_m_flow Variables in the result:der(m_flow),der(m_flow_comp),err_der_m_flow,err_m_flow,k,m_flow,m_flow_comp,m_flow_turbulent,time