Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_m_flow_DerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck",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.001117/0.001117, allocations: 90.67 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.009248/0.009248, allocations: 173.8 kB / 16.27 MB, free: 6.676 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.411/1.411, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.624/2.624, allocations: 443.4 MB / 0.7176 GB, free: 1.418 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003238/0.0003239, allocations: 8.906 kB / 0.8797 GB, free: 41.45 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2607/0.2611, allocations: 155.2 MB / 1.031 GB, free: 4.258 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.001418/0.2625, allocations: 1.018 MB / 1.032 GB, free: 3.227 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001167/0.2637, allocations: 0.6196 MB / 1.033 GB, free: 2.605 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.736e-05/0.2638, allocations: 0 / 1.033 GB, free: 2.605 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.425e-05/0.2638, allocations: 4 kB / 1.033 GB, free: 2.602 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 3.842e-05/0.2638, allocations: 7.922 kB / 1.033 GB, free: 2.594 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005125/0.2643, allocations: 119.6 kB / 1.033 GB, free: 2.477 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 4.62e-05/0.2644, allocations: 15.92 kB / 1.033 GB, free: 2.461 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 3.754e-05/0.2644, allocations: 8 kB / 1.033 GB, free: 2.453 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 3.473e-05/0.2645, allocations: 11.92 kB / 1.033 GB, free: 2.441 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 4.491e-05/0.2645, allocations: 7.984 kB / 1.033 GB, free: 2.434 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.065e-05/0.2646, allocations: 0 / 1.033 GB, free: 2.434 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005036/0.2651, allocations: 343.3 kB / 1.033 GB, free: 2.098 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.415e-05/0.2651, allocations: 15.86 kB / 1.033 GB, free: 2.082 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.253e-05/0.2651, allocations: 29.7 kB / 1.033 GB, free: 2.047 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002585/0.2654, allocations: 151.9 kB / 1.034 GB, free: 1.898 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2654, allocations: 0 / 1.034 GB, free: 1.898 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.503e-06/0.2654, allocations: 0 / 1.034 GB, free: 1.898 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.737e-06/0.2654, allocations: 0 / 1.034 GB, free: 1.898 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.0004183/0.2658, allocations: 359.3 kB / 1.034 GB, free: 1.496 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/0.2659, allocations: 12.03 kB / 1.034 GB, free: 1.484 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.403e-05/0.2659, allocations: 34.75 kB / 1.034 GB, free: 1.441 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.52e-05/0.266, allocations: 4.922 kB / 1.034 GB, free: 1.438 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001115/0.2661, allocations: 168.3 kB / 1.034 GB, free: 1.234 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.016e-05/0.2661, allocations: 384 / 1.034 GB, free: 1.234 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.967e-05/0.2661, allocations: 4.375 kB / 1.034 GB, free: 1.23 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001013/0.2662, allocations: 42.19 kB / 1.034 GB, free: 1.184 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.444e-06/0.2663, allocations: 3.938 kB / 1.034 GB, free: 1.18 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.909e-06/0.2663, allocations: 4 kB / 1.034 GB, free: 1.176 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.028e-06/0.2663, allocations: 0 / 1.034 GB, free: 1.176 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.854e-05/0.2663, allocations: 8 kB / 1.034 GB, free: 1.168 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001682/0.2665, allocations: 157.7 kB / 1.034 GB, free: 0.9648 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001741/0.2667, allocations: 46.55 kB / 1.034 GB, free: 0.9102 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.433e-05/0.2667, allocations: 20.94 kB / 1.034 GB, free: 0.8867 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.845e-05/0.2667, allocations: 0 / 1.034 GB, free: 0.8867 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.351e-05/0.2668, allocations: 34.56 kB / 1.034 GB, free: 0.8438 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 8.71e-07/0.2668, allocations: 0 / 1.034 GB, free: 0.8438 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.0006687/0.2675, allocations: 318.1 kB / 1.035 GB, free: 492 kB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.244e-05/0.2675, allocations: 55.39 kB / 1.035 GB, free: 424 kB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.121e-05/0.2676, allocations: 93.86 kB / 1.035 GB, free: 320 kB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.033e-05/0.2676, allocations: 25.7 kB / 1.035 GB, free: 288 kB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 3.124e-05/0.2676, allocations: 88.14 kB / 1.035 GB, free: 196 kB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.573e-05/0.2677, allocations: 15.7 kB / 1.035 GB, free: 180 kB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.686e-05/0.2677, allocations: 17.72 kB / 1.035 GB, free: 156 kB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001159/0.2678, allocations: 314.8 kB / 1.035 GB, free: 15.84 MB / 0.795 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.873e-05/0.2679, allocations: 15.98 kB / 1.035 GB, free: 15.82 MB / 0.795 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.109e-05/0.2679, allocations: 8 kB / 1.035 GB, free: 15.81 MB / 0.795 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.977e-05/0.2679, allocations: 32.8 kB / 1.035 GB, free: 15.78 MB / 0.795 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.268, allocations: 0 / 1.035 GB, free: 15.78 MB / 0.795 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001033/0.2681, allocations: 73.77 kB / 1.035 GB, free: 15.7 MB / 0.795 GB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/0.2681, allocations: 4 kB / 1.035 GB, free: 15.7 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.077e-06/0.2681, allocations: 4.016 kB / 1.035 GB, free: 15.69 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.095e-05/0.2681, allocations: 0 / 1.035 GB, free: 15.69 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.204e-05/0.2682, allocations: 15.98 kB / 1.035 GB, free: 15.68 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.624e-06/0.2682, allocations: 7.984 kB / 1.035 GB, free: 15.67 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.725e-05/0.2682, allocations: 3.938 kB / 1.035 GB, free: 15.66 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.402e-06/0.2682, allocations: 4 kB / 1.035 GB, free: 15.66 MB / 0.795 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.409e-05/0.2683, allocations: 119.2 kB / 1.036 GB, free: 15.54 MB / 0.795 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.413e-05/0.2683, allocations: 11.84 kB / 1.036 GB, free: 15.52 MB / 0.795 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001314/0.2684, allocations: 73.58 kB / 1.036 GB, free: 15.45 MB / 0.795 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.475e-06/0.2685, allocations: 0 / 1.036 GB, free: 15.45 MB / 0.795 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.878e-06/0.2685, allocations: 0 / 1.036 GB, free: 15.45 MB / 0.795 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.625e-06/0.2685, allocations: 4 kB / 1.036 GB, free: 15.44 MB / 0.795 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003109/0.2688, allocations: 319.5 kB / 1.036 GB, free: 15.07 MB / 0.795 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.846e-06/0.2688, allocations: 4 kB / 1.036 GB, free: 15.07 MB / 0.795 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.815e-05/0.2689, allocations: 8 kB / 1.036 GB, free: 15.06 MB / 0.795 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.787e-06/0.2689, allocations: 3.984 kB / 1.036 GB, free: 15.05 MB / 0.795 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.105e-06/0.2689, allocations: 4 kB / 1.036 GB, free: 15.05 MB / 0.795 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.2689, allocations: 0 / 1.036 GB, free: 15.05 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.2689, allocations: 0 / 1.036 GB, free: 15.05 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000174/0.2691, allocations: 180.3 kB / 1.036 GB, free: 14.86 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 4.23e-05/0.2691, allocations: 89.03 kB / 1.036 GB, free: 14.75 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.181e-05/0.2692, allocations: 0 / 1.036 GB, free: 14.75 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.134e-05/0.2692, allocations: 4 kB / 1.036 GB, free: 14.75 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.438e-05/0.2693, allocations: 4 kB / 1.036 GB, free: 14.74 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.336e-06/0.2693, allocations: 7.984 kB / 1.036 GB, free: 14.73 MB / 0.795 GB Notification: Performance of sorting global known variables: time 3.838e-05/0.2693, allocations: 79.28 kB / 1.036 GB, free: 14.66 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.41e-07/0.2693, allocations: 4.062 kB / 1.036 GB, free: 14.65 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.0002446/0.2696, allocations: 12 kB / 1.036 GB, free: 14.64 MB / 0.795 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (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 (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.0004545/0.27, allocations: 0.7328 MB / 1.037 GB, free: 13.88 MB / 0.795 GB Notification: Performance of simCode: created initialization part: time 8.794e-05/0.2701, allocations: 31.98 kB / 1.037 GB, free: 13.84 MB / 0.795 GB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/0.2701, allocations: 4.062 kB / 1.037 GB, free: 13.84 MB / 0.795 GB Notification: Performance of simCode: created simulation system equations: time 2.78e-05/0.2702, allocations: 19.94 kB / 1.037 GB, free: 13.82 MB / 0.795 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002252/0.2704, allocations: 4.609 kB / 1.037 GB, free: 13.82 MB / 0.795 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001141/0.2716, allocations: 1.36 MB / 1.038 GB, free: 12.37 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002224/0.2718, allocations: 0.6809 MB / 1.039 GB, free: 11.66 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 2.945e-05/0.2718, allocations: 4 kB / 1.039 GB, free: 11.66 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.132e-05/0.2719, allocations: 19.42 kB / 1.039 GB, free: 11.64 MB / 0.795 GB Notification: Performance of SimCode: time 3.11e-07/0.2719, allocations: 0 / 1.039 GB, free: 11.64 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01039/0.2823, allocations: 1.412 MB / 1.04 GB, free: 10.43 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001854/0.2825, allocations: 265.1 kB / 1.041 GB, free: 10.17 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.793/2.075, allocations: 0 / 1.041 GB, free: 10.17 MB / 0.795 GB (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.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,dp,dp_comp Variables in the result:der(dp),der(dp_comp),der(m_flow),dp,dp_comp,err,k,m_flow,m_flow_turbulent,time