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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.001016/0.001016, allocations: 90.67 kB / 15.36 MB, free: 0.7383 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.00972/0.00972, allocations: 172.6 kB / 16.26 MB, free: 6.613 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.435/1.435, allocations: 223.3 MB / 240.3 MB, free: 5.355 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.805/2.805, allocations: 462.7 MB / 0.7364 GB, free: 284 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0004069/0.0004069, allocations: 8.688 kB / 0.9028 GB, free: 36.68 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4134/0.4139, allocations: 159.6 MB / 1.059 GB, free: 5.48 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.001625/0.4156, allocations: 1.018 MB / 1.06 GB, free: 4.449 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001187/0.4168, allocations: 0.6268 MB / 1.06 GB, free: 3.82 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.26e-05/0.4168, allocations: 0 / 1.06 GB, free: 3.82 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.022e-05/0.4168, allocations: 0 / 1.06 GB, free: 3.82 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.213e-05/0.4169, allocations: 7.922 kB / 1.06 GB, free: 3.812 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.00056/0.4175, allocations: 131.6 kB / 1.06 GB, free: 3.684 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.179e-05/0.4175, allocations: 23.92 kB / 1.06 GB, free: 3.66 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 5.484e-05/0.4176, allocations: 0 / 1.06 GB, free: 3.66 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.27e-05/0.4176, allocations: 23.91 kB / 1.06 GB, free: 3.637 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.605e-05/0.4177, allocations: 11.94 kB / 1.06 GB, free: 3.625 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.604e-05/0.4177, allocations: 4 kB / 1.06 GB, free: 3.621 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000563/0.4183, allocations: 343.3 kB / 1.061 GB, free: 3.285 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.844e-05/0.4183, allocations: 4 kB / 1.061 GB, free: 3.281 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 5.198e-05/0.4184, allocations: 41.64 kB / 1.061 GB, free: 3.234 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003209/0.4187, allocations: 151.9 kB / 1.061 GB, free: 3.086 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 7.304e-06/0.4187, allocations: 4 kB / 1.061 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.623e-06/0.4187, allocations: 0 / 1.061 GB, free: 3.082 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.422e-06/0.4188, allocations: 0 / 1.061 GB, free: 3.082 MB / 0.8106 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.0005311/0.4193, allocations: 367.4 kB / 1.061 GB, free: 2.672 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.947e-05/0.4193, allocations: 8.031 kB / 1.061 GB, free: 2.664 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.672e-05/0.4194, allocations: 4.938 kB / 1.061 GB, free: 2.66 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001451/0.4196, allocations: 164.3 kB / 1.061 GB, free: 2.461 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.373e-05/0.4196, allocations: 4.375 kB / 1.061 GB, free: 2.457 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.664e-05/0.4196, allocations: 12.31 kB / 1.062 GB, free: 2.445 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001655/0.4198, allocations: 50.23 kB / 1.062 GB, free: 2.391 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.217e-05/0.4198, allocations: 4.125 kB / 1.062 GB, free: 2.387 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.468e-05/0.4198, allocations: 3.938 kB / 1.062 GB, free: 2.383 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.15e-06/0.4198, allocations: 0 / 1.062 GB, free: 2.383 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.103e-05/0.4199, allocations: 19.98 kB / 1.062 GB, free: 2.363 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002488/0.4202, allocations: 165.6 kB / 1.062 GB, free: 2.152 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001263/0.4203, allocations: 58.56 kB / 1.062 GB, free: 2.086 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.328e-05/0.4204, allocations: 36.84 kB / 1.062 GB, free: 2.047 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.81e-05/0.4204, allocations: 0 / 1.062 GB, free: 2.047 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.344e-05/0.4204, allocations: 42.67 kB / 1.062 GB, free: 1.996 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.162e-06/0.4204, allocations: 0 / 1.062 GB, free: 1.996 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.001276/0.4217, allocations: 0.5877 MB / 1.062 GB, free: 1.316 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.183e-05/0.4218, allocations: 55.41 kB / 1.063 GB, free: 1.25 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.679e-05/0.4219, allocations: 97.84 kB / 1.063 GB, free: 1.145 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 2.052e-05/0.4219, allocations: 29.7 kB / 1.063 GB, free: 1.109 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.035e-05/0.422, allocations: 88 kB / 1.063 GB, free: 1.02 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 5.724e-05/0.422, allocations: 43.3 kB / 1.063 GB, free: 0.9766 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.237e-05/0.4221, allocations: 21.83 kB / 1.063 GB, free: 0.9492 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001347/0.4222, allocations: 314.8 kB / 1.063 GB, free: 0.6328 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.487e-05/0.4222, allocations: 23.98 kB / 1.063 GB, free: 0.6094 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.025e-05/0.4223, allocations: 27.48 kB / 1.063 GB, free: 0.5859 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.577e-05/0.4224, allocations: 52.86 kB / 1.063 GB, free: 0.5312 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.51e-07/0.4224, allocations: 0 / 1.063 GB, free: 0.5312 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001597/0.4226, allocations: 105.5 kB / 1.063 GB, free: 432 kB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.745e-05/0.4226, allocations: 4.781 kB / 1.063 GB, free: 428 kB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.169e-06/0.4226, allocations: 0 / 1.063 GB, free: 428 kB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/0.4226, allocations: 4 kB / 1.063 GB, free: 424 kB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001017/0.4227, allocations: 20 kB / 1.063 GB, free: 404 kB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.43e-06/0.4227, allocations: 0 / 1.063 GB, free: 404 kB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.616e-05/0.4228, allocations: 4 kB / 1.063 GB, free: 400 kB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.636e-06/0.4228, allocations: 3.984 kB / 1.063 GB, free: 396 kB / 0.8106 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 9.593e-05/0.4229, allocations: 123.3 kB / 1.063 GB, free: 264 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.695e-05/0.4229, allocations: 11.84 kB / 1.063 GB, free: 252 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002008/0.4231, allocations: 101.6 kB / 1.064 GB, free: 144 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.4231, allocations: 96 / 1.064 GB, free: 144 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/0.4231, allocations: 11.94 kB / 1.064 GB, free: 132 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5e-06/0.4232, allocations: 3.984 kB / 1.064 GB, free: 128 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004526/0.4236, allocations: 346.5 kB / 1.064 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.447e-06/0.4236, allocations: 3.984 kB / 1.064 GB, free: 15.72 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001099/0.4237, allocations: 24 kB / 1.064 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.4238, allocations: 0 / 1.064 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.165e-06/0.4238, allocations: 0 / 1.064 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.4238, allocations: 0 / 1.064 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.4238, allocations: 0 / 1.064 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002659/0.4241, allocations: 227.3 kB / 1.064 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.13e-05/0.4241, allocations: 77.11 kB / 1.064 GB, free: 15.37 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.756e-05/0.4241, allocations: 4.031 kB / 1.064 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.788e-05/0.4242, allocations: 4 kB / 1.064 GB, free: 15.36 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.904e-05/0.4243, allocations: 11.92 kB / 1.064 GB, free: 15.35 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.428e-06/0.4243, allocations: 8 kB / 1.064 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.778e-05/0.4243, allocations: 75.34 kB / 1.064 GB, free: 15.27 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.31e-07/0.4243, allocations: 4.094 kB / 1.064 GB, free: 15.26 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002724/0.4246, allocations: 35.98 kB / 1.064 GB, free: 15.23 MB / 0.8262 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.0002311/0.4248, allocations: 137.5 kB / 1.064 GB, free: 15.09 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001555/0.425, allocations: 71.84 kB / 1.065 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.425, allocations: 0 / 1.065 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 4.991e-05/0.4251, allocations: 31.94 kB / 1.065 GB, free: 14.99 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002264/0.4253, allocations: 7.984 kB / 1.065 GB, free: 14.98 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006398/0.4259, allocations: 344.4 kB / 1.065 GB, free: 14.61 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003105/0.4263, allocations: 0.6809 MB / 1.066 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.923e-05/0.4263, allocations: 15.98 kB / 1.066 GB, free: 13.89 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.48e-05/0.4263, allocations: 15.38 kB / 1.066 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of SimCode: time 3.41e-07/0.4263, allocations: 0 / 1.066 GB, free: 13.88 MB / 0.8262 GB Notification: Performance of Templates: time 0.003598/0.43, allocations: 0.913 MB / 1.066 GB, free: 13 MB / 0.8262 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/jenkins/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