Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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_m_flow_DerivativeCheck,fileNamePrefix="Buildings_9_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_9_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.007772/0.007772, allocations: 105.4 kB / 15.74 MB, free: 6.008 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.001812/0.001812, allocations: 199.9 kB / 16.68 MB, free: 5.93 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.372/1.372, allocations: 222.9 MB / 240.4 MB, free: 4.164 MB / 190.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.153/2.153, allocations: 390.3 MB / 0.6648 GB, free: 156 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001104/0.001104, allocations: 66.8 kB / 0.9504 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2059/0.207, allocations: 140.4 MB / 1.087 GB, free: 1.988 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.00197/0.209, allocations: 1.293 MB / 1.089 GB, free: 0.6836 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0008729/0.2099, allocations: 0.6128 MB / 1.089 GB, free: 72 kB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.071e-05/0.2099, allocations: 0 / 1.089 GB, free: 72 kB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 1.591e-05/0.2099, allocations: 0 / 1.089 GB, free: 72 kB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 3.184e-05/0.21, allocations: 3.938 kB / 1.089 GB, free: 68 kB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.000502/0.2105, allocations: 145.2 kB / 1.089 GB, free: 15.93 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 5.906e-05/0.2105, allocations: 31.91 kB / 1.09 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.502e-05/0.2106, allocations: 3.938 kB / 1.09 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 2.863e-05/0.2106, allocations: 4 kB / 1.09 GB, free: 15.89 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 4.43e-05/0.2107, allocations: 15.92 kB / 1.09 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 8.906e-06/0.2107, allocations: 0 / 1.09 GB, free: 15.87 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004344/0.2111, allocations: 347.3 kB / 1.09 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 9.358e-06/0.2111, allocations: 0 / 1.09 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.061e-05/0.2112, allocations: 7.938 kB / 1.09 GB, free: 15.52 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002306/0.2114, allocations: 151.1 kB / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.2114, allocations: 0 / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.062e-06/0.2114, allocations: 0 / 1.09 GB, free: 15.38 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.32e-06/0.2114, allocations: 4 kB / 1.09 GB, free: 15.38 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.0003405/0.2118, allocations: 363.7 kB / 1.09 GB, free: 14.97 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.184e-05/0.2118, allocations: 8.031 kB / 1.09 GB, free: 14.96 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.089e-05/0.2119, allocations: 34.69 kB / 1.09 GB, free: 14.92 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.582e-05/0.2119, allocations: 8.844 kB / 1.09 GB, free: 14.91 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.748e-05/0.212, allocations: 164.4 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.636e-06/0.212, allocations: 384 / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.575e-05/0.212, allocations: 4.375 kB / 1.091 GB, free: 14.71 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.594e-05/0.2121, allocations: 42.25 kB / 1.091 GB, free: 14.66 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.263e-06/0.2121, allocations: 7.938 kB / 1.091 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.696e-06/0.2121, allocations: 0 / 1.091 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.476e-06/0.2121, allocations: 3.938 kB / 1.091 GB, free: 14.65 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.397e-05/0.2122, allocations: 8 kB / 1.091 GB, free: 14.64 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001347/0.2123, allocations: 157.7 kB / 1.091 GB, free: 14.44 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001539/0.2125, allocations: 42.61 kB / 1.091 GB, free: 14.39 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.083e-05/0.2125, allocations: 20.94 kB / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.576e-05/0.2125, allocations: 4 kB / 1.091 GB, free: 14.36 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.108e-05/0.2126, allocations: 30.56 kB / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 1.002e-06/0.2126, allocations: 3.938 kB / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0005168/0.2131, allocations: 310.5 kB / 1.091 GB, free: 13.96 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.85e-05/0.2131, allocations: 51.41 kB / 1.091 GB, free: 13.9 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.441e-05/0.2132, allocations: 101.8 kB / 1.091 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.11e-05/0.2132, allocations: 29.7 kB / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 2.415e-05/0.2132, allocations: 80.14 kB / 1.091 GB, free: 13.67 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.589e-05/0.2133, allocations: 27.64 kB / 1.091 GB, free: 13.64 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.003e-05/0.2133, allocations: 17.72 kB / 1.091 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 8.505e-05/0.2134, allocations: 314.8 kB / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.323e-05/0.2134, allocations: 11.98 kB / 1.092 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.947e-05/0.2134, allocations: 12 kB / 1.092 GB, free: 13.28 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.301e-05/0.2135, allocations: 36.84 kB / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.814e-06/0.2135, allocations: 4 kB / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7) (initialization): time 8.807e-05/0.2136, allocations: 77.55 kB / 1.092 GB, free: 13.16 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 9.978e-06/0.2136, allocations: 8 kB / 1.092 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.557e-06/0.2136, allocations: 0 / 1.092 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.398e-06/0.2136, allocations: 0 / 1.092 GB, free: 13.15 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.709e-05/0.2137, allocations: 11.98 kB / 1.092 GB, free: 13.14 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.142e-06/0.2137, allocations: 4 kB / 1.092 GB, free: 13.13 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.651e-05/0.2137, allocations: 0 / 1.092 GB, free: 13.13 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.322e-06/0.2137, allocations: 4 kB / 1.092 GB, free: 13.13 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 6.87e-05/0.2138, allocations: 113.8 kB / 1.092 GB, free: 13.01 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.154e-05/0.2138, allocations: 3.938 kB / 1.092 GB, free: 13 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001196/0.214, allocations: 81.52 kB / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.985e-06/0.214, allocations: 4 kB / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.214, allocations: 128 / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.214, allocations: 4 kB / 1.092 GB, free: 12.91 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002602/0.2142, allocations: 311.4 kB / 1.092 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.2143, allocations: 0 / 1.092 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.598e-05/0.2143, allocations: 12 kB / 1.092 GB, free: 12.53 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.406e-06/0.2143, allocations: 8.016 kB / 1.092 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.63e-06/0.2143, allocations: 0 / 1.092 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.2143, allocations: 0 / 1.092 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.2143, allocations: 4 kB / 1.092 GB, free: 12.52 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001551/0.2145, allocations: 184.2 kB / 1.093 GB, free: 12.32 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.795e-05/0.2146, allocations: 85.12 kB / 1.093 GB, free: 12.22 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.041e-05/0.2146, allocations: 0 / 1.093 GB, free: 12.22 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.624e-05/0.2146, allocations: 8.062 kB / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.277e-05/0.2147, allocations: 4 kB / 1.093 GB, free: 12.21 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.881e-06/0.2147, allocations: 3.984 kB / 1.093 GB, free: 12.2 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.998e-05/0.2147, allocations: 79.28 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2147, allocations: 0 / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002286/0.2149, allocations: 24 kB / 1.093 GB, free: 12.1 MB / 0.8575 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.0004046/0.2154, allocations: 0.7367 MB / 1.094 GB, free: 11.34 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 8.499e-05/0.2155, allocations: 31.98 kB / 1.094 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.2155, allocations: 0 / 1.094 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 2.931e-05/0.2155, allocations: 19.94 kB / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001975/0.2157, allocations: 4.953 kB / 1.094 GB, free: 11.28 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009833/0.2167, allocations: 1.331 MB / 1.095 GB, free: 9.867 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001874/0.2169, allocations: 0.6768 MB / 1.096 GB, free: 9.164 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 2.713e-05/0.2169, allocations: 8.062 kB / 1.096 GB, free: 9.156 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.792e-05/0.217, allocations: 15.42 kB / 1.096 GB, free: 9.141 MB / 0.8575 GB Notification: Performance of SimCode: time 2.3e-07/0.217, allocations: 0 / 1.096 GB, free: 9.141 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.208/3.425, allocations: 1.628 MB / 1.097 GB, free: 7.695 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.81/14.24, allocations: 20.98 kB / 1.097 GB, free: 7.68 MB / 0.8575 GB (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.fmu > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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