Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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.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_latest_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_latest_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.001644/0.001644, allocations: 114.6 kB / 16.42 MB, free: 6.465 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.001884/0.001884, allocations: 189.5 kB / 17.35 MB, free: 5.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.345/1.345, allocations: 222.9 MB / 241 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.618/2.618, allocations: 472.7 MB / 0.746 GB, free: 0.4922 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001368/0.001368, allocations: 63.91 kB / 1.07 GB, free: 9.59 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6774/0.6787, allocations: 159.9 MB / 1.226 GB, free: 13.54 MB / 0.9512 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002258/0.681, allocations: 1.29 MB / 1.228 GB, free: 12.24 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.0009395/0.682, allocations: 0.615 MB / 1.228 GB, free: 11.62 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.399e-05/0.682, allocations: 0 / 1.228 GB, free: 11.62 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 1.709e-05/0.6821, allocations: 4 kB / 1.228 GB, free: 11.62 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 3.348e-05/0.6821, allocations: 7.938 kB / 1.228 GB, free: 11.61 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005409/0.6827, allocations: 147.4 kB / 1.228 GB, free: 11.47 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 5.877e-05/0.6827, allocations: 23.92 kB / 1.228 GB, free: 11.45 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 3.952e-05/0.6828, allocations: 8 kB / 1.228 GB, free: 11.44 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 2.241e-05/0.6828, allocations: 7.938 kB / 1.228 GB, free: 11.43 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 5.615e-05/0.6829, allocations: 19.92 kB / 1.228 GB, free: 11.41 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 1.214e-05/0.6829, allocations: 3.938 kB / 1.228 GB, free: 11.41 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004928/0.6834, allocations: 351.3 kB / 1.229 GB, free: 11.06 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 1.074e-05/0.6834, allocations: 0 / 1.229 GB, free: 11.06 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 2.942e-05/0.6834, allocations: 23.91 kB / 1.229 GB, free: 11.04 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.0002558/0.6837, allocations: 144.1 kB / 1.229 GB, free: 10.9 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.6837, allocations: 0 / 1.229 GB, free: 10.9 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.072e-06/0.6837, allocations: 0 / 1.229 GB, free: 10.9 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 4.398e-06/0.6837, allocations: 0 / 1.229 GB, free: 10.9 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.0003849/0.6841, allocations: 375 kB / 1.229 GB, free: 10.48 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.497e-05/0.6842, allocations: 8.031 kB / 1.229 GB, free: 10.48 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.393e-05/0.6842, allocations: 12.88 kB / 1.229 GB, free: 10.46 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001014/0.6843, allocations: 164.4 kB / 1.229 GB, free: 10.27 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.348e-06/0.6843, allocations: 4.375 kB / 1.229 GB, free: 10.26 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.905e-05/0.6844, allocations: 8.375 kB / 1.229 GB, free: 10.25 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001081/0.6845, allocations: 54.11 kB / 1.23 GB, free: 10.2 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.079e-05/0.6845, allocations: 192 / 1.23 GB, free: 10.2 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.268e-05/0.6845, allocations: 11.94 kB / 1.23 GB, free: 10.18 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.091e-06/0.6845, allocations: 3.984 kB / 1.23 GB, free: 10.18 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.068e-05/0.6846, allocations: 19.98 kB / 1.23 GB, free: 10.16 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001868/0.6848, allocations: 165.7 kB / 1.23 GB, free: 9.949 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001101/0.6849, allocations: 54.56 kB / 1.23 GB, free: 9.887 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.464e-05/0.6849, allocations: 28.84 kB / 1.23 GB, free: 9.855 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 1.896e-05/0.685, allocations: 0 / 1.23 GB, free: 9.855 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.125e-05/0.685, allocations: 42.5 kB / 1.23 GB, free: 9.805 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=7): time 1.132e-06/0.685, allocations: 0 / 1.23 GB, free: 9.805 MB / 0.9512 GB Notification: Performance of matching and sorting (n=11): time 0.001169/0.6862, allocations: 0.5918 MB / 1.23 GB, free: 9.121 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.719e-05/0.6862, allocations: 55.41 kB / 1.23 GB, free: 9.055 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.769e-05/0.6863, allocations: 93.86 kB / 1.231 GB, free: 8.953 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 1.55e-05/0.6863, allocations: 25.7 kB / 1.231 GB, free: 8.922 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 2.993e-05/0.6863, allocations: 84.27 kB / 1.231 GB, free: 8.836 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 4.062e-05/0.6864, allocations: 39.78 kB / 1.231 GB, free: 8.797 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.685e-05/0.6864, allocations: 37.64 kB / 1.231 GB, free: 8.754 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 9.995e-05/0.6865, allocations: 310.8 kB / 1.231 GB, free: 8.441 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.622e-05/0.6866, allocations: 23.98 kB / 1.231 GB, free: 8.418 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.815e-05/0.6866, allocations: 16 kB / 1.231 GB, free: 8.402 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001016/0.6868, allocations: 60.84 kB / 1.231 GB, free: 8.34 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.052e-06/0.6868, allocations: 0 / 1.231 GB, free: 8.34 MB / 0.9512 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001638/0.6869, allocations: 108.4 kB / 1.231 GB, free: 8.23 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.687, allocations: 9.25 kB / 1.231 GB, free: 8.223 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.687, allocations: 0 / 1.231 GB, free: 8.223 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.651e-05/0.687, allocations: 0 / 1.231 GB, free: 8.223 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001138/0.6871, allocations: 23.98 kB / 1.231 GB, free: 8.199 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.673e-06/0.6871, allocations: 0 / 1.231 GB, free: 8.199 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.819e-05/0.6871, allocations: 4 kB / 1.231 GB, free: 8.195 MB / 0.9512 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.277e-05/0.6872, allocations: 4 kB / 1.231 GB, free: 8.191 MB / 0.9512 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 0.0001022/0.6873, allocations: 122.3 kB / 1.231 GB, free: 8.062 MB / 0.9512 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.366e-05/0.6873, allocations: 11.88 kB / 1.231 GB, free: 8.051 MB / 0.9512 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002472/0.6876, allocations: 105.6 kB / 1.231 GB, free: 7.938 MB / 0.9512 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.971e-06/0.6876, allocations: 0 / 1.231 GB, free: 7.938 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.6876, allocations: 0 / 1.231 GB, free: 7.938 MB / 0.9512 GB Notification: Performance of postOpt removeConstants (simulation): time 4.996e-05/0.6876, allocations: 77.11 kB / 1.232 GB, free: 7.844 MB / 0.9512 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.544e-05/0.6877, allocations: 11.98 kB / 1.232 GB, free: 7.832 MB / 0.9512 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.148e-05/0.6877, allocations: 0 / 1.232 GB, free: 7.832 MB / 0.9512 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.311e-05/0.6878, allocations: 4 kB / 1.232 GB, free: 7.828 MB / 0.9512 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0002938/0.6881, allocations: 196.8 kB / 1.232 GB, free: 7.629 MB / 0.9512 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0003406/0.6884, allocations: 286.8 kB / 1.232 GB, free: 7.332 MB / 0.9512 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 7.468e-05/0.6885, allocations: 32.02 kB / 1.232 GB, free: 7.301 MB / 0.9512 GB Notification: Performance of sorting global known variables: time 3.394e-05/0.6885, allocations: 79.27 kB / 1.232 GB, free: 7.223 MB / 0.9512 GB Notification: Performance of Backend: time 6.91e-07/0.6885, allocations: 0 / 1.232 GB, free: 7.223 MB / 0.9512 GB Notification: Performance of simCode: created initialization part: time 0.000651/0.6892, allocations: 185.9 kB / 1.232 GB, free: 7.035 MB / 0.9512 GB Notification: Performance of SimCode: time 0.0007299/0.6899, allocations: 0.7202 MB / 1.233 GB, free: 6.266 MB / 0.9512 GB Notification: Performance of Templates: time 0.004234/0.6942, allocations: 1.531 MB / 1.235 GB, free: 4.77 MB / 0.9512 GB make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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