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.006504/0.006504, allocations: 100.7 kB / 15.73 MB, free: 6.004 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.001388/0.001388, allocations: 195.4 kB / 16.68 MB, free: 5.926 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.356/1.356, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.715/2.715, allocations: 461.9 MB / 0.7348 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001426/0.001426, allocations: 63.83 kB / 1.054 GB, free: 8.203 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9723/0.9738, allocations: 157.4 MB / 1.207 GB, free: 13.56 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.003266/0.9771, allocations: 1.474 MB / 1.209 GB, free: 12.08 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.001298/0.9784, allocations: 0.6305 MB / 1.209 GB, free: 11.45 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.35e-05/0.9785, allocations: 4 kB / 1.209 GB, free: 11.45 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 4.654e-05/0.9786, allocations: 3.938 kB / 1.209 GB, free: 11.44 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 7.308e-05/0.9787, allocations: 3.938 kB / 1.209 GB, free: 11.44 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.001002/0.9797, allocations: 170.2 kB / 1.21 GB, free: 11.27 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.0001369/0.9799, allocations: 43.91 kB / 1.21 GB, free: 11.23 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 6.302e-05/0.98, allocations: 11.98 kB / 1.21 GB, free: 11.22 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 9.228e-05/0.9801, allocations: 23.92 kB / 1.21 GB, free: 11.2 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 6.527e-05/0.9801, allocations: 35.83 kB / 1.21 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 1.869e-05/0.9802, allocations: 4 kB / 1.21 GB, free: 11.16 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006443/0.9808, allocations: 347.3 kB / 1.21 GB, free: 10.82 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 3.118e-05/0.9809, allocations: 8 kB / 1.21 GB, free: 10.81 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 4.671e-05/0.9809, allocations: 23.86 kB / 1.21 GB, free: 10.79 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.0004339/0.9813, allocations: 177.8 kB / 1.21 GB, free: 10.61 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 6.923e-06/0.9814, allocations: 0 / 1.21 GB, free: 10.61 MB / 0.9356 GB Notification: Performance of FrontEnd: time 2.074e-06/0.9814, allocations: 7.938 kB / 1.21 GB, free: 10.61 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 7.534e-06/0.9814, allocations: 0 / 1.21 GB, free: 10.61 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.0007806/0.9822, allocations: 399.3 kB / 1.211 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 5.711e-05/0.9822, allocations: 8.031 kB / 1.211 GB, free: 10.16 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.652e-05/0.9823, allocations: 38.73 kB / 1.211 GB, free: 10.11 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.741e-05/0.9824, allocations: 8.844 kB / 1.211 GB, free: 10.1 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001602/0.9825, allocations: 172.3 kB / 1.211 GB, free: 9.895 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.557e-05/0.9826, allocations: 4.375 kB / 1.211 GB, free: 9.891 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.197e-05/0.9826, allocations: 12.38 kB / 1.211 GB, free: 9.879 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002871/0.9829, allocations: 82.16 kB / 1.211 GB, free: 9.793 MB / 0.9356 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.733e-05/0.9829, allocations: 3.938 kB / 1.211 GB, free: 9.789 MB / 0.9356 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.542e-05/0.983, allocations: 4 kB / 1.211 GB, free: 9.785 MB / 0.9356 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.983, allocations: 0 / 1.211 GB, free: 9.785 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002501/0.9832, allocations: 47.95 kB / 1.211 GB, free: 9.738 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007339/0.984, allocations: 328.6 kB / 1.211 GB, free: 9.367 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003189/0.9843, allocations: 78.53 kB / 1.211 GB, free: 9.281 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001224/0.9844, allocations: 32.83 kB / 1.211 GB, free: 9.246 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 2.531e-05/0.9845, allocations: 0 / 1.211 GB, free: 9.246 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.998e-05/0.9845, allocations: 46.5 kB / 1.211 GB, free: 9.191 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=7): time 1.533e-06/0.9845, allocations: 0 / 1.211 GB, free: 9.191 MB / 0.9356 GB Notification: Performance of matching and sorting (n=11): time 0.001891/0.9864, allocations: 0.6461 MB / 1.212 GB, free: 8.453 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.723e-05/0.9865, allocations: 55.41 kB / 1.212 GB, free: 8.387 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.14e-05/0.9866, allocations: 101.8 kB / 1.212 GB, free: 8.277 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 3.121e-05/0.9866, allocations: 25.7 kB / 1.212 GB, free: 8.246 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 6.021e-05/0.9867, allocations: 99.97 kB / 1.212 GB, free: 8.145 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 4.126e-05/0.9868, allocations: 35.45 kB / 1.212 GB, free: 8.109 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.122e-05/0.9868, allocations: 25.72 kB / 1.212 GB, free: 8.078 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001456/0.987, allocations: 322.8 kB / 1.213 GB, free: 7.754 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001378/0.9871, allocations: 27.98 kB / 1.213 GB, free: 7.727 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001269/0.9873, allocations: 35.97 kB / 1.213 GB, free: 7.691 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002551/0.9875, allocations: 68.83 kB / 1.213 GB, free: 7.621 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.677e-06/0.9875, allocations: 0 / 1.213 GB, free: 7.621 MB / 0.9356 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003798/0.9879, allocations: 125.4 kB / 1.213 GB, free: 7.496 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.314e-05/0.988, allocations: 8 kB / 1.213 GB, free: 7.488 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.156e-06/0.988, allocations: 0 / 1.213 GB, free: 7.488 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.948e-05/0.988, allocations: 192 / 1.213 GB, free: 7.488 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001724/0.9882, allocations: 31.98 kB / 1.213 GB, free: 7.457 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/0.9882, allocations: 3.938 kB / 1.213 GB, free: 7.453 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.597e-05/0.9883, allocations: 7.984 kB / 1.213 GB, free: 7.445 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.332e-05/0.9883, allocations: 0 / 1.213 GB, free: 7.445 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.0001354/0.9884, allocations: 121.8 kB / 1.213 GB, free: 7.316 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.335e-05/0.9885, allocations: 15.89 kB / 1.213 GB, free: 7.301 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004323/0.9889, allocations: 129.6 kB / 1.213 GB, free: 7.16 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.005e-06/0.9889, allocations: 4 kB / 1.213 GB, free: 7.156 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.315e-06/0.989, allocations: 3.938 kB / 1.213 GB, free: 7.152 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.91e-06/0.989, allocations: 0 / 1.213 GB, free: 7.152 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006798/0.9897, allocations: 390.4 kB / 1.214 GB, free: 6.715 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.136e-06/0.9897, allocations: 0 / 1.214 GB, free: 6.715 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001537/0.9898, allocations: 27.98 kB / 1.214 GB, free: 6.688 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.29e-06/0.9898, allocations: 3.938 kB / 1.214 GB, free: 6.684 MB / 0.9356 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.154e-05/0.9899, allocations: 0 / 1.214 GB, free: 6.684 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.9899, allocations: 0 / 1.214 GB, free: 6.684 MB / 0.9356 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.446e-06/0.9899, allocations: 4 kB / 1.214 GB, free: 6.68 MB / 0.9356 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005518/0.9904, allocations: 247.3 kB / 1.214 GB, free: 6.422 MB / 0.9356 GB Notification: Performance of postOpt removeConstants (simulation): time 5.71e-05/0.9905, allocations: 81.17 kB / 1.214 GB, free: 6.324 MB / 0.9356 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.755e-05/0.9905, allocations: 11.92 kB / 1.214 GB, free: 6.312 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001157/0.9907, allocations: 7.969 kB / 1.214 GB, free: 6.305 MB / 0.9356 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.265e-05/0.9907, allocations: 7.984 kB / 1.214 GB, free: 6.297 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.37e-05/0.9907, allocations: 8 kB / 1.214 GB, free: 6.289 MB / 0.9356 GB Notification: Performance of sorting global known variables: time 4.671e-05/0.9908, allocations: 79.28 kB / 1.214 GB, free: 6.211 MB / 0.9356 GB Notification: Performance of sort global known variables: time 3.61e-07/0.9908, allocations: 0 / 1.214 GB, free: 6.211 MB / 0.9356 GB Notification: Performance of remove unused functions: time 0.0003083/0.9911, allocations: 43.92 kB / 1.214 GB, free: 6.168 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.001037/0.9921, allocations: 0.8138 MB / 1.215 GB, free: 5.328 MB / 0.9356 GB Notification: Performance of simCode: created initialization part: time 0.0003623/0.9925, allocations: 88.42 kB / 1.215 GB, free: 5.242 MB / 0.9356 GB Notification: Performance of simCode: created event and clocks part: time 3.677e-06/0.9925, allocations: 64 / 1.215 GB, free: 5.242 MB / 0.9356 GB Notification: Performance of simCode: created simulation system equations: time 0.0001519/0.9927, allocations: 47.92 kB / 1.215 GB, free: 5.195 MB / 0.9356 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003717/0.9931, allocations: 12.2 kB / 1.215 GB, free: 5.184 MB / 0.9356 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002432/0.9955, allocations: 1.606 MB / 1.217 GB, free: 3.5 MB / 0.9356 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003404/0.9959, allocations: 0.6846 MB / 1.217 GB, free: 2.789 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 8.014e-05/0.996, allocations: 16.59 kB / 1.217 GB, free: 2.773 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.416e-05/0.9961, allocations: 27.42 kB / 1.217 GB, free: 2.746 MB / 0.9356 GB Notification: Performance of SimCode: time 8.61e-07/0.9961, allocations: 4 kB / 1.217 GB, free: 2.742 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02645/1.023, allocations: 2.345 MB / 1.22 GB, free: 0.5898 MB / 0.9356 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.38/9.402, allocations: 19.84 kB / 1.22 GB, free: 0.5703 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