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.00531/0.00531, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001159/0.001159, allocations: 201.8 kB / 16.68 MB, free: 5.969 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.409/1.409, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.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.583/2.583, allocations: 437 MB / 0.7105 GB, free: 5.012 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001237/0.001237, allocations: 63.89 kB / 1.019 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2939/0.2951, allocations: 151.6 MB / 1.167 GB, free: 6.793 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002684/0.2979, allocations: 1.277 MB / 1.168 GB, free: 5.504 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001209/0.2991, allocations: 0.6191 MB / 1.168 GB, free: 4.883 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.488e-05/0.2992, allocations: 0 / 1.168 GB, free: 4.883 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.58e-05/0.2992, allocations: 3.938 kB / 1.168 GB, free: 4.879 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 4.631e-05/0.2993, allocations: 0 / 1.168 GB, free: 4.879 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008301/0.3001, allocations: 155.4 kB / 1.169 GB, free: 4.727 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 8.746e-05/0.3002, allocations: 15.94 kB / 1.169 GB, free: 4.711 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 6.192e-05/0.3003, allocations: 0 / 1.169 GB, free: 4.711 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 5.187e-05/0.3003, allocations: 15.92 kB / 1.169 GB, free: 4.695 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 7.6e-05/0.3004, allocations: 11.92 kB / 1.169 GB, free: 4.684 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.842e-05/0.3004, allocations: 0 / 1.169 GB, free: 4.684 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006637/0.3011, allocations: 339.4 kB / 1.169 GB, free: 4.352 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.861e-05/0.3011, allocations: 4 kB / 1.169 GB, free: 4.348 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 3.695e-05/0.3012, allocations: 15.91 kB / 1.169 GB, free: 4.332 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0003656/0.3015, allocations: 151.5 kB / 1.169 GB, free: 4.184 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 3.386e-06/0.3016, allocations: 0 / 1.169 GB, free: 4.184 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.272e-06/0.3016, allocations: 0 / 1.169 GB, free: 4.184 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.38e-06/0.3016, allocations: 0 / 1.169 GB, free: 4.184 MB / 0.92 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.0004557/0.302, allocations: 363.1 kB / 1.169 GB, free: 3.777 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/0.3021, allocations: 8.031 kB / 1.169 GB, free: 3.77 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.015e-05/0.3021, allocations: 4.938 kB / 1.169 GB, free: 3.766 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001341/0.3023, allocations: 172.2 kB / 1.17 GB, free: 3.559 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.484e-05/0.3023, allocations: 4.375 kB / 1.17 GB, free: 3.555 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.739e-05/0.3023, allocations: 8.375 kB / 1.17 GB, free: 3.547 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001129/0.3024, allocations: 42.25 kB / 1.17 GB, free: 3.5 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.554e-06/0.3025, allocations: 192 / 1.17 GB, free: 3.5 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.349e-05/0.3025, allocations: 3.938 kB / 1.17 GB, free: 3.496 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.481e-06/0.3025, allocations: 4 kB / 1.17 GB, free: 3.492 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.855e-05/0.3025, allocations: 7.984 kB / 1.17 GB, free: 3.484 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001698/0.3027, allocations: 157.7 kB / 1.17 GB, free: 3.281 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001926/0.3029, allocations: 50.44 kB / 1.17 GB, free: 3.223 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.469e-05/0.303, allocations: 24.8 kB / 1.17 GB, free: 3.195 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 1.9e-05/0.303, allocations: 0 / 1.17 GB, free: 3.195 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.488e-05/0.303, allocations: 30.56 kB / 1.17 GB, free: 3.156 MB / 0.92 GB Notification: Performance of pre-optimization done (n=4): time 9.21e-07/0.303, allocations: 0 / 1.17 GB, free: 3.156 MB / 0.92 GB Notification: Performance of matching and sorting (n=6): time 0.0006131/0.3036, allocations: 310.7 kB / 1.17 GB, free: 2.801 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.312e-05/0.3037, allocations: 55.41 kB / 1.17 GB, free: 2.734 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.265e-05/0.3038, allocations: 101.8 kB / 1.17 GB, free: 2.625 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.715e-05/0.3038, allocations: 29.7 kB / 1.17 GB, free: 2.59 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 3.572e-05/0.3038, allocations: 80.14 kB / 1.171 GB, free: 2.508 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.734e-05/0.3039, allocations: 23.78 kB / 1.171 GB, free: 2.484 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.504e-05/0.3039, allocations: 17.72 kB / 1.171 GB, free: 2.461 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001146/0.3041, allocations: 318.8 kB / 1.171 GB, free: 2.141 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.23e-05/0.3041, allocations: 15.98 kB / 1.171 GB, free: 2.125 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.243e-05/0.3041, allocations: 8 kB / 1.171 GB, free: 2.117 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.808e-05/0.3042, allocations: 32.86 kB / 1.171 GB, free: 2.082 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.71e-07/0.3042, allocations: 0 / 1.171 GB, free: 2.082 MB / 0.92 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001074/0.3043, allocations: 69.78 kB / 1.171 GB, free: 2.008 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 2.645e-05/0.3043, allocations: 7.938 kB / 1.171 GB, free: 2 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.3044, allocations: 4 kB / 1.171 GB, free: 1.996 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.3044, allocations: 0 / 1.171 GB, free: 1.996 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.917e-05/0.3044, allocations: 19.92 kB / 1.171 GB, free: 1.977 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.632e-06/0.3045, allocations: 0 / 1.171 GB, free: 1.977 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.751e-05/0.3045, allocations: 0 / 1.171 GB, free: 1.977 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.881e-06/0.3045, allocations: 4 kB / 1.171 GB, free: 1.973 MB / 0.92 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 7.855e-05/0.3046, allocations: 113.8 kB / 1.171 GB, free: 1.852 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.609e-05/0.3046, allocations: 7.938 kB / 1.171 GB, free: 1.844 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001632/0.3048, allocations: 69.64 kB / 1.171 GB, free: 1.762 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.3048, allocations: 0 / 1.171 GB, free: 1.762 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.721e-06/0.3048, allocations: 0 / 1.171 GB, free: 1.762 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.3048, allocations: 4 kB / 1.171 GB, free: 1.758 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003359/0.3051, allocations: 315.5 kB / 1.172 GB, free: 1.391 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.3052, allocations: 4 kB / 1.172 GB, free: 1.387 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.729e-05/0.3052, allocations: 23.89 kB / 1.172 GB, free: 1.363 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.45e-06/0.3052, allocations: 4 kB / 1.172 GB, free: 1.359 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.125e-06/0.3053, allocations: 0 / 1.172 GB, free: 1.359 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.058e-06/0.3053, allocations: 0 / 1.172 GB, free: 1.359 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.3053, allocations: 3.938 kB / 1.172 GB, free: 1.355 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002175/0.3055, allocations: 180.3 kB / 1.172 GB, free: 1.16 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 6.122e-05/0.3056, allocations: 85.09 kB / 1.172 GB, free: 1.059 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.646e-05/0.3056, allocations: 8.094 kB / 1.172 GB, free: 1.051 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.98e-05/0.3057, allocations: 0 / 1.172 GB, free: 1.051 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.793e-05/0.3057, allocations: 7.984 kB / 1.172 GB, free: 1.043 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.35e-06/0.3057, allocations: 0 / 1.172 GB, free: 1.043 MB / 0.92 GB Notification: Performance of sorting global known variables: time 3.753e-05/0.3058, allocations: 87.28 kB / 1.172 GB, free: 0.957 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.603e-06/0.3058, allocations: 0 / 1.172 GB, free: 0.957 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002482/0.306, allocations: 23.88 kB / 1.172 GB, free: 0.9336 MB / 0.92 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.0001983/0.3062, allocations: 119.1 kB / 1.172 GB, free: 0.8086 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0001112/0.3063, allocations: 35.98 kB / 1.172 GB, free: 0.7734 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.966e-06/0.3063, allocations: 0 / 1.172 GB, free: 0.7734 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 3.554e-05/0.3064, allocations: 23.92 kB / 1.172 GB, free: 0.75 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002263/0.3066, allocations: 17.7 kB / 1.172 GB, free: 0.7344 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004215/0.307, allocations: 200.4 kB / 1.172 GB, free: 0.5117 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002653/0.3073, allocations: 0.6845 MB / 1.173 GB, free: 15.8 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.294e-05/0.3074, allocations: 4.25 kB / 1.173 GB, free: 15.8 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.253e-05/0.3074, allocations: 11.44 kB / 1.173 GB, free: 15.79 MB / 0.9356 GB Notification: Performance of SimCode: time 4.9e-07/0.3074, allocations: 4 kB / 1.173 GB, free: 15.79 MB / 0.9356 GB Notification: Performance of Templates: time 0.002932/0.3103, allocations: 0.6529 MB / 1.174 GB, free: 15.17 MB / 0.9356 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 -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/jenkins/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