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.001668/0.001669, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001724/0.001724, allocations: 193.3 kB / 16.53 MB, free: 6.391 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.543/1.543, allocations: 222.9 MB / 240.2 MB, free: 4.391 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.929/2.929, allocations: 437 MB / 0.7104 GB, free: 5.078 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00195/0.00195, allocations: 71.88 kB / 0.8692 GB, free: 4.617 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6836/0.6855, allocations: 151.6 MB / 1.017 GB, free: 2.48 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002459/0.688, allocations: 1.277 MB / 1.019 GB, free: 1.191 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001087/0.6891, allocations: 0.6111 MB / 1.019 GB, free: 0.5781 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.838e-05/0.6892, allocations: 0 / 1.019 GB, free: 0.5781 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.458e-05/0.6892, allocations: 0 / 1.019 GB, free: 0.5781 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.137e-05/0.6892, allocations: 7.922 kB / 1.019 GB, free: 0.5703 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005158/0.6898, allocations: 143 kB / 1.019 GB, free: 444 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 5.592e-05/0.6898, allocations: 19.94 kB / 1.019 GB, free: 424 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 3.925e-05/0.6899, allocations: 11.97 kB / 1.019 GB, free: 412 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 3.603e-05/0.6899, allocations: 7.938 kB / 1.019 GB, free: 404 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.508e-05/0.69, allocations: 4 kB / 1.019 GB, free: 400 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.157e-05/0.69, allocations: 4 kB / 1.019 GB, free: 396 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00054/0.6905, allocations: 343.3 kB / 1.02 GB, free: 52 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.764e-05/0.6906, allocations: 11.92 kB / 1.02 GB, free: 40 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.005e-05/0.6906, allocations: 8 kB / 1.02 GB, free: 32 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0002849/0.6909, allocations: 141.7 kB / 1.02 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.6909, allocations: 0 / 1.02 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.423e-06/0.6909, allocations: 0 / 1.02 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.621e-06/0.6909, allocations: 0 / 1.02 GB, free: 15.89 MB / 0.7794 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.000457/0.6914, allocations: 359.4 kB / 1.02 GB, free: 15.49 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.587e-05/0.6914, allocations: 16.03 kB / 1.02 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.53e-05/0.6915, allocations: 0.9375 kB / 1.02 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001499/0.6916, allocations: 172.2 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.398e-05/0.6916, allocations: 8.375 kB / 1.02 GB, free: 15.26 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.312e-05/0.6917, allocations: 4.281 kB / 1.02 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001087/0.6918, allocations: 46.09 kB / 1.02 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.697e-06/0.6918, allocations: 192 / 1.02 GB, free: 15.21 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.225e-05/0.6918, allocations: 3.938 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.319e-06/0.6918, allocations: 3.938 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.043e-05/0.6919, allocations: 11.98 kB / 1.02 GB, free: 15.19 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001814/0.6921, allocations: 161.7 kB / 1.021 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001838/0.6923, allocations: 38.56 kB / 1.021 GB, free: 14.93 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.788e-05/0.6923, allocations: 16.86 kB / 1.021 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.928e-05/0.6923, allocations: 7.922 kB / 1.021 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.445e-05/0.6924, allocations: 34.56 kB / 1.021 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 9.82e-07/0.6924, allocations: 0 / 1.021 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.000638/0.693, allocations: 314.3 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.228e-05/0.6931, allocations: 51.41 kB / 1.021 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.357e-05/0.6932, allocations: 97.86 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.728e-05/0.6932, allocations: 25.7 kB / 1.021 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.364e-05/0.6932, allocations: 84.14 kB / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.009e-05/0.6933, allocations: 23.64 kB / 1.021 GB, free: 14.2 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.924e-05/0.6933, allocations: 21.72 kB / 1.021 GB, free: 14.17 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001311/0.6934, allocations: 318.8 kB / 1.022 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.529e-05/0.6935, allocations: 8 kB / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.653e-05/0.6935, allocations: 12 kB / 1.022 GB, free: 13.83 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.21e-05/0.6936, allocations: 36.78 kB / 1.022 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.31e-07/0.6936, allocations: 0 / 1.022 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001091/0.6937, allocations: 65.69 kB / 1.022 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.813e-05/0.6937, allocations: 14.11 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.6937, allocations: 240 / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.239e-05/0.6937, allocations: 0 / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.14e-05/0.6938, allocations: 16 kB / 1.022 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.6938, allocations: 3.984 kB / 1.022 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.66e-05/0.6938, allocations: 0 / 1.022 GB, free: 13.69 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.539e-06/0.6938, allocations: 0 / 1.022 GB, free: 13.69 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 7.913e-05/0.6939, allocations: 117.8 kB / 1.022 GB, free: 13.56 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.21e-05/0.694, allocations: 7.844 kB / 1.022 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001396/0.6941, allocations: 77.58 kB / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.6941, allocations: 0 / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.828e-06/0.6941, allocations: 0 / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.6941, allocations: 4 kB / 1.022 GB, free: 13.47 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003316/0.6945, allocations: 311.4 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.6945, allocations: 4 kB / 1.022 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.05e-05/0.6945, allocations: 11.98 kB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.6946, allocations: 0 / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.625e-05/0.6946, allocations: 8.188 kB / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.056e-06/0.6946, allocations: 4 kB / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.6946, allocations: 3.938 kB / 1.022 GB, free: 13.07 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001907/0.6948, allocations: 184.3 kB / 1.022 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.914e-05/0.6949, allocations: 85.05 kB / 1.022 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.239e-05/0.6949, allocations: 0 / 1.022 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.235e-05/0.695, allocations: 4 kB / 1.022 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.003e-05/0.695, allocations: 3.984 kB / 1.022 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.095e-06/0.695, allocations: 8 kB / 1.023 GB, free: 12.76 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4e-05/0.695, allocations: 79.34 kB / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.695, allocations: 0 / 1.023 GB, free: 12.68 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002419/0.6953, allocations: 20 kB / 1.023 GB, free: 12.66 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.0001861/0.6955, allocations: 135.1 kB / 1.023 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001118/0.6956, allocations: 35.92 kB / 1.023 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.6956, allocations: 0 / 1.023 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 2.863e-05/0.6956, allocations: 15.94 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000217/0.6959, allocations: 10.42 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00041/0.6963, allocations: 192.4 kB / 1.023 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002946/0.6966, allocations: 0.6846 MB / 1.024 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.827e-05/0.6966, allocations: 4 kB / 1.024 GB, free: 11.53 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.2e-05/0.6967, allocations: 11.44 kB / 1.024 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of SimCode: time 2.6e-07/0.6967, allocations: 0 / 1.024 GB, free: 11.52 MB / 0.7794 GB Notification: Performance of Templates: time 0.003023/0.6997, allocations: 0.6384 MB / 1.024 GB, free: 10.91 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=400 -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