Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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: "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001083/0.001083, 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.001241/0.001241, allocations: 195.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.29/1.29, allocations: 222.9 MB / 240.2 MB, free: 4.418 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.461/2.461, allocations: 437.1 MB / 0.7104 GB, free: 5.086 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001318/0.001319, allocations: 67.89 kB / 0.8693 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4984/0.4997, allocations: 151.6 MB / 1.017 GB, free: 2.469 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.00228/0.502, allocations: 1.281 MB / 1.019 GB, free: 1.176 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0009707/0.503, allocations: 0.615 MB / 1.019 GB, free: 0.5586 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.74e-05/0.5031, allocations: 0 / 1.019 GB, free: 0.5586 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.712e-05/0.5031, allocations: 7.984 kB / 1.019 GB, free: 0.5508 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 3.888e-05/0.5031, allocations: 3.938 kB / 1.019 GB, free: 0.5469 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006467/0.5038, allocations: 151.2 kB / 1.019 GB, free: 412 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 6.665e-05/0.5039, allocations: 31.92 kB / 1.019 GB, free: 380 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 3.957e-05/0.5039, allocations: 0 / 1.019 GB, free: 380 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 2.607e-05/0.504, allocations: 15.92 kB / 1.019 GB, free: 364 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 5.297e-05/0.504, allocations: 15.92 kB / 1.019 GB, free: 348 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.213e-05/0.504, allocations: 0 / 1.019 GB, free: 348 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005107/0.5045, allocations: 347.3 kB / 1.02 GB, free: 0 / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.328e-05/0.5046, allocations: 0 / 1.02 GB, free: 0 / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.924e-05/0.5046, allocations: 19.97 kB / 1.02 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.000276/0.5049, allocations: 153.8 kB / 1.02 GB, free: 15.83 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.5049, allocations: 7.938 kB / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.413e-06/0.5049, allocations: 0 / 1.02 GB, free: 15.82 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.98e-06/0.5049, allocations: 0 / 1.02 GB, free: 15.82 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004005/0.5053, allocations: 371.3 kB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.565e-05/0.5054, allocations: 8.031 kB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.533e-05/0.5054, allocations: 30.75 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.201e-05/0.5055, allocations: 4.938 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001171/0.5056, allocations: 172.4 kB / 1.021 GB, free: 15.15 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.146e-05/0.5056, allocations: 8.375 kB / 1.021 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.322e-05/0.5056, allocations: 8.219 kB / 1.021 GB, free: 15.14 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001135/0.5057, allocations: 54.19 kB / 1.021 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.5058, allocations: 3.938 kB / 1.021 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.137e-06/0.5058, allocations: 0 / 1.021 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.007e-06/0.5058, allocations: 4 kB / 1.021 GB, free: 15.07 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.217e-05/0.5058, allocations: 19.97 kB / 1.021 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001648/0.506, allocations: 161.7 kB / 1.021 GB, free: 14.84 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000108/0.5061, allocations: 66.55 kB / 1.021 GB, free: 14.77 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.166e-05/0.5062, allocations: 28.8 kB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.873e-05/0.5062, allocations: 3.984 kB / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.584e-05/0.5062, allocations: 34.56 kB / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.463e-06/0.5062, allocations: 0 / 1.021 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.001176/0.5074, allocations: 0.5956 MB / 1.022 GB, free: 14 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.149e-05/0.5075, allocations: 51.41 kB / 1.022 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.578e-05/0.5075, allocations: 97.86 kB / 1.022 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.554e-05/0.5076, allocations: 25.7 kB / 1.022 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.861e-05/0.5076, allocations: 80.14 kB / 1.022 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.283e-05/0.5076, allocations: 39.58 kB / 1.022 GB, free: 13.68 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.194e-05/0.5077, allocations: 29.7 kB / 1.022 GB, free: 13.65 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001026/0.5078, allocations: 318.8 kB / 1.022 GB, free: 13.33 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.259e-05/0.5078, allocations: 19.98 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.108e-05/0.5079, allocations: 20.09 kB / 1.022 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.967e-05/0.508, allocations: 64.72 kB / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.02e-07/0.508, allocations: 0 / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001474/0.5082, allocations: 97.53 kB / 1.022 GB, free: 13.12 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.5082, allocations: 8 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.129e-06/0.5082, allocations: 4 kB / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.696e-05/0.5082, allocations: 0 / 1.022 GB, free: 13.11 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001128/0.5083, allocations: 23.98 kB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.5083, allocations: 0 / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.8e-05/0.5084, allocations: 8 kB / 1.022 GB, free: 13.08 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.036e-05/0.5084, allocations: 4 kB / 1.022 GB, free: 13.07 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 7.87e-05/0.5085, allocations: 113.8 kB / 1.022 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.193e-05/0.5085, allocations: 11.84 kB / 1.022 GB, free: 12.94 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002022/0.5087, allocations: 109.6 kB / 1.023 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.569e-06/0.5087, allocations: 4 kB / 1.023 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.5087, allocations: 0 / 1.023 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.5087, allocations: 0 / 1.023 GB, free: 12.82 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004075/0.5092, allocations: 358.4 kB / 1.023 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.5092, allocations: 0 / 1.023 GB, free: 12.42 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001127/0.5093, allocations: 23.97 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.745e-06/0.5093, allocations: 0 / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.072e-05/0.5093, allocations: 4 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.704e-06/0.5093, allocations: 0 / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.5093, allocations: 4 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000232/0.5096, allocations: 219.3 kB / 1.023 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.167e-05/0.5096, allocations: 81.14 kB / 1.023 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.886e-05/0.5096, allocations: 4 kB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.735e-05/0.5097, allocations: 4 kB / 1.023 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.942e-05/0.5097, allocations: 7.922 kB / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.227e-06/0.5098, allocations: 8 kB / 1.023 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.986e-05/0.5098, allocations: 83.34 kB / 1.023 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5098, allocations: 0 / 1.023 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002677/0.5101, allocations: 35.94 kB / 1.023 GB, free: 11.92 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (m_flow_comp,der_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 (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.0005323/0.5106, allocations: 0.7752 MB / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001636/0.5108, allocations: 72 kB / 1.024 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.5108, allocations: 4 kB / 1.024 GB, free: 11.04 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 5.683e-05/0.5109, allocations: 43.91 kB / 1.024 GB, free: 11 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002152/0.5111, allocations: 4 kB / 1.024 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001396/0.5125, allocations: 1.494 MB / 1.026 GB, free: 9.422 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002157/0.5127, allocations: 0.6897 MB / 1.026 GB, free: 8.707 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 4.514e-05/0.5128, allocations: 7.984 kB / 1.026 GB, free: 8.699 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.096e-05/0.5128, allocations: 19.44 kB / 1.026 GB, free: 8.68 MB / 0.7794 GB Notification: Performance of SimCode: time 3.71e-07/0.5128, allocations: 0 / 1.026 GB, free: 8.68 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01885/0.5317, allocations: 2.037 MB / 1.028 GB, free: 6.801 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.44/8.971, allocations: 9.328 kB / 1.028 GB, free: 6.797 MB / 0.7794 GB (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Warning: Resultfile and Reference have different end time points! Reffile[501]=2.000000 File[1]=-2.000000 " Variables in the reference:time,m_flow,m_flow_comp,m_flow_turbulent,der(m_flow),der(m_flow_comp),err_m_flow,err_der_m_flow Variables in the result:der(der(dp)),der(der_m_flow),der(der_m_flow_comp),der(dp),der(m_flow),der(m_flow_comp),der_m_flow,der_m_flow_comp,dp,err_der_m_flow,err_m_flow,k,m_flow,m_flow_comp,m_flow_turbulent,time