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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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_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.007489/0.007489, allocations: 100.8 kB / 15.73 MB, free: 6.059 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.002163/0.002163, allocations: 193.8 kB / 16.67 MB, free: 5.969 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.207/1.207, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.368/2.368, allocations: 482.6 MB / 0.7551 GB, free: 6.609 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001649/0.00165, allocations: 64.62 kB / 1.083 GB, free: 13.76 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2466/0.2483, allocations: 162.3 MB / 1.242 GB, free: 8.875 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002192/0.2505, allocations: 1.49 MB / 1.243 GB, free: 7.375 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0009426/0.2515, allocations: 0.6281 MB / 1.244 GB, free: 6.746 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.921e-05/0.2515, allocations: 0 / 1.244 GB, free: 6.746 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.522e-05/0.2515, allocations: 3.938 kB / 1.244 GB, free: 6.742 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.363e-05/0.2516, allocations: 15.91 kB / 1.244 GB, free: 6.727 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004963/0.2521, allocations: 155.4 kB / 1.244 GB, free: 6.574 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 7.771e-05/0.2522, allocations: 55.77 kB / 1.244 GB, free: 6.52 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 3.365e-05/0.2522, allocations: 4 kB / 1.244 GB, free: 6.516 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 5.083e-05/0.2523, allocations: 19.92 kB / 1.244 GB, free: 6.496 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 3.981e-05/0.2523, allocations: 27.91 kB / 1.244 GB, free: 6.469 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.286e-05/0.2523, allocations: 4 kB / 1.244 GB, free: 6.465 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004787/0.2528, allocations: 347.3 kB / 1.245 GB, free: 6.125 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.996e-05/0.2529, allocations: 19.91 kB / 1.245 GB, free: 6.105 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 3.074e-05/0.2529, allocations: 23.88 kB / 1.245 GB, free: 6.082 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002693/0.2532, allocations: 175.7 kB / 1.245 GB, free: 5.91 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.2532, allocations: 4 kB / 1.245 GB, free: 5.906 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.062e-06/0.2532, allocations: 3.938 kB / 1.245 GB, free: 5.902 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.049e-06/0.2532, allocations: 4 kB / 1.245 GB, free: 5.898 MB / 0.9669 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.0005173/0.2537, allocations: 394.9 kB / 1.245 GB, free: 5.461 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 2.921e-05/0.2537, allocations: 12.03 kB / 1.245 GB, free: 5.449 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.842e-05/0.2538, allocations: 38.75 kB / 1.245 GB, free: 5.402 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.673e-05/0.2538, allocations: 8.891 kB / 1.245 GB, free: 5.395 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001169/0.2539, allocations: 172.3 kB / 1.245 GB, free: 5.188 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.495e-05/0.254, allocations: 12.38 kB / 1.245 GB, free: 5.176 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.089e-05/0.254, allocations: 12.34 kB / 1.245 GB, free: 5.164 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002037/0.2542, allocations: 77.22 kB / 1.245 GB, free: 5.086 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.103e-05/0.2542, allocations: 3.938 kB / 1.245 GB, free: 5.082 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.087e-05/0.2542, allocations: 4 kB / 1.245 GB, free: 5.078 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.622e-06/0.2543, allocations: 4 kB / 1.245 GB, free: 5.074 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002108/0.2545, allocations: 51.95 kB / 1.245 GB, free: 5.023 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004692/0.2549, allocations: 324.6 kB / 1.246 GB, free: 4.656 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002551/0.2552, allocations: 78.53 kB / 1.246 GB, free: 4.57 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001052/0.2553, allocations: 32.84 kB / 1.246 GB, free: 4.535 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.552e-05/0.2553, allocations: 0 / 1.246 GB, free: 4.535 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.741e-05/0.2554, allocations: 30.56 kB / 1.246 GB, free: 4.496 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 2.425e-06/0.2554, allocations: 0 / 1.246 GB, free: 4.496 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11): time 0.001449/0.2568, allocations: 0.654 MB / 1.247 GB, free: 3.75 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.435e-05/0.2569, allocations: 51.41 kB / 1.247 GB, free: 3.688 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.459e-05/0.257, allocations: 105.8 kB / 1.247 GB, free: 3.574 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 2.19e-05/0.257, allocations: 29.7 kB / 1.247 GB, free: 3.539 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.123e-05/0.257, allocations: 88.09 kB / 1.247 GB, free: 3.449 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.493e-05/0.2571, allocations: 47.58 kB / 1.247 GB, free: 3.402 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.069e-05/0.2571, allocations: 29.7 kB / 1.247 GB, free: 3.367 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001164/0.2572, allocations: 314.8 kB / 1.247 GB, free: 3.051 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001219/0.2574, allocations: 35.97 kB / 1.247 GB, free: 3.016 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001072/0.2575, allocations: 23.98 kB / 1.247 GB, free: 2.992 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002302/0.2577, allocations: 80.77 kB / 1.247 GB, free: 2.91 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.91e-07/0.2577, allocations: 96 / 1.247 GB, free: 2.91 MB / 0.9669 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002917/0.258, allocations: 129.3 kB / 1.247 GB, free: 2.781 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.074e-05/0.258, allocations: 10.19 kB / 1.247 GB, free: 2.773 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.875e-06/0.258, allocations: 0 / 1.247 GB, free: 2.773 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.668e-06/0.2581, allocations: 0 / 1.247 GB, free: 2.773 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001281/0.2582, allocations: 23.98 kB / 1.248 GB, free: 2.75 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.422e-06/0.2582, allocations: 3.938 kB / 1.248 GB, free: 2.746 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.687e-05/0.2583, allocations: 8 kB / 1.248 GB, free: 2.738 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.156e-05/0.2583, allocations: 11.98 kB / 1.248 GB, free: 2.727 MB / 0.9669 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.768e-05/0.2584, allocations: 117.8 kB / 1.248 GB, free: 2.602 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.829e-05/0.2584, allocations: 7.953 kB / 1.248 GB, free: 2.594 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003259/0.2587, allocations: 117.6 kB / 1.248 GB, free: 2.473 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.2587, allocations: 0 / 1.248 GB, free: 2.473 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.2587, allocations: 7.938 kB / 1.248 GB, free: 2.465 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.2588, allocations: 4.172 kB / 1.248 GB, free: 2.461 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005176/0.2593, allocations: 386.4 kB / 1.248 GB, free: 2.027 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.2593, allocations: 0 / 1.248 GB, free: 2.027 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001297/0.2594, allocations: 27.98 kB / 1.248 GB, free: 2 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.235e-06/0.2594, allocations: 11.92 kB / 1.248 GB, free: 1.988 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.728e-06/0.2594, allocations: 3.984 kB / 1.248 GB, free: 1.984 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.2595, allocations: 0 / 1.248 GB, free: 1.984 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2595, allocations: 0 / 1.248 GB, free: 1.984 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004579/0.2599, allocations: 255.6 kB / 1.248 GB, free: 1.719 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.205e-05/0.26, allocations: 85.09 kB / 1.249 GB, free: 1.617 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.454e-05/0.26, allocations: 3.938 kB / 1.249 GB, free: 1.613 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001062/0.2601, allocations: 11.98 kB / 1.249 GB, free: 1.602 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.507e-05/0.2601, allocations: 4 kB / 1.249 GB, free: 1.598 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.458e-06/0.2601, allocations: 4 kB / 1.249 GB, free: 1.594 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.865e-05/0.2602, allocations: 87.33 kB / 1.249 GB, free: 1.508 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2602, allocations: 0 / 1.249 GB, free: 1.508 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002328/0.2604, allocations: 35.88 kB / 1.249 GB, free: 1.473 MB / 0.9669 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.0007952/0.2612, allocations: 0.826 MB / 1.249 GB, free: 0.6211 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0002785/0.2615, allocations: 83.95 kB / 1.25 GB, free: 0.5391 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.2615, allocations: 0 / 1.25 GB, free: 0.5391 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001313/0.2617, allocations: 47.91 kB / 1.25 GB, free: 0.4922 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002341/0.2619, allocations: 12.06 kB / 1.25 GB, free: 492 kB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001823/0.2637, allocations: 1.604 MB / 1.251 GB, free: 14.8 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000265/0.264, allocations: 0.6925 MB / 1.252 GB, free: 14.08 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 4.866e-05/0.2641, allocations: 12.66 kB / 1.252 GB, free: 14.07 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.553e-05/0.2641, allocations: 27.42 kB / 1.252 GB, free: 14.04 MB / 0.9825 GB Notification: Performance of SimCode: time 2.11e-07/0.2641, allocations: 0 / 1.252 GB, free: 14.04 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.516/1.78, allocations: 2.324 MB / 1.254 GB, free: 11.91 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.872/11.65, allocations: 14.14 kB / 1.254 GB, free: 11.89 MB / 0.9825 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=400 --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) 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