Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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_DerivativeCheck2,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,fileNamePrefix="Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_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.009458/0.009458, allocations: 104.4 kB / 15.74 MB, free: 5.949 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.0019/0.0019, allocations: 192.3 kB / 16.67 MB, free: 5.871 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.382/1.382, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.605/2.605, allocations: 461.9 MB / 0.7348 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001964/0.001964, allocations: 72.09 kB / 1.054 GB, free: 8.211 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9411/0.943, allocations: 157.4 MB / 1.207 GB, free: 13.59 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.003586/0.9467, allocations: 1.475 MB / 1.209 GB, free: 12.12 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001582/0.9483, allocations: 0.6266 MB / 1.209 GB, free: 11.49 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.328e-05/0.9484, allocations: 4 kB / 1.209 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 4.092e-05/0.9484, allocations: 7.875 kB / 1.209 GB, free: 11.48 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 7.521e-05/0.9486, allocations: 3.938 kB / 1.209 GB, free: 11.47 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008451/0.9494, allocations: 172.7 kB / 1.209 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001266/0.9496, allocations: 47.8 kB / 1.21 GB, free: 11.26 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 7.659e-05/0.9497, allocations: 15.95 kB / 1.21 GB, free: 11.24 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 8.166e-05/0.9497, allocations: 19.94 kB / 1.21 GB, free: 11.22 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 7.153e-05/0.9498, allocations: 27.91 kB / 1.21 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 2.298e-05/0.9499, allocations: 4 kB / 1.21 GB, free: 11.19 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0007545/0.9506, allocations: 343.4 kB / 1.21 GB, free: 10.86 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 2.857e-05/0.9507, allocations: 11.94 kB / 1.21 GB, free: 10.84 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 5.72e-05/0.9507, allocations: 35.78 kB / 1.21 GB, free: 10.81 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0004256/0.9512, allocations: 173.8 kB / 1.21 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 8.035e-06/0.9512, allocations: 4 kB / 1.21 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of FrontEnd: time 6.893e-06/0.9512, allocations: 0 / 1.21 GB, free: 10.64 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 6.251e-06/0.9512, allocations: 3.938 kB / 1.21 GB, free: 10.63 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0008155/0.952, allocations: 395.3 kB / 1.211 GB, free: 10.2 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.795e-05/0.9521, allocations: 8.031 kB / 1.211 GB, free: 10.19 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.465e-05/0.9522, allocations: 42.73 kB / 1.211 GB, free: 10.14 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.01e-05/0.9522, allocations: 8.844 kB / 1.211 GB, free: 10.13 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001463/0.9524, allocations: 164.3 kB / 1.211 GB, free: 9.93 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.349e-05/0.9525, allocations: 8.375 kB / 1.211 GB, free: 9.922 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.36e-05/0.9525, allocations: 8.375 kB / 1.211 GB, free: 9.914 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003212/0.9528, allocations: 78.22 kB / 1.211 GB, free: 9.832 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.377e-05/0.9529, allocations: 7.922 kB / 1.211 GB, free: 9.824 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.776e-05/0.9529, allocations: 7.938 kB / 1.211 GB, free: 9.816 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.741e-06/0.9529, allocations: 0 / 1.211 GB, free: 9.816 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003094/0.9532, allocations: 47.97 kB / 1.211 GB, free: 9.77 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007892/0.954, allocations: 320.7 kB / 1.211 GB, free: 9.406 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003639/0.9544, allocations: 78.47 kB / 1.211 GB, free: 9.32 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001437/0.9546, allocations: 28.84 kB / 1.211 GB, free: 9.289 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 3.37e-05/0.9546, allocations: 4.156 kB / 1.211 GB, free: 9.285 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.725e-05/0.9546, allocations: 42.5 kB / 1.211 GB, free: 9.234 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 1.763e-06/0.9547, allocations: 0 / 1.211 GB, free: 9.234 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11): time 0.002252/0.9569, allocations: 0.6383 MB / 1.212 GB, free: 8.504 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.701e-05/0.957, allocations: 55.41 kB / 1.212 GB, free: 8.438 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001032/0.9571, allocations: 105.8 kB / 1.212 GB, free: 8.324 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 2.744e-05/0.9571, allocations: 25.7 kB / 1.212 GB, free: 8.293 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 5.929e-05/0.9572, allocations: 95.98 kB / 1.212 GB, free: 8.195 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 5.144e-05/0.9573, allocations: 43.38 kB / 1.212 GB, free: 8.152 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.137e-05/0.9573, allocations: 29.7 kB / 1.212 GB, free: 8.117 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001835/0.9575, allocations: 318.8 kB / 1.213 GB, free: 7.797 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001642/0.9577, allocations: 35.91 kB / 1.213 GB, free: 7.762 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001589/0.9579, allocations: 35.86 kB / 1.213 GB, free: 7.73 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003151/0.9582, allocations: 68.83 kB / 1.213 GB, free: 7.66 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-06/0.9582, allocations: 0 / 1.213 GB, free: 7.66 MB / 0.9356 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0004702/0.9587, allocations: 125.7 kB / 1.213 GB, free: 7.531 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.9587, allocations: 4 kB / 1.213 GB, free: 7.527 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.566e-06/0.9587, allocations: 0 / 1.213 GB, free: 7.527 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.303e-05/0.9588, allocations: 4 kB / 1.213 GB, free: 7.523 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002233/0.959, allocations: 32.19 kB / 1.213 GB, free: 7.492 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.257e-06/0.959, allocations: 11.88 kB / 1.213 GB, free: 7.48 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.574e-05/0.9591, allocations: 4 kB / 1.213 GB, free: 7.477 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.092e-05/0.9591, allocations: 0 / 1.213 GB, free: 7.477 MB / 0.9356 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 0.0001296/0.9593, allocations: 121.8 kB / 1.213 GB, free: 7.348 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.862e-05/0.9593, allocations: 11.89 kB / 1.213 GB, free: 7.336 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004971/0.9598, allocations: 129.5 kB / 1.213 GB, free: 7.195 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.803e-06/0.9599, allocations: 4 kB / 1.213 GB, free: 7.191 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.937e-06/0.9599, allocations: 3.938 kB / 1.213 GB, free: 7.188 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.9599, allocations: 0 / 1.213 GB, free: 7.188 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008152/0.9607, allocations: 382.7 kB / 1.214 GB, free: 6.758 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.264e-06/0.9607, allocations: 4 kB / 1.214 GB, free: 6.754 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001985/0.9609, allocations: 27.92 kB / 1.214 GB, free: 6.727 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-06/0.961, allocations: 3.938 kB / 1.214 GB, free: 6.723 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.542e-05/0.961, allocations: 4 kB / 1.214 GB, free: 6.719 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.265e-06/0.961, allocations: 0 / 1.214 GB, free: 6.719 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.961, allocations: 4 kB / 1.214 GB, free: 6.715 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006769/0.9617, allocations: 247.3 kB / 1.214 GB, free: 6.457 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.289e-05/0.9617, allocations: 81.09 kB / 1.214 GB, free: 6.359 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.065e-05/0.9618, allocations: 7.938 kB / 1.214 GB, free: 6.352 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001635/0.962, allocations: 4.031 kB / 1.214 GB, free: 6.348 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.018e-05/0.962, allocations: 7.984 kB / 1.214 GB, free: 6.34 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.522e-05/0.962, allocations: 8 kB / 1.214 GB, free: 6.332 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 5.108e-05/0.9621, allocations: 79.28 kB / 1.214 GB, free: 6.254 MB / 0.9356 GB Notification: Performance of sort global known variables: time 2.254e-06/0.9621, allocations: 0 / 1.214 GB, free: 6.254 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0004703/0.9626, allocations: 47.86 kB / 1.214 GB, free: 6.207 MB / 0.9356 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (dp_comp,der_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 (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.00117/0.9637, allocations: 0.8139 MB / 1.215 GB, free: 5.367 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0004221/0.9642, allocations: 83.95 kB / 1.215 GB, free: 5.285 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.9642, allocations: 4 kB / 1.215 GB, free: 5.281 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001834/0.9644, allocations: 51.84 kB / 1.215 GB, free: 5.23 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005047/0.9649, allocations: 11.94 kB / 1.215 GB, free: 5.219 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002822/0.9677, allocations: 1.605 MB / 1.217 GB, free: 3.539 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004214/0.9682, allocations: 0.6885 MB / 1.217 GB, free: 2.824 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 8.401e-05/0.9683, allocations: 16.66 kB / 1.217 GB, free: 2.809 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.469e-05/0.9684, allocations: 23.42 kB / 1.217 GB, free: 2.785 MB / 0.9356 GB Notification: Performance of SimCode: time 1.042e-06/0.9684, allocations: 4 kB / 1.217 GB, free: 2.781 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03111/0.9995, allocations: 2.347 MB / 1.22 GB, free: 0.625 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.061/9.061, allocations: 21.8 kB / 1.22 GB, free: 0.6055 MB / 0.9356 GB (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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,dp,dp_comp,der(dp),der(dp_comp),err_dp,err_der_dp Variables in the result:cheEqu1.threShold,cheEqu1.u1,cheEqu1.u2,cheEqu1.y,cheEqu2.threShold,cheEqu2.u1,cheEqu2.u2,cheEqu2.y,der(der(m_flow)),der(der_dp),der(der_dp_comp),der(dp),der(dp_comp),der(m_flow),der_dp,der_dp_comp,dp,dp_comp,err_der_dp,err_dp,k,m_flow,m_flow_turbulent,time