Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.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_dp_DerivativeCheck2,fileNamePrefix="Buildings_latest_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_latest_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.000916/0.0009158, allocations: 90.52 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.006147/0.006147, allocations: 171.1 kB / 16.26 MB, free: 6.613 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.351/1.351, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.638/2.638, allocations: 462.6 MB / 0.7364 GB, free: 15.55 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0003078/0.0003078, allocations: 8.656 kB / 0.9029 GB, free: 36.49 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2639/0.2643, allocations: 159.6 MB / 1.059 GB, free: 4.82 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.001348/0.2656, allocations: 1.018 MB / 1.06 GB, free: 3.789 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0009797/0.2666, allocations: 0.623 MB / 1.06 GB, free: 3.164 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.786e-05/0.2667, allocations: 4 kB / 1.06 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 1.287e-05/0.2667, allocations: 0 / 1.06 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 3.659e-05/0.2667, allocations: 7.875 kB / 1.06 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004898/0.2672, allocations: 123.6 kB / 1.061 GB, free: 3.031 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.298e-05/0.2673, allocations: 31.84 kB / 1.061 GB, free: 3 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.203e-05/0.2673, allocations: 4 kB / 1.061 GB, free: 2.996 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 2.312e-05/0.2674, allocations: 8 kB / 1.061 GB, free: 2.988 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.314e-05/0.2674, allocations: 15.92 kB / 1.061 GB, free: 2.973 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.266e-05/0.2675, allocations: 4 kB / 1.061 GB, free: 2.969 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004909/0.268, allocations: 343.3 kB / 1.061 GB, free: 2.633 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.248e-05/0.268, allocations: 4 kB / 1.061 GB, free: 2.629 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.92e-05/0.268, allocations: 41.62 kB / 1.061 GB, free: 2.582 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.00025/0.2683, allocations: 159.9 kB / 1.061 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.176e-06/0.2683, allocations: 0 / 1.061 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.232e-06/0.2683, allocations: 0 / 1.061 GB, free: 2.426 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.498e-06/0.2683, allocations: 0 / 1.061 GB, free: 2.426 MB / 0.8106 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.000364/0.2687, allocations: 357 kB / 1.061 GB, free: 2.027 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.416e-05/0.2687, allocations: 11.97 kB / 1.061 GB, free: 2.016 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.62e-05/0.2688, allocations: 38.73 kB / 1.061 GB, free: 1.969 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.213e-05/0.2688, allocations: 4.938 kB / 1.061 GB, free: 1.965 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001176/0.2689, allocations: 172.2 kB / 1.062 GB, free: 1.758 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.756e-06/0.2689, allocations: 4.375 kB / 1.062 GB, free: 1.754 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.204e-05/0.269, allocations: 4.375 kB / 1.062 GB, free: 1.75 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001025/0.2691, allocations: 50.19 kB / 1.062 GB, free: 1.695 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.171e-05/0.2691, allocations: 7.938 kB / 1.062 GB, free: 1.688 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.516e-06/0.2691, allocations: 0 / 1.062 GB, free: 1.688 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.987e-06/0.2691, allocations: 0 / 1.062 GB, free: 1.688 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.414e-05/0.2691, allocations: 19.98 kB / 1.062 GB, free: 1.668 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001981/0.2694, allocations: 169.6 kB / 1.062 GB, free: 1.453 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001005/0.2695, allocations: 66.5 kB / 1.062 GB, free: 1.379 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.25e-05/0.2695, allocations: 28.84 kB / 1.062 GB, free: 1.348 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.126e-05/0.2695, allocations: 4 kB / 1.062 GB, free: 1.344 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.245e-05/0.2696, allocations: 30.56 kB / 1.062 GB, free: 1.305 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 8.42e-07/0.2696, allocations: 0 / 1.062 GB, free: 1.305 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.001028/0.2706, allocations: 0.5918 MB / 1.063 GB, free: 0.6211 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.575e-05/0.2707, allocations: 51.41 kB / 1.063 GB, free: 0.5586 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.583e-05/0.2707, allocations: 97.86 kB / 1.063 GB, free: 464 kB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.368e-05/0.2707, allocations: 25.7 kB / 1.063 GB, free: 432 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.765e-05/0.2708, allocations: 88 kB / 1.063 GB, free: 340 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.708e-05/0.2708, allocations: 47.42 kB / 1.063 GB, free: 292 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.662e-05/0.2709, allocations: 21.7 kB / 1.063 GB, free: 264 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001084/0.271, allocations: 314.8 kB / 1.063 GB, free: 15.94 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.991e-05/0.271, allocations: 23.98 kB / 1.063 GB, free: 15.92 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.339e-05/0.2711, allocations: 16 kB / 1.063 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.759e-05/0.2712, allocations: 63.41 kB / 1.063 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.71e-07/0.2712, allocations: 0 / 1.063 GB, free: 15.84 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001347/0.2713, allocations: 97.62 kB / 1.063 GB, free: 15.74 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.235e-05/0.2713, allocations: 4 kB / 1.063 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.018e-06/0.2713, allocations: 0 / 1.063 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.778e-06/0.2713, allocations: 4 kB / 1.063 GB, free: 15.73 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001006/0.2715, allocations: 27.98 kB / 1.063 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.2715, allocations: 0 / 1.063 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.298e-05/0.2715, allocations: 3.938 kB / 1.063 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.05e-05/0.2715, allocations: 7.984 kB / 1.063 GB, free: 15.69 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.813e-05/0.2716, allocations: 113.8 kB / 1.064 GB, free: 15.57 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.489e-05/0.2716, allocations: 7.844 kB / 1.064 GB, free: 15.56 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001775/0.2718, allocations: 109.6 kB / 1.064 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.2718, allocations: 4 kB / 1.064 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.2718, allocations: 0 / 1.064 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.2718, allocations: 0 / 1.064 GB, free: 15.45 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003644/0.2722, allocations: 358.4 kB / 1.064 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.2722, allocations: 0 / 1.064 GB, free: 15.04 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001003/0.2723, allocations: 19.98 kB / 1.064 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.2723, allocations: 4 kB / 1.064 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.957e-06/0.2723, allocations: 4 kB / 1.064 GB, free: 15.01 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.2723, allocations: 0 / 1.064 GB, free: 15.01 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.2723, allocations: 7.938 kB / 1.064 GB, free: 15 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002387/0.2726, allocations: 223.3 kB / 1.064 GB, free: 14.77 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.241e-05/0.2726, allocations: 77.11 kB / 1.064 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.355e-05/0.2727, allocations: 96 / 1.064 GB, free: 14.68 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.218e-05/0.2728, allocations: 11.97 kB / 1.064 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.784e-05/0.2728, allocations: 7.984 kB / 1.064 GB, free: 14.66 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.496e-06/0.2728, allocations: 4 kB / 1.064 GB, free: 14.65 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.082e-05/0.2728, allocations: 83.34 kB / 1.064 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2728, allocations: 0 / 1.064 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002536/0.2731, allocations: 32 kB / 1.064 GB, free: 14.54 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.0006065/0.2737, allocations: 0.7868 MB / 1.065 GB, free: 13.73 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001272/0.2738, allocations: 71.28 kB / 1.065 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.2739, allocations: 4.156 kB / 1.065 GB, free: 13.66 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 4.367e-05/0.2739, allocations: 27.98 kB / 1.065 GB, free: 13.63 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002096/0.2741, allocations: 8 kB / 1.065 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001312/0.2754, allocations: 1.539 MB / 1.067 GB, free: 12 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000228/0.2757, allocations: 0.6887 MB / 1.068 GB, free: 11.29 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.824e-05/0.2757, allocations: 8.062 kB / 1.068 GB, free: 11.28 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.628e-05/0.2758, allocations: 23.44 kB / 1.068 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of SimCode: time 2.3e-07/0.2758, allocations: 0 / 1.068 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02192/0.2977, allocations: 1.844 MB / 1.069 GB, free: 9.621 MB / 0.8262 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001778/0.2979, allocations: 258.1 kB / 1.07 GB, free: 9.359 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.657/1.955, allocations: 6.469 kB / 1.07 GB, free: 9.355 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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