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.01333/0.01332, allocations: 101.3 kB / 15.73 MB, free: 6.051 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.002075/0.002075, allocations: 190.3 kB / 16.67 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: 15.13 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.558/2.558, allocations: 437 MB / 0.7105 GB, free: 4.402 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001275/0.001275, allocations: 63.91 kB / 1.019 GB, free: 9.387 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8834/0.8847, allocations: 151.6 MB / 1.167 GB, free: 3.98 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002188/0.8869, allocations: 1.266 MB / 1.168 GB, free: 2.707 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001008/0.8879, allocations: 0.6173 MB / 1.168 GB, free: 2.09 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.322e-05/0.888, allocations: 4 kB / 1.168 GB, free: 2.086 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 1.597e-05/0.888, allocations: 0 / 1.168 GB, free: 2.086 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 4.476e-05/0.8881, allocations: 7.922 kB / 1.168 GB, free: 2.078 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.000608/0.8887, allocations: 148.6 kB / 1.169 GB, free: 1.934 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 5.997e-05/0.8887, allocations: 19.88 kB / 1.169 GB, free: 1.914 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 4.213e-05/0.8888, allocations: 7.984 kB / 1.169 GB, free: 1.906 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 3.678e-05/0.8888, allocations: 11.94 kB / 1.169 GB, free: 1.895 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 5.065e-05/0.8889, allocations: 4 kB / 1.169 GB, free: 1.891 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.07e-05/0.8889, allocations: 0 / 1.169 GB, free: 1.891 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005306/0.8894, allocations: 343.3 kB / 1.169 GB, free: 1.555 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.331e-05/0.8895, allocations: 7.984 kB / 1.169 GB, free: 1.547 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.503e-05/0.8895, allocations: 11.94 kB / 1.169 GB, free: 1.535 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002704/0.8898, allocations: 152.5 kB / 1.169 GB, free: 1.387 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 2.655e-06/0.8898, allocations: 0 / 1.169 GB, free: 1.387 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.152e-06/0.8898, allocations: 0 / 1.169 GB, free: 1.387 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 4.328e-06/0.8898, allocations: 0 / 1.169 GB, free: 1.387 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.0004263/0.8902, allocations: 363.1 kB / 1.169 GB, free: 0.9805 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.8903, allocations: 8.031 kB / 1.169 GB, free: 0.9727 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.261e-05/0.8903, allocations: 4.938 kB / 1.169 GB, free: 0.9688 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001259/0.8904, allocations: 164.3 kB / 1.17 GB, free: 0.7695 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.248e-06/0.8905, allocations: 384 / 1.17 GB, free: 0.7695 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.086e-05/0.8905, allocations: 4.375 kB / 1.17 GB, free: 0.7656 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.402e-05/0.8906, allocations: 46.25 kB / 1.17 GB, free: 0.7148 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.853e-06/0.8906, allocations: 192 / 1.17 GB, free: 0.7148 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.131e-05/0.8906, allocations: 3.938 kB / 1.17 GB, free: 0.7109 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.478e-06/0.8906, allocations: 3.938 kB / 1.17 GB, free: 0.707 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.565e-05/0.8907, allocations: 15.92 kB / 1.17 GB, free: 0.6914 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001674/0.8908, allocations: 157.7 kB / 1.17 GB, free: 500 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001749/0.891, allocations: 46.55 kB / 1.17 GB, free: 444 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.3e-05/0.8911, allocations: 24.86 kB / 1.17 GB, free: 416 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 1.692e-05/0.8911, allocations: 0 / 1.17 GB, free: 416 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.344e-05/0.8911, allocations: 30.56 kB / 1.17 GB, free: 376 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=4): time 8.81e-07/0.8911, allocations: 0 / 1.17 GB, free: 376 kB / 0.8887 GB Notification: Performance of matching and sorting (n=6): time 0.0006169/0.8918, allocations: 318.2 kB / 1.17 GB, free: 4 kB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.616e-05/0.8918, allocations: 51.41 kB / 1.17 GB, free: 15.94 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.765e-05/0.8919, allocations: 97.86 kB / 1.17 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.276e-05/0.8919, allocations: 25.7 kB / 1.17 GB, free: 15.8 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 3.903e-05/0.892, allocations: 84.14 kB / 1.171 GB, free: 15.72 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.454e-05/0.892, allocations: 23.83 kB / 1.171 GB, free: 15.7 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.493e-05/0.8921, allocations: 17.72 kB / 1.171 GB, free: 15.67 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001086/0.8922, allocations: 322.8 kB / 1.171 GB, free: 15.35 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.588e-05/0.8922, allocations: 8 kB / 1.171 GB, free: 15.34 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.426e-05/0.8922, allocations: 8 kB / 1.171 GB, free: 15.33 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.752e-05/0.8923, allocations: 44.98 kB / 1.171 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.262e-06/0.8923, allocations: 3.938 kB / 1.171 GB, free: 15.28 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001145/0.8924, allocations: 65.59 kB / 1.171 GB, free: 15.21 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.744e-05/0.8925, allocations: 11.92 kB / 1.171 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-06/0.8925, allocations: 0 / 1.171 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.705e-05/0.8925, allocations: 0 / 1.171 GB, free: 15.2 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.475e-05/0.8926, allocations: 12 kB / 1.171 GB, free: 15.19 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.181e-06/0.8926, allocations: 0 / 1.171 GB, free: 15.19 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.111e-05/0.8926, allocations: 4 kB / 1.171 GB, free: 15.18 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.592e-06/0.8926, allocations: 0 / 1.171 GB, free: 15.18 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 8.576e-05/0.8927, allocations: 113.8 kB / 1.171 GB, free: 15.06 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.508e-05/0.8927, allocations: 3.938 kB / 1.171 GB, free: 15.06 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001803/0.8929, allocations: 85.52 kB / 1.171 GB, free: 14.96 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.8929, allocations: 0 / 1.171 GB, free: 14.96 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.1e-06/0.8929, allocations: 0 / 1.171 GB, free: 14.96 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.787e-06/0.8929, allocations: 0 / 1.171 GB, free: 14.96 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003879/0.8933, allocations: 315.5 kB / 1.172 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.474e-06/0.8934, allocations: 4 kB / 1.172 GB, free: 14.59 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.894e-05/0.8934, allocations: 23.95 kB / 1.172 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.8934, allocations: 0 / 1.172 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.213e-06/0.8935, allocations: 0 / 1.172 GB, free: 14.57 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.978e-06/0.8935, allocations: 4 kB / 1.172 GB, free: 14.56 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.8935, allocations: 0 / 1.172 GB, free: 14.56 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000192/0.8937, allocations: 180.3 kB / 1.172 GB, free: 14.37 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.737e-05/0.8937, allocations: 81.14 kB / 1.172 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.445e-05/0.8938, allocations: 12 kB / 1.172 GB, free: 14.26 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.229e-05/0.8938, allocations: 3.984 kB / 1.172 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.696e-05/0.8939, allocations: 4 kB / 1.172 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.574e-06/0.8939, allocations: 4.516 kB / 1.172 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 4.008e-05/0.8939, allocations: 75.28 kB / 1.172 GB, free: 14.17 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8939, allocations: 0 / 1.172 GB, free: 14.17 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002554/0.8942, allocations: 23.94 kB / 1.172 GB, free: 14.15 MB / 0.9044 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.0002033/0.8944, allocations: 119.2 kB / 1.172 GB, free: 14.02 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001215/0.8945, allocations: 43.92 kB / 1.172 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.8945, allocations: 0 / 1.172 GB, free: 13.98 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 3.181e-05/0.8946, allocations: 16 kB / 1.172 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002224/0.8948, allocations: 4.078 kB / 1.172 GB, free: 13.96 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004091/0.8952, allocations: 204 kB / 1.172 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000235/0.8955, allocations: 0.6807 MB / 1.173 GB, free: 13.03 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 2.978e-05/0.8955, allocations: 4.25 kB / 1.173 GB, free: 13.02 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.357e-05/0.8955, allocations: 11.44 kB / 1.173 GB, free: 13.02 MB / 0.9044 GB Notification: Performance of SimCode: time 2.5e-07/0.8955, allocations: 4 kB / 1.173 GB, free: 13.01 MB / 0.9044 GB Notification: Performance of Templates: time 0.002881/0.8984, allocations: 0.6386 MB / 1.174 GB, free: 12.41 MB / 0.9044 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