Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.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_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp|der.dp.|der.dp_comp.|err_dp|err_der_dp",fileNamePrefix="Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp|der.dp.|der.dp_comp.|err_dp|err_der_dp",fileNamePrefix="Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001735/0.001736, allocations: 108 kB / 15.61 MB, free: 152 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.002256/0.002256, allocations: 192.5 kB / 16.53 MB, free: 6.664 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.677/1.677, allocations: 222.9 MB / 240.2 MB, free: 4.367 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.705/2.705, allocations: 437 MB / 0.7104 GB, free: 5.098 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00188/0.00188, allocations: 63.89 kB / 0.8692 GB, free: 4.664 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6022/0.6041, allocations: 151.6 MB / 1.017 GB, free: 2.652 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002692/0.6068, allocations: 1.47 MB / 1.019 GB, free: 1.168 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001144/0.608, allocations: 0.6305 MB / 1.019 GB, free: 0.5352 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.074e-05/0.608, allocations: 0 / 1.019 GB, free: 0.5352 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.657e-05/0.6081, allocations: 7.938 kB / 1.019 GB, free: 0.5273 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.085e-05/0.6081, allocations: 7.922 kB / 1.019 GB, free: 0.5195 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005608/0.6087, allocations: 159.4 kB / 1.02 GB, free: 372 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 8.293e-05/0.6088, allocations: 55.83 kB / 1.02 GB, free: 316 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.273e-05/0.6088, allocations: 7.984 kB / 1.02 GB, free: 308 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 5.767e-05/0.6089, allocations: 23.92 kB / 1.02 GB, free: 284 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 5.829e-05/0.609, allocations: 31.84 kB / 1.02 GB, free: 252 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.596e-05/0.609, allocations: 4 kB / 1.02 GB, free: 248 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005585/0.6096, allocations: 347.3 kB / 1.02 GB, free: 15.9 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.03e-05/0.6096, allocations: 11.98 kB / 1.02 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.849e-05/0.6096, allocations: 27.86 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003381/0.61, allocations: 169.6 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.236e-06/0.61, allocations: 4 kB / 1.02 GB, free: 15.7 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.813e-06/0.61, allocations: 4 kB / 1.02 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.428e-06/0.61, allocations: 0 / 1.02 GB, free: 15.69 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006632/0.6107, allocations: 403.2 kB / 1.021 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.657e-05/0.6107, allocations: 15.92 kB / 1.021 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.127e-05/0.6108, allocations: 4.938 kB / 1.021 GB, free: 15.23 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001519/0.6109, allocations: 168.2 kB / 1.021 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.243e-05/0.6109, allocations: 4.375 kB / 1.021 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.437e-05/0.611, allocations: 16.3 kB / 1.021 GB, free: 15 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002458/0.6112, allocations: 85.84 kB / 1.021 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.6113, allocations: 192 / 1.021 GB, free: 14.92 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.692e-05/0.6113, allocations: 7.938 kB / 1.021 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.549e-06/0.6113, allocations: 0 / 1.021 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002652/0.6116, allocations: 47.95 kB / 1.021 GB, free: 14.86 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006019/0.6122, allocations: 324.6 kB / 1.021 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002971/0.6125, allocations: 78.53 kB / 1.021 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001321/0.6126, allocations: 32.84 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.786e-05/0.6127, allocations: 4 kB / 1.021 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.215e-05/0.6127, allocations: 34.56 kB / 1.021 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 3.536e-06/0.6127, allocations: 0 / 1.021 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.001843/0.6145, allocations: 0.6539 MB / 1.022 GB, free: 13.58 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.659e-05/0.6146, allocations: 51.41 kB / 1.022 GB, free: 13.52 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.631e-05/0.6147, allocations: 109.8 kB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.332e-05/0.6147, allocations: 29.7 kB / 1.022 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.109e-05/0.6148, allocations: 91.98 kB / 1.022 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.837e-05/0.6148, allocations: 35.45 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.442e-05/0.6149, allocations: 29.7 kB / 1.022 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001582/0.6151, allocations: 326.8 kB / 1.023 GB, free: 12.88 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001432/0.6152, allocations: 31.97 kB / 1.023 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001289/0.6154, allocations: 31.97 kB / 1.023 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002851/0.6156, allocations: 72.97 kB / 1.023 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.92e-07/0.6157, allocations: 0 / 1.023 GB, free: 12.74 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003388/0.616, allocations: 121.6 kB / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.616, allocations: 4 kB / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.583e-06/0.616, allocations: 4 kB / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.647e-05/0.6161, allocations: 0 / 1.023 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001508/0.6162, allocations: 23.98 kB / 1.023 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.629e-06/0.6162, allocations: 0 / 1.023 GB, free: 12.58 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.82e-05/0.6163, allocations: 7.938 kB / 1.023 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.453e-05/0.6163, allocations: 11.98 kB / 1.023 GB, free: 12.56 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 (13): * Single equations (assignments): 13 * 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 0.0001001/0.6164, allocations: 117.8 kB / 1.023 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.395e-05/0.6165, allocations: 3.906 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003931/0.6169, allocations: 129.6 kB / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.6169, allocations: 96 / 1.023 GB, free: 12.3 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.048e-06/0.6169, allocations: 3.938 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.6169, allocations: 7.922 kB / 1.023 GB, free: 12.29 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006246/0.6175, allocations: 390.5 kB / 1.024 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.663e-06/0.6175, allocations: 0 / 1.024 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001482/0.6177, allocations: 23.98 kB / 1.024 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.6177, allocations: 0 / 1.024 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.541e-05/0.6177, allocations: 15.92 kB / 1.024 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.6177, allocations: 0 / 1.024 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.82e-07/0.6177, allocations: 0 / 1.024 GB, free: 11.81 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005529/0.6183, allocations: 255.3 kB / 1.024 GB, free: 11.54 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.965e-05/0.6184, allocations: 85.05 kB / 1.024 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.892e-05/0.6184, allocations: 3.938 kB / 1.024 GB, free: 11.44 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000121/0.6185, allocations: 7.984 kB / 1.024 GB, free: 11.43 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.214e-05/0.6185, allocations: 8 kB / 1.024 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.588e-06/0.6186, allocations: 4 kB / 1.024 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 5.246e-05/0.6186, allocations: 79.27 kB / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.31e-07/0.6186, allocations: 0 / 1.024 GB, free: 11.34 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002837/0.6189, allocations: 48 kB / 1.024 GB, free: 11.29 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (dp_comp,der_dp_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 (11): * Single equations (assignments): 11 * 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.0002141/0.6191, allocations: 131.2 kB / 1.024 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000353/0.6195, allocations: 91.83 kB / 1.024 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.6195, allocations: 0 / 1.024 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001624/0.6197, allocations: 47.91 kB / 1.024 GB, free: 11.02 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002858/0.62, allocations: 8 kB / 1.024 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006906/0.6207, allocations: 311.3 kB / 1.025 GB, free: 10.68 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003473/0.621, allocations: 0.6962 MB / 1.025 GB, free: 9.957 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.143e-05/0.6211, allocations: 16.59 kB / 1.025 GB, free: 9.941 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.016e-05/0.6211, allocations: 11.44 kB / 1.025 GB, free: 9.93 MB / 0.7794 GB Notification: Performance of SimCode: time 2.6e-07/0.6211, allocations: 4 kB / 1.025 GB, free: 9.926 MB / 0.7794 GB Notification: Performance of Templates: time 0.003975/0.6251, allocations: 1.133 MB / 1.026 GB, free: 8.836 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.makefile (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & ./Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches