Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_DerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,fileNamePrefix="Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_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.007476/0.007476, allocations: 102 kB / 15.73 MB, free: 6.039 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.001185/0.001185, allocations: 194.5 kB / 16.67 MB, free: 5.961 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.527/1.527, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.286/2.286, allocations: 390.3 MB / 0.6648 GB, free: 0.6797 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001412/0.001412, allocations: 63.91 kB / 0.9504 GB, free: 8.184 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8551/0.8565, allocations: 140.4 MB / 1.087 GB, free: 5.301 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002422/0.859, allocations: 1.275 MB / 1.089 GB, free: 4.414 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0009842/0.86, allocations: 0.6131 MB / 1.089 GB, free: 3.988 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.758e-05/0.86, allocations: 0 / 1.089 GB, free: 3.988 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 2.035e-05/0.86, allocations: 8.453 kB / 1.089 GB, free: 3.98 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 4.591e-05/0.8601, allocations: 5.766 kB / 1.089 GB, free: 3.977 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005506/0.8607, allocations: 145 kB / 1.089 GB, free: 3.914 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 7.621e-05/0.8607, allocations: 22.58 kB / 1.089 GB, free: 3.902 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.425e-05/0.8608, allocations: 3.266 kB / 1.089 GB, free: 3.902 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 5.268e-05/0.8609, allocations: 5.453 kB / 1.089 GB, free: 3.902 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 7.118e-05/0.8609, allocations: 12.86 kB / 1.09 GB, free: 3.895 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.892e-05/0.861, allocations: 1.062 kB / 1.09 GB, free: 3.895 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006609/0.8616, allocations: 349.1 kB / 1.09 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.398e-05/0.8616, allocations: 2.266 kB / 1.09 GB, free: 3.789 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.68e-05/0.8617, allocations: 8.547 kB / 1.09 GB, free: 3.785 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0003036/0.862, allocations: 151.7 kB / 1.09 GB, free: 3.734 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.862, allocations: 1.094 kB / 1.09 GB, free: 3.734 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.382e-06/0.862, allocations: 0 / 1.09 GB, free: 3.734 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 7.935e-06/0.862, allocations: 0.6562 kB / 1.09 GB, free: 3.734 MB / 0.8575 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.0003631/0.8624, allocations: 353.8 kB / 1.09 GB, free: 3.359 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.8624, allocations: 9.594 kB / 1.09 GB, free: 3.359 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.924e-05/0.8625, allocations: 40.38 kB / 1.09 GB, free: 3.312 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.032e-05/0.8625, allocations: 6.594 kB / 1.09 GB, free: 3.309 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.012e-05/0.8626, allocations: 166.9 kB / 1.091 GB, free: 3.109 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.124e-05/0.8626, allocations: 1.594 kB / 1.091 GB, free: 3.109 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.771e-05/0.8626, allocations: 2.75 kB / 1.091 GB, free: 3.109 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001054/0.8627, allocations: 43.08 kB / 1.091 GB, free: 3.07 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.8627, allocations: 5.75 kB / 1.091 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.041e-05/0.8628, allocations: 0 / 1.091 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.45e-06/0.8628, allocations: 5.062 kB / 1.091 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.294e-05/0.8628, allocations: 12.3 kB / 1.091 GB, free: 3.059 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001438/0.863, allocations: 158.3 kB / 1.091 GB, free: 2.863 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001816/0.8632, allocations: 43.98 kB / 1.091 GB, free: 2.832 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.575e-05/0.8632, allocations: 18.06 kB / 1.091 GB, free: 2.82 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.385e-05/0.8632, allocations: 1.922 kB / 1.091 GB, free: 2.82 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.789e-05/0.8633, allocations: 35.66 kB / 1.091 GB, free: 2.777 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 1.072e-06/0.8633, allocations: 3.938 kB / 1.091 GB, free: 2.773 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0005989/0.8639, allocations: 305.4 kB / 1.091 GB, free: 2.492 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.022e-05/0.8639, allocations: 60.53 kB / 1.091 GB, free: 2.422 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.4e-05/0.864, allocations: 95.94 kB / 1.091 GB, free: 2.324 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 8.997e-06/0.864, allocations: 27.3 kB / 1.091 GB, free: 2.293 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 1.731e-05/0.864, allocations: 84.14 kB / 1.091 GB, free: 2.207 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.76e-05/0.864, allocations: 19.66 kB / 1.091 GB, free: 2.191 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.34e-05/0.8641, allocations: 20.64 kB / 1.091 GB, free: 2.172 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.161e-05/0.8641, allocations: 321.7 kB / 1.092 GB, free: 1.852 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.633e-05/0.8642, allocations: 7.703 kB / 1.092 GB, free: 1.852 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.322e-05/0.8642, allocations: 12.08 kB / 1.092 GB, free: 1.848 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.975e-05/0.8642, allocations: 38.41 kB / 1.092 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.01e-07/0.8643, allocations: 0 / 1.092 GB, free: 1.824 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.368e-05/0.8643, allocations: 72.03 kB / 1.092 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.694e-05/0.8644, allocations: 5.109 kB / 1.092 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.97e-06/0.8644, allocations: 1.641 kB / 1.092 GB, free: 1.773 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.8644, allocations: 3.984 kB / 1.092 GB, free: 1.77 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.978e-05/0.8645, allocations: 14.94 kB / 1.092 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.631e-06/0.8645, allocations: 1.391 kB / 1.092 GB, free: 1.766 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.767e-05/0.8645, allocations: 4 kB / 1.092 GB, free: 1.762 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.395e-06/0.8645, allocations: 6.812 kB / 1.092 GB, free: 1.758 MB / 0.8575 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 4.902e-05/0.8646, allocations: 108.9 kB / 1.092 GB, free: 1.645 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.123e-05/0.8646, allocations: 5.094 kB / 1.092 GB, free: 1.641 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001424/0.8647, allocations: 77 kB / 1.092 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.8647, allocations: 1 kB / 1.092 GB, free: 1.582 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.69e-06/0.8647, allocations: 5.859 kB / 1.092 GB, free: 1.578 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.8647, allocations: 0 / 1.092 GB, free: 1.578 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000269/0.865, allocations: 312.7 kB / 1.092 GB, free: 1.254 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.865, allocations: 4.844 kB / 1.092 GB, free: 1.25 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.638e-05/0.8651, allocations: 11.83 kB / 1.092 GB, free: 1.25 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.417e-06/0.8651, allocations: 4.781 kB / 1.092 GB, free: 1.246 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.888e-06/0.8651, allocations: 2.281 kB / 1.092 GB, free: 1.246 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.8651, allocations: 0.8438 kB / 1.092 GB, free: 1.246 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.224e-06/0.8651, allocations: 0.875 kB / 1.092 GB, free: 1.246 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001645/0.8653, allocations: 187.4 kB / 1.093 GB, free: 1.078 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.332e-05/0.8654, allocations: 82.64 kB / 1.093 GB, free: 0.9844 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.655e-05/0.8654, allocations: 5.531 kB / 1.093 GB, free: 0.9805 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.645e-05/0.8655, allocations: 2.344 kB / 1.093 GB, free: 0.9805 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.906e-05/0.8655, allocations: 7.641 kB / 1.093 GB, free: 0.9766 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.923e-06/0.8655, allocations: 2.219 kB / 1.093 GB, free: 0.9766 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.043e-05/0.8655, allocations: 82.55 kB / 1.093 GB, free: 0.8984 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8655, allocations: 0 / 1.093 GB, free: 0.8984 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.000265/0.8658, allocations: 23.67 kB / 1.093 GB, free: 0.8906 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (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 (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.0005442/0.8663, allocations: 0.7361 MB / 1.094 GB, free: 16.2 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0001258/0.8665, allocations: 35.34 kB / 1.094 GB, free: 16.18 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.8665, allocations: 1.062 kB / 1.094 GB, free: 16.18 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 3.696e-05/0.8665, allocations: 21.41 kB / 1.094 GB, free: 16.18 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002171/0.8668, allocations: 2.844 kB / 1.094 GB, free: 16.18 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001204/0.868, allocations: 1.337 MB / 1.095 GB, free: 14.89 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002398/0.8682, allocations: 0.6789 MB / 1.096 GB, free: 14.2 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 3.045e-05/0.8683, allocations: 4.172 kB / 1.096 GB, free: 14.2 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.766e-05/0.8683, allocations: 16.41 kB / 1.096 GB, free: 14.19 MB / 0.8731 GB Notification: Performance of SimCode: time 5.01e-07/0.8683, allocations: 0 / 1.096 GB, free: 14.19 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0197/0.888, allocations: 1.609 MB / 1.097 GB, free: 13.84 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.792/8.68, allocations: 10.72 kB / 1.097 GB, free: 13.83 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.fmu > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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,m_flow,m_flow_comp Variables in the result:der(dp),der(m_flow),der(m_flow_comp),dp,err,k,m_flow,m_flow_comp,m_flow_turbulent,time