Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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_dp_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001105/0.001105, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001198/0.001198, allocations: 191.3 kB / 16.25 MB, free: 6.645 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.382/1.382, allocations: 222.9 MB / 239.9 MB, free: 4.535 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.614/2.614, allocations: 437 MB / 0.71 GB, free: 5.316 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001358/0.001358, allocations: 63.89 kB / 0.8687 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6991/0.7005, allocations: 151.6 MB / 1.017 GB, free: 2.742 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002514/0.7031, allocations: 1.335 MB / 1.018 GB, free: 1.395 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001067/0.7042, allocations: 0.6034 MB / 1.019 GB, free: 0.7891 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.174e-05/0.7042, allocations: 8 kB / 1.019 GB, free: 0.7812 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.683e-05/0.7042, allocations: 0 / 1.019 GB, free: 0.7812 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.139e-05/0.7043, allocations: 3.938 kB / 1.019 GB, free: 0.7773 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005265/0.7048, allocations: 131.6 kB / 1.019 GB, free: 0.6484 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 4.421e-05/0.7049, allocations: 11.94 kB / 1.019 GB, free: 0.6367 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 3.165e-05/0.7049, allocations: 4 kB / 1.019 GB, free: 0.6328 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 3.488e-05/0.7049, allocations: 15.92 kB / 1.019 GB, free: 0.6172 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.849e-05/0.705, allocations: 7.984 kB / 1.019 GB, free: 0.6094 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.348e-05/0.705, allocations: 4 kB / 1.019 GB, free: 0.6055 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004594/0.7055, allocations: 343.3 kB / 1.019 GB, free: 276 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.421e-05/0.7055, allocations: 3.938 kB / 1.019 GB, free: 272 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.876e-05/0.7055, allocations: 11.98 kB / 1.019 GB, free: 260 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0002444/0.7058, allocations: 149.6 kB / 1.019 GB, free: 112 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.7058, allocations: 3.938 kB / 1.019 GB, free: 108 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.483e-06/0.7058, allocations: 0 / 1.019 GB, free: 108 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 6.683e-06/0.7058, allocations: 0 / 1.019 GB, free: 108 kB / 0.7637 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.0004828/0.7063, allocations: 359.4 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.759e-05/0.7064, allocations: 16.03 kB / 1.02 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.897e-05/0.7064, allocations: 4.875 kB / 1.02 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001319/0.7065, allocations: 164.3 kB / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.016e-05/0.7066, allocations: 4.375 kB / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.541e-05/0.7066, allocations: 4.281 kB / 1.02 GB, free: 15.48 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001174/0.7067, allocations: 46.19 kB / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.805e-06/0.7067, allocations: 192 / 1.02 GB, free: 15.43 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.242e-05/0.7067, allocations: 3.938 kB / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.7068, allocations: 0 / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.256e-05/0.7068, allocations: 15.98 kB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001793/0.707, allocations: 157.7 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001834/0.7072, allocations: 46.55 kB / 1.02 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.589e-05/0.7072, allocations: 16.86 kB / 1.02 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.115e-05/0.7072, allocations: 3.938 kB / 1.02 GB, free: 15.12 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.514e-05/0.7073, allocations: 30.56 kB / 1.02 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 9.82e-07/0.7073, allocations: 4 kB / 1.02 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.0006959/0.708, allocations: 322.3 kB / 1.02 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.792e-05/0.708, allocations: 51.41 kB / 1.021 GB, free: 14.65 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.957e-05/0.7081, allocations: 93.86 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.763e-05/0.7081, allocations: 29.7 kB / 1.021 GB, free: 14.52 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.94e-05/0.7082, allocations: 80.14 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.096e-05/0.7082, allocations: 23.64 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.37e-05/0.7083, allocations: 17.72 kB / 1.021 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001217/0.7084, allocations: 322.8 kB / 1.021 GB, free: 14.06 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.755e-05/0.7084, allocations: 11.98 kB / 1.021 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.934e-05/0.7084, allocations: 8 kB / 1.021 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.747e-05/0.7085, allocations: 36.8 kB / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.41e-07/0.7085, allocations: 0 / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.201e-05/0.7086, allocations: 61.69 kB / 1.021 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.472e-05/0.7086, allocations: 7.938 kB / 1.021 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.069e-06/0.7086, allocations: 0 / 1.021 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.073e-05/0.7087, allocations: 0 / 1.021 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.237e-05/0.7087, allocations: 19.98 kB / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.851e-06/0.7087, allocations: 0 / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.818e-05/0.7088, allocations: 4 kB / 1.021 GB, free: 13.91 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.99e-06/0.7088, allocations: 0 / 1.021 GB, free: 13.91 MB / 0.7794 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 8.334e-05/0.7089, allocations: 118.2 kB / 1.021 GB, free: 13.78 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.454e-05/0.7089, allocations: 15.78 kB / 1.021 GB, free: 13.77 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001415/0.7091, allocations: 73.64 kB / 1.021 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.543e-06/0.7091, allocations: 0 / 1.021 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.7091, allocations: 0 / 1.021 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.946e-06/0.7091, allocations: 4 kB / 1.021 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004771/0.7096, allocations: 315.3 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.7096, allocations: 192 / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.772e-05/0.7097, allocations: 19.98 kB / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.883e-06/0.7097, allocations: 0 / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.975e-06/0.7097, allocations: 0 / 1.022 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.596e-06/0.7097, allocations: 4 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.7097, allocations: 0 / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002976/0.71, allocations: 180.3 kB / 1.022 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.968e-05/0.7101, allocations: 93.03 kB / 1.022 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.439e-05/0.7101, allocations: 0 / 1.022 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.347e-05/0.7102, allocations: 0 / 1.022 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.447e-05/0.7102, allocations: 8.5 kB / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.171e-06/0.7102, allocations: 4 kB / 1.022 GB, free: 12.98 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.183e-05/0.7103, allocations: 83.27 kB / 1.022 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.51e-07/0.7103, allocations: 4.062 kB / 1.022 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002478/0.7105, allocations: 20 kB / 1.022 GB, free: 12.87 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (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 (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.0002191/0.7107, allocations: 119.2 kB / 1.022 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001203/0.7109, allocations: 40.16 kB / 1.022 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.7109, allocations: 0 / 1.022 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 3.552e-05/0.7109, allocations: 23.92 kB / 1.022 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002439/0.7112, allocations: 9.906 kB / 1.022 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004435/0.7116, allocations: 204.6 kB / 1.023 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003089/0.712, allocations: 0.6846 MB / 1.023 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.232e-05/0.712, allocations: 8.141 kB / 1.023 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.681e-05/0.712, allocations: 11.44 kB / 1.023 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of SimCode: time 2.2e-07/0.712, allocations: 0 / 1.023 GB, free: 11.71 MB / 0.7794 GB Notification: Performance of Templates: time 0.003326/0.7154, allocations: 0.642 MB / 1.024 GB, free: 11.11 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.makefile (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & ./Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches