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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001155/0.001155, allocations: 115.8 kB / 16.37 MB, free: 6.012 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.00127/0.00127, allocations: 193.4 kB / 17.31 MB, free: 5.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.373/1.373, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.464/2.464, allocations: 437.1 MB / 0.7112 GB, free: 4.363 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.001261, allocations: 69.55 kB / 0.8707 GB, free: 1.461 MB / 0.6387 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3861/0.3874, allocations: 151.6 MB / 1.019 GB, free: 9.871 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002722/0.3901, allocations: 1.28 MB / 1.02 GB, free: 8.574 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001068/0.3912, allocations: 0.6125 MB / 1.021 GB, free: 7.961 MB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.781e-05/0.3913, allocations: 4 kB / 1.021 GB, free: 7.957 MB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 2.124e-05/0.3913, allocations: 3.938 kB / 1.021 GB, free: 7.953 MB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 4.399e-05/0.3914, allocations: 0 / 1.021 GB, free: 7.953 MB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.000539/0.3919, allocations: 153.8 kB / 1.021 GB, free: 7.805 MB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 6.905e-05/0.392, allocations: 19.92 kB / 1.021 GB, free: 7.785 MB / 0.795 GB Notification: Performance of NFFlatten.resolveConnections: time 5.13e-05/0.392, allocations: 4 kB / 1.021 GB, free: 7.781 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 3.671e-05/0.3921, allocations: 11.94 kB / 1.021 GB, free: 7.77 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 6.445e-05/0.3922, allocations: 19.91 kB / 1.021 GB, free: 7.75 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 1.307e-05/0.3922, allocations: 0 / 1.021 GB, free: 7.75 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005154/0.3927, allocations: 335.4 kB / 1.021 GB, free: 7.422 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 1.134e-05/0.3927, allocations: 4 kB / 1.021 GB, free: 7.418 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 3.204e-05/0.3927, allocations: 15.92 kB / 1.021 GB, free: 7.402 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.0002473/0.393, allocations: 143.6 kB / 1.021 GB, free: 7.262 MB / 0.795 GB Notification: Performance of FrontEnd - DAE generated: time 5.781e-06/0.393, allocations: 0 / 1.021 GB, free: 7.262 MB / 0.795 GB Notification: Performance of FrontEnd: time 2.013e-06/0.393, allocations: 0 / 1.021 GB, free: 7.262 MB / 0.795 GB Notification: Performance of Transformations before backend: time 5.501e-06/0.393, allocations: 0 / 1.021 GB, free: 7.262 MB / 0.795 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.0004453/0.3935, allocations: 367.3 kB / 1.022 GB, free: 6.852 MB / 0.795 GB Notification: Performance of prepare preOptimizeDAE: time 3.768e-05/0.3935, allocations: 8.625 kB / 1.022 GB, free: 6.844 MB / 0.795 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.877e-05/0.3936, allocations: 4.938 kB / 1.022 GB, free: 6.84 MB / 0.795 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001279/0.3937, allocations: 168.2 kB / 1.022 GB, free: 6.637 MB / 0.795 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.1e-05/0.3937, allocations: 384 / 1.022 GB, free: 6.637 MB / 0.795 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.191e-05/0.3937, allocations: 4.375 kB / 1.022 GB, free: 6.633 MB / 0.795 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001071/0.3938, allocations: 42.25 kB / 1.022 GB, free: 6.586 MB / 0.795 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.294e-06/0.3939, allocations: 192 / 1.022 GB, free: 6.586 MB / 0.795 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.979e-06/0.3939, allocations: 3.938 kB / 1.022 GB, free: 6.582 MB / 0.795 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.3939, allocations: 0 / 1.022 GB, free: 6.582 MB / 0.795 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.158e-05/0.3939, allocations: 15.98 kB / 1.022 GB, free: 6.566 MB / 0.795 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001826/0.3941, allocations: 157.7 kB / 1.022 GB, free: 6.363 MB / 0.795 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001931/0.3943, allocations: 46.55 kB / 1.022 GB, free: 6.309 MB / 0.795 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.61e-05/0.3944, allocations: 16.86 kB / 1.022 GB, free: 6.289 MB / 0.795 GB Notification: Performance of preOpt evalFunc (simulation): time 2.122e-05/0.3944, allocations: 96 / 1.022 GB, free: 6.289 MB / 0.795 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.379e-05/0.3944, allocations: 34.55 kB / 1.022 GB, free: 6.246 MB / 0.795 GB Notification: Performance of pre-optimization done (n=4): time 8.22e-07/0.3944, allocations: 4 kB / 1.022 GB, free: 6.242 MB / 0.795 GB Notification: Performance of matching and sorting (n=6): time 0.0006224/0.3951, allocations: 310.2 kB / 1.022 GB, free: 5.887 MB / 0.795 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.323e-05/0.3951, allocations: 55.41 kB / 1.023 GB, free: 5.82 MB / 0.795 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.408e-05/0.3952, allocations: 98.17 kB / 1.023 GB, free: 5.715 MB / 0.795 GB Notification: Performance of collectPreVariables (initialization): time 1.596e-05/0.3952, allocations: 25.7 kB / 1.023 GB, free: 5.684 MB / 0.795 GB Notification: Performance of collectInitialEqns (initialization): time 4.323e-05/0.3953, allocations: 92.02 kB / 1.023 GB, free: 5.59 MB / 0.795 GB Notification: Performance of collectInitialBindings (initialization): time 2.458e-05/0.3953, allocations: 15.72 kB / 1.023 GB, free: 5.574 MB / 0.795 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.465e-05/0.3953, allocations: 21.72 kB / 1.023 GB, free: 5.547 MB / 0.795 GB Notification: Performance of setup shared object (initialization): time 0.0001294/0.3955, allocations: 326.8 kB / 1.023 GB, free: 5.219 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.933e-05/0.3955, allocations: 4 kB / 1.023 GB, free: 5.215 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.193e-05/0.3955, allocations: 15.98 kB / 1.023 GB, free: 5.199 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.548e-05/0.3956, allocations: 32.86 kB / 1.023 GB, free: 5.164 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.01e-07/0.3956, allocations: 0 / 1.023 GB, free: 5.164 MB / 0.795 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001042/0.3957, allocations: 61.88 kB / 1.023 GB, free: 5.098 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.3957, allocations: 7.938 kB / 1.023 GB, free: 5.09 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.578e-06/0.3957, allocations: 240 / 1.023 GB, free: 5.09 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.3957, allocations: 7.984 kB / 1.023 GB, free: 5.082 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.115e-05/0.3958, allocations: 15.94 kB / 1.023 GB, free: 5.066 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.15e-05/0.3958, allocations: 3.984 kB / 1.023 GB, free: 5.062 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.132e-05/0.3958, allocations: 4 kB / 1.023 GB, free: 5.059 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.461e-06/0.3958, allocations: 0 / 1.023 GB, free: 5.059 MB / 0.795 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.579e-05/0.3959, allocations: 114.5 kB / 1.023 GB, free: 4.938 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.279e-05/0.3959, allocations: 7.906 kB / 1.023 GB, free: 4.93 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001513/0.3961, allocations: 77.66 kB / 1.023 GB, free: 4.844 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.3961, allocations: 4 kB / 1.023 GB, free: 4.84 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.097e-06/0.3961, allocations: 0 / 1.023 GB, free: 4.84 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.386e-06/0.3961, allocations: 0 / 1.023 GB, free: 4.84 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003471/0.3965, allocations: 319.3 kB / 1.024 GB, free: 4.469 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.442e-06/0.3965, allocations: 0 / 1.024 GB, free: 4.469 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.129e-05/0.3966, allocations: 15.94 kB / 1.024 GB, free: 4.453 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.3966, allocations: 0 / 1.024 GB, free: 4.453 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.203e-06/0.3966, allocations: 0 / 1.024 GB, free: 4.453 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.276e-06/0.3966, allocations: 4 kB / 1.024 GB, free: 4.449 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.3966, allocations: 0 / 1.024 GB, free: 4.449 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001885/0.3968, allocations: 180.4 kB / 1.024 GB, free: 4.254 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 6.219e-05/0.3969, allocations: 85.05 kB / 1.024 GB, free: 4.152 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.665e-05/0.3969, allocations: 7.984 kB / 1.024 GB, free: 4.145 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.805e-05/0.397, allocations: 0 / 1.024 GB, free: 4.145 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.786e-05/0.397, allocations: 4 kB / 1.024 GB, free: 4.141 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.354e-06/0.397, allocations: 4 kB / 1.024 GB, free: 4.137 MB / 0.795 GB Notification: Performance of sorting global known variables: time 3.771e-05/0.397, allocations: 79.34 kB / 1.024 GB, free: 4.059 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.343e-06/0.397, allocations: 3.938 kB / 1.024 GB, free: 4.055 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002405/0.3973, allocations: 35.86 kB / 1.024 GB, free: 4.02 MB / 0.795 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.0001942/0.3975, allocations: 115.2 kB / 1.024 GB, free: 3.895 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 0.0001054/0.3976, allocations: 35.98 kB / 1.024 GB, free: 3.859 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.3976, allocations: 0 / 1.024 GB, free: 3.859 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 2.708e-05/0.3976, allocations: 15.94 kB / 1.024 GB, free: 3.844 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002313/0.3979, allocations: 16.55 kB / 1.024 GB, free: 3.828 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000423/0.3983, allocations: 192.5 kB / 1.024 GB, free: 3.613 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002903/0.3986, allocations: 0.6884 MB / 1.025 GB, free: 2.898 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 2.793e-05/0.3987, allocations: 4 kB / 1.025 GB, free: 2.895 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.834e-05/0.3987, allocations: 7.438 kB / 1.025 GB, free: 2.891 MB / 0.795 GB Notification: Performance of SimCode: time 2.2e-07/0.3987, allocations: 0 / 1.025 GB, free: 2.891 MB / 0.795 GB Notification: Performance of Templates: time 0.002843/0.4015, allocations: 0.6283 MB / 1.026 GB, free: 2.297 MB / 0.795 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 -s cvode -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/jenkins1/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