Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp",fileNamePrefix="Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp",fileNamePrefix="Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001723/0.001723, allocations: 110.4 kB / 16.41 MB, free: 6.496 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.001959/0.001959, allocations: 189.2 kB / 17.34 MB, free: 5.762 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.539/1.539, allocations: 222.9 MB / 241.1 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.692/2.692, allocations: 437.1 MB / 0.7112 GB, free: 4.41 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001947/0.001947, allocations: 68.11 kB / 1.019 GB, free: 9.445 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9689/0.9709, allocations: 151.6 MB / 1.167 GB, free: 4.051 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002517/0.9734, allocations: 1.281 MB / 1.169 GB, free: 2.762 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.00111/0.9745, allocations: 0.6096 MB / 1.169 GB, free: 2.152 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.016e-05/0.9746, allocations: 0 / 1.169 GB, free: 2.152 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.174e-05/0.9746, allocations: 3.938 kB / 1.169 GB, free: 2.148 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 3.779e-05/0.9747, allocations: 3.938 kB / 1.169 GB, free: 2.145 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005703/0.9753, allocations: 157 kB / 1.169 GB, free: 1.992 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 7.482e-05/0.9753, allocations: 19.86 kB / 1.169 GB, free: 1.973 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 4.492e-05/0.9754, allocations: 7.984 kB / 1.169 GB, free: 1.965 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 4.82e-05/0.9754, allocations: 11.94 kB / 1.169 GB, free: 1.953 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 5.693e-05/0.9755, allocations: 7.969 kB / 1.169 GB, free: 1.945 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.33e-05/0.9755, allocations: 4 kB / 1.169 GB, free: 1.941 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000541/0.9761, allocations: 339.3 kB / 1.17 GB, free: 1.609 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.694e-05/0.9761, allocations: 11.94 kB / 1.17 GB, free: 1.598 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.596e-05/0.9761, allocations: 7.984 kB / 1.17 GB, free: 1.59 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002904/0.9764, allocations: 148.5 kB / 1.17 GB, free: 1.445 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.9764, allocations: 0 / 1.17 GB, free: 1.445 MB / 0.8887 GB Notification: Performance of FrontEnd: time 4.028e-06/0.9764, allocations: 0 / 1.17 GB, free: 1.445 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 6.091e-06/0.9765, allocations: 3.938 kB / 1.17 GB, free: 1.441 MB / 0.8887 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0005602/0.977, allocations: 359.1 kB / 1.17 GB, free: 1.039 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.601e-05/0.9771, allocations: 8.922 kB / 1.17 GB, free: 1.031 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.902e-05/0.9771, allocations: 4.938 kB / 1.17 GB, free: 1.027 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001859/0.9773, allocations: 168.3 kB / 1.17 GB, free: 0.8242 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.256e-05/0.9773, allocations: 384 / 1.17 GB, free: 0.8242 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.997e-05/0.9774, allocations: 16.31 kB / 1.17 GB, free: 0.8086 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001322/0.9775, allocations: 42.25 kB / 1.17 GB, free: 0.7617 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.9775, allocations: 192 / 1.17 GB, free: 0.7617 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.38e-05/0.9775, allocations: 3.938 kB / 1.17 GB, free: 0.7578 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.9775, allocations: 0 / 1.17 GB, free: 0.7578 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.993e-05/0.9776, allocations: 4 kB / 1.17 GB, free: 0.7539 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002324/0.9778, allocations: 165.6 kB / 1.171 GB, free: 0.543 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002107/0.978, allocations: 42.61 kB / 1.171 GB, free: 0.4922 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.535e-05/0.9781, allocations: 20.94 kB / 1.171 GB, free: 480 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.318e-05/0.9781, allocations: 0 / 1.171 GB, free: 480 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.36e-05/0.9782, allocations: 30.56 kB / 1.171 GB, free: 440 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=4): time 1.052e-06/0.9782, allocations: 0 / 1.171 GB, free: 440 kB / 0.8887 GB Notification: Performance of matching and sorting (n=6): time 0.0007625/0.9789, allocations: 318.2 kB / 1.171 GB, free: 68 kB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.938e-05/0.979, allocations: 55.34 kB / 1.171 GB, free: 0 / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001137/0.9791, allocations: 102.2 kB / 1.171 GB, free: 15.89 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.15e-05/0.9791, allocations: 29.7 kB / 1.171 GB, free: 15.86 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 4.302e-05/0.9792, allocations: 80.14 kB / 1.171 GB, free: 15.77 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.759e-05/0.9792, allocations: 19.86 kB / 1.171 GB, free: 15.75 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.887e-05/0.9793, allocations: 21.7 kB / 1.171 GB, free: 15.73 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.00017/0.9795, allocations: 318.8 kB / 1.172 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.828e-05/0.9795, allocations: 8 kB / 1.172 GB, free: 15.4 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.429e-05/0.9795, allocations: 11.98 kB / 1.172 GB, free: 15.39 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.719e-05/0.9796, allocations: 36.86 kB / 1.172 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.9796, allocations: 0 / 1.172 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001049/0.9797, allocations: 61.83 kB / 1.172 GB, free: 15.28 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.873e-05/0.9797, allocations: 11.94 kB / 1.172 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.561e-06/0.9798, allocations: 3.938 kB / 1.172 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.672e-05/0.9798, allocations: 0 / 1.172 GB, free: 15.27 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.065e-05/0.9798, allocations: 24.03 kB / 1.172 GB, free: 15.24 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.9799, allocations: 4 kB / 1.172 GB, free: 15.24 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.767e-05/0.9799, allocations: 0 / 1.172 GB, free: 15.24 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.681e-06/0.9799, allocations: 0 / 1.172 GB, free: 15.24 MB / 0.9044 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 (7): * Single equations (assignments): 7 * 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.0001056/0.98, allocations: 117.8 kB / 1.172 GB, free: 15.11 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.211e-05/0.98, allocations: 3.938 kB / 1.172 GB, free: 15.11 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001584/0.9802, allocations: 77.75 kB / 1.172 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.152e-06/0.9802, allocations: 4 kB / 1.172 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.108e-06/0.9802, allocations: 3.938 kB / 1.172 GB, free: 15.01 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.357e-06/0.9802, allocations: 0 / 1.172 GB, free: 15.01 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004129/0.9806, allocations: 311.4 kB / 1.172 GB, free: 14.65 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.9806, allocations: 0 / 1.172 GB, free: 14.65 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.563e-05/0.9807, allocations: 19.97 kB / 1.172 GB, free: 14.63 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.9807, allocations: 0 / 1.172 GB, free: 14.63 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.1e-05/0.9807, allocations: 3.984 kB / 1.172 GB, free: 14.62 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.9807, allocations: 0 / 1.172 GB, free: 14.62 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.146e-06/0.9808, allocations: 7.984 kB / 1.172 GB, free: 14.62 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002158/0.981, allocations: 176.3 kB / 1.172 GB, free: 14.43 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 6.663e-05/0.981, allocations: 89.12 kB / 1.173 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.286e-05/0.9811, allocations: 4.062 kB / 1.173 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.271e-05/0.9811, allocations: 0 / 1.173 GB, free: 14.32 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.535e-05/0.9812, allocations: 7.938 kB / 1.173 GB, free: 14.31 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.668e-06/0.9812, allocations: 0 / 1.173 GB, free: 14.31 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 6.132e-05/0.9813, allocations: 87.27 kB / 1.173 GB, free: 14.22 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.2e-07/0.9813, allocations: 0 / 1.173 GB, free: 14.22 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002601/0.9815, allocations: 19.94 kB / 1.173 GB, free: 14.2 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (dp_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 (6): * Single equations (assignments): 6 * 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.0001971/0.9817, allocations: 115.4 kB / 1.173 GB, free: 14.08 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001221/0.9819, allocations: 39.98 kB / 1.173 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.9819, allocations: 7.938 kB / 1.173 GB, free: 14.04 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 3.137e-05/0.9819, allocations: 15.94 kB / 1.173 GB, free: 14.02 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002306/0.9822, allocations: 18.42 kB / 1.173 GB, free: 14 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004635/0.9826, allocations: 196 kB / 1.173 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003346/0.983, allocations: 0.6807 MB / 1.174 GB, free: 13.08 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 4.02e-05/0.983, allocations: 8.234 kB / 1.174 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.788e-05/0.983, allocations: 7.438 kB / 1.174 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of SimCode: time 2.7e-07/0.9831, allocations: 4 kB / 1.174 GB, free: 13.06 MB / 0.9044 GB Notification: Performance of Templates: time 0.003374/0.9864, allocations: 0.6522 MB / 1.174 GB, free: 12.45 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.makefile (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & ./Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches