Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_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_11_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.001579/0.001579, 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.001695/0.001695, allocations: 196.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.28/1.28, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.517/2.517, allocations: 469.8 MB / 0.7424 GB, free: 7.484 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00173/0.00173, allocations: 60.62 kB / 0.9087 GB, free: 34.3 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2445/0.2462, allocations: 159.1 MB / 1.064 GB, free: 14.27 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002092/0.2483, allocations: 1.294 MB / 1.065 GB, free: 12.96 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0009065/0.2493, allocations: 0.6168 MB / 1.066 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.865e-05/0.2493, allocations: 0 / 1.066 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.135e-05/0.2493, allocations: 0 / 1.066 GB, free: 12.35 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 3.203e-05/0.2493, allocations: 3.938 kB / 1.066 GB, free: 12.34 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004567/0.2498, allocations: 149.1 kB / 1.066 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 5.356e-05/0.2499, allocations: 31.84 kB / 1.066 GB, free: 12.17 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.883e-05/0.2499, allocations: 7.984 kB / 1.066 GB, free: 12.16 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 1.897e-05/0.2499, allocations: 12 kB / 1.066 GB, free: 12.15 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.809e-05/0.25, allocations: 15.92 kB / 1.066 GB, free: 12.13 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.149e-05/0.25, allocations: 4 kB / 1.066 GB, free: 12.13 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004746/0.2505, allocations: 347.3 kB / 1.066 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.527e-06/0.2505, allocations: 0 / 1.066 GB, free: 11.79 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.359e-05/0.2505, allocations: 15.92 kB / 1.067 GB, free: 11.77 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002326/0.2508, allocations: 151.9 kB / 1.067 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.2508, allocations: 0 / 1.067 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.072e-06/0.2508, allocations: 0 / 1.067 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 3.818e-06/0.2508, allocations: 0 / 1.067 GB, free: 11.62 MB / 0.8262 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.0003844/0.2512, allocations: 371.4 kB / 1.067 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.1e-05/0.2512, allocations: 11.97 kB / 1.067 GB, free: 11.2 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.538e-05/0.2512, allocations: 38.73 kB / 1.067 GB, free: 11.15 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.437e-05/0.2513, allocations: 4.844 kB / 1.067 GB, free: 11.15 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001145/0.2514, allocations: 168.3 kB / 1.067 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.754e-06/0.2514, allocations: 4.375 kB / 1.067 GB, free: 10.94 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.949e-05/0.2514, allocations: 8.312 kB / 1.067 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001078/0.2515, allocations: 54.19 kB / 1.067 GB, free: 10.88 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.096e-05/0.2516, allocations: 3.938 kB / 1.067 GB, free: 10.87 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.554e-06/0.2516, allocations: 4 kB / 1.067 GB, free: 10.87 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.2516, allocations: 3.984 kB / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.695e-05/0.2516, allocations: 19.98 kB / 1.067 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001681/0.2518, allocations: 169.6 kB / 1.067 GB, free: 10.63 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 9.461e-05/0.2519, allocations: 58.5 kB / 1.068 GB, free: 10.56 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.129e-05/0.252, allocations: 32.84 kB / 1.068 GB, free: 10.53 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.63e-05/0.252, allocations: 4 kB / 1.068 GB, free: 10.52 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.051e-05/0.252, allocations: 34.56 kB / 1.068 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 1.042e-06/0.252, allocations: 0 / 1.068 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.00103/0.253, allocations: 0.5878 MB / 1.068 GB, free: 9.801 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.861e-05/0.2531, allocations: 55.41 kB / 1.068 GB, free: 9.734 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.893e-05/0.2532, allocations: 93.86 kB / 1.068 GB, free: 9.633 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.907e-05/0.2532, allocations: 29.7 kB / 1.068 GB, free: 9.598 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 4.407e-05/0.2532, allocations: 84.14 kB / 1.068 GB, free: 9.512 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.691e-05/0.2533, allocations: 39.39 kB / 1.068 GB, free: 9.473 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.056e-05/0.2533, allocations: 29.7 kB / 1.068 GB, free: 9.438 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001158/0.2534, allocations: 314.8 kB / 1.069 GB, free: 9.121 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.054e-05/0.2535, allocations: 19.98 kB / 1.069 GB, free: 9.102 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.598e-05/0.2535, allocations: 28.11 kB / 1.069 GB, free: 9.074 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.054e-05/0.2536, allocations: 61.8 kB / 1.069 GB, free: 9.012 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.11e-07/0.2536, allocations: 0 / 1.069 GB, free: 9.012 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001334/0.2538, allocations: 94.62 kB / 1.069 GB, free: 8.914 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 9.828e-06/0.2538, allocations: 4 kB / 1.069 GB, free: 8.91 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.497e-06/0.2538, allocations: 0 / 1.069 GB, free: 8.91 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.551e-05/0.2538, allocations: 7.984 kB / 1.069 GB, free: 8.902 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.596e-05/0.2539, allocations: 16 kB / 1.069 GB, free: 8.887 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.2539, allocations: 3.984 kB / 1.069 GB, free: 8.883 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.477e-05/0.2539, allocations: 4.094 kB / 1.069 GB, free: 8.879 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.57e-06/0.254, allocations: 15.88 kB / 1.069 GB, free: 8.863 MB / 0.8262 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.814e-05/0.254, allocations: 117.8 kB / 1.069 GB, free: 8.738 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.99e-05/0.2541, allocations: 11.84 kB / 1.069 GB, free: 8.727 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001716/0.2542, allocations: 101.6 kB / 1.069 GB, free: 8.621 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.2542, allocations: 0 / 1.069 GB, free: 8.621 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.755e-06/0.2543, allocations: 0 / 1.069 GB, free: 8.621 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.2543, allocations: 4 kB / 1.069 GB, free: 8.617 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003701/0.2546, allocations: 358.4 kB / 1.07 GB, free: 8.211 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.2546, allocations: 0 / 1.07 GB, free: 8.211 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.594e-05/0.2547, allocations: 23.98 kB / 1.07 GB, free: 8.188 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.644e-06/0.2548, allocations: 0 / 1.07 GB, free: 8.188 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.823e-06/0.2548, allocations: 0 / 1.07 GB, free: 8.188 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.226e-06/0.2548, allocations: 4 kB / 1.07 GB, free: 8.184 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/0.2548, allocations: 3.938 kB / 1.07 GB, free: 8.18 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002316/0.255, allocations: 223.3 kB / 1.07 GB, free: 7.945 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.02e-05/0.2551, allocations: 81.17 kB / 1.07 GB, free: 7.848 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.716e-05/0.2551, allocations: 8.031 kB / 1.07 GB, free: 7.84 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.544e-05/0.2552, allocations: 0 / 1.07 GB, free: 7.84 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.011e-05/0.2552, allocations: 7.984 kB / 1.07 GB, free: 7.832 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.016e-05/0.2552, allocations: 8 kB / 1.07 GB, free: 7.824 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.26e-05/0.2552, allocations: 75.28 kB / 1.07 GB, free: 7.75 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1e-07/0.2552, allocations: 0 / 1.07 GB, free: 7.75 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002375/0.2555, allocations: 36 kB / 1.07 GB, free: 7.715 MB / 0.8262 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.0005684/0.2561, allocations: 0.7951 MB / 1.071 GB, free: 6.895 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001375/0.2562, allocations: 68.47 kB / 1.071 GB, free: 6.828 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.2562, allocations: 0 / 1.071 GB, free: 6.828 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 4.869e-05/0.2563, allocations: 35.92 kB / 1.071 GB, free: 6.793 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001897/0.2565, allocations: 4.219 kB / 1.071 GB, free: 6.789 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001378/0.2578, allocations: 1.496 MB / 1.072 GB, free: 5.219 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002786/0.2581, allocations: 0.6884 MB / 1.073 GB, free: 4.504 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.259e-05/0.2582, allocations: 15.88 kB / 1.073 GB, free: 4.488 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.319e-05/0.2582, allocations: 19.44 kB / 1.073 GB, free: 4.469 MB / 0.8262 GB Notification: Performance of SimCode: time 1.9e-07/0.2582, allocations: 0 / 1.073 GB, free: 4.469 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1017/0.36, allocations: 2.025 MB / 1.075 GB, free: 2.602 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 10/10.36, allocations: 19.36 kB / 1.075 GB, free: 2.586 MB / 0.8262 GB (rm -f Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat --tempDir=temp_Buildings_11_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=400 --tolerance=1e-08 Buildings_11_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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