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.00158/0.00158, allocations: 108 kB / 15.61 MB, free: 128 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.002016/0.002016, allocations: 198 kB / 16.53 MB, free: 6.668 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.381/1.381, allocations: 222.9 MB / 240.2 MB, free: 4.402 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.655/2.655, allocations: 437 MB / 0.7104 GB, free: 5.078 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 63.91 kB / 0.8692 GB, free: 4.668 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6698/0.6711, allocations: 151.6 MB / 1.017 GB, free: 2.516 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002282/0.6734, allocations: 1.274 MB / 1.019 GB, free: 1.227 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0009651/0.6744, allocations: 0.6111 MB / 1.019 GB, free: 0.6133 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.278e-05/0.6744, allocations: 0 / 1.019 GB, free: 0.6133 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.789e-05/0.6744, allocations: 4 kB / 1.019 GB, free: 0.6094 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 3.947e-05/0.6745, allocations: 3.938 kB / 1.019 GB, free: 0.6055 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005017/0.675, allocations: 143.4 kB / 1.019 GB, free: 476 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 5.219e-05/0.675, allocations: 19.92 kB / 1.019 GB, free: 456 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.38e-05/0.6751, allocations: 4 kB / 1.019 GB, free: 452 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 3.494e-05/0.6751, allocations: 15.92 kB / 1.019 GB, free: 436 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.279e-05/0.6752, allocations: 4 kB / 1.019 GB, free: 432 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.232e-05/0.6752, allocations: 0 / 1.019 GB, free: 432 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004737/0.6757, allocations: 347.3 kB / 1.02 GB, free: 84 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.17e-05/0.6757, allocations: 3.938 kB / 1.02 GB, free: 80 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 3.552e-05/0.6757, allocations: 19.92 kB / 1.02 GB, free: 60 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0002504/0.676, allocations: 141.7 kB / 1.02 GB, free: 15.92 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 7.234e-06/0.676, allocations: 0 / 1.02 GB, free: 15.92 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.904e-06/0.676, allocations: 3.938 kB / 1.02 GB, free: 15.92 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 6.251e-06/0.676, allocations: 0 / 1.02 GB, free: 15.92 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.0004243/0.6765, allocations: 363.3 kB / 1.02 GB, free: 15.51 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/0.6765, allocations: 12.03 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.423e-05/0.6765, allocations: 0.9375 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000116/0.6767, allocations: 168.3 kB / 1.02 GB, free: 15.3 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.232e-05/0.6767, allocations: 4.375 kB / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.151e-05/0.6767, allocations: 4.281 kB / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001094/0.6768, allocations: 42.25 kB / 1.02 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.965e-06/0.6768, allocations: 192 / 1.02 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.226e-05/0.6769, allocations: 3.938 kB / 1.02 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.329e-06/0.6769, allocations: 0 / 1.02 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.522e-05/0.6769, allocations: 15.98 kB / 1.02 GB, free: 15.22 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001658/0.6771, allocations: 157.7 kB / 1.021 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001739/0.6773, allocations: 46.56 kB / 1.021 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.401e-05/0.6773, allocations: 16.86 kB / 1.021 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.878e-05/0.6773, allocations: 0 / 1.021 GB, free: 14.95 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.183e-05/0.6774, allocations: 34.56 kB / 1.021 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 1.188e-05/0.6774, allocations: 3.984 kB / 1.021 GB, free: 14.9 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.0005898/0.678, allocations: 310.3 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.537e-05/0.678, allocations: 55.34 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.603e-05/0.6781, allocations: 93.86 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.394e-05/0.6781, allocations: 29.7 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.94e-05/0.6781, allocations: 80.14 kB / 1.021 GB, free: 14.26 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.646e-05/0.6782, allocations: 23.64 kB / 1.021 GB, free: 14.23 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.278e-05/0.6782, allocations: 17.72 kB / 1.021 GB, free: 14.21 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001062/0.6783, allocations: 326.8 kB / 1.022 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.648e-05/0.6784, allocations: 8 kB / 1.022 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.968e-05/0.6784, allocations: 8 kB / 1.022 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.769e-05/0.6784, allocations: 40.98 kB / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.01e-07/0.6784, allocations: 0 / 1.022 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001064/0.6786, allocations: 61.69 kB / 1.022 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/0.6786, allocations: 13.91 kB / 1.022 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.6786, allocations: 0 / 1.022 GB, free: 13.75 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.6786, allocations: 3.984 kB / 1.022 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.173e-05/0.6787, allocations: 16.06 kB / 1.022 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.6787, allocations: 8 kB / 1.022 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.987e-05/0.6787, allocations: 3.938 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.478e-06/0.6787, allocations: 3.938 kB / 1.022 GB, free: 13.71 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 6.562e-05/0.6788, allocations: 113.8 kB / 1.022 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.318e-05/0.6788, allocations: 7.844 kB / 1.022 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001385/0.679, allocations: 77.58 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.679, allocations: 0 / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.679, allocations: 0 / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.679, allocations: 0 / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003056/0.6793, allocations: 311.4 kB / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.905e-06/0.6793, allocations: 0 / 1.022 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.078e-05/0.6794, allocations: 19.92 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.734e-06/0.6794, allocations: 0 / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.801e-06/0.6794, allocations: 0 / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.6794, allocations: 4 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.6794, allocations: 0 / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001699/0.6796, allocations: 180.4 kB / 1.022 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.416e-05/0.6796, allocations: 89.05 kB / 1.022 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.228e-05/0.6796, allocations: 0 / 1.022 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.648e-05/0.6797, allocations: 0 / 1.022 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.576e-05/0.6797, allocations: 11.92 kB / 1.022 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.252e-06/0.6798, allocations: 4 kB / 1.022 GB, free: 12.8 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.862e-05/0.6798, allocations: 79.28 kB / 1.023 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6798, allocations: 0 / 1.023 GB, free: 12.72 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002377/0.68, allocations: 24.06 kB / 1.023 GB, free: 12.7 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.0001573/0.6802, allocations: 129.5 kB / 1.023 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001047/0.6803, allocations: 36.12 kB / 1.023 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.6803, allocations: 0 / 1.023 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 2.85e-05/0.6804, allocations: 23.98 kB / 1.023 GB, free: 12.5 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002126/0.6806, allocations: 7.938 kB / 1.023 GB, free: 12.49 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003804/0.681, allocations: 200.3 kB / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000245/0.6812, allocations: 0.6807 MB / 1.024 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 2.916e-05/0.6813, allocations: 8 kB / 1.024 GB, free: 11.56 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.769e-05/0.6813, allocations: 11.44 kB / 1.024 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of SimCode: time 2.6e-07/0.6813, allocations: 0 / 1.024 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of Templates: time 0.002534/0.6838, allocations: 0.6368 MB / 1.024 GB, free: 10.94 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