Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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_DerivativeCheck2,fileNamePrefix="Buildings_9_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_9_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.0009019/0.0009017, allocations: 97.95 kB / 15.36 MB, free: 0.7344 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.005779/0.005779, allocations: 170.5 kB / 16.27 MB, free: 6.648 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.369/1.369, allocations: 223.3 MB / 240.3 MB, free: 5.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.251/2.251, allocations: 390.9 MB / 0.6664 GB, free: 2.398 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004696/0.0004698, allocations: 8 kB / 0.8161 GB, free: 13.15 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5829/0.5834, allocations: 142.4 MB / 0.9552 GB, free: 7.633 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.001319/0.5847, allocations: 1.189 MB / 0.9563 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008841/0.5856, allocations: 0.6378 MB / 0.957 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.294e-05/0.5857, allocations: 1.25 kB / 0.957 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.5e-05/0.5857, allocations: 0 / 0.957 GB, free: 6.188 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.83e-05/0.5858, allocations: 9.406 kB / 0.957 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004192/0.5862, allocations: 129.3 kB / 0.9571 GB, free: 6.094 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.741e-05/0.5863, allocations: 55.25 kB / 0.9571 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.348e-05/0.5863, allocations: 2.75 kB / 0.9572 GB, free: 6.062 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.565e-05/0.5864, allocations: 26.06 kB / 0.9572 GB, free: 6.047 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.04e-05/0.5864, allocations: 23.23 kB / 0.9572 GB, free: 6.031 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.37e-05/0.5864, allocations: 7.219 kB / 0.9572 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000433/0.5869, allocations: 350.9 kB / 0.9575 GB, free: 5.824 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.479e-05/0.5869, allocations: 9.281 kB / 0.9575 GB, free: 5.816 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.324e-05/0.5869, allocations: 53.55 kB / 0.9576 GB, free: 5.766 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.000229/0.5872, allocations: 172.4 kB / 0.9578 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.5872, allocations: 5.375 kB / 0.9578 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.783e-06/0.5872, allocations: 0 / 0.9578 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.586e-06/0.5872, allocations: 0 / 0.9578 GB, free: 5.66 MB / 0.7169 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.0004618/0.5877, allocations: 391.9 kB / 0.9581 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.753e-05/0.5877, allocations: 9 kB / 0.9582 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.829e-05/0.5877, allocations: 36.5 kB / 0.9582 GB, free: 5.215 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.823e-05/0.5878, allocations: 16.36 kB / 0.9582 GB, free: 5.203 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.054e-05/0.5879, allocations: 166.1 kB / 0.9584 GB, free: 5.004 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.328e-05/0.5879, allocations: 7.938 kB / 0.9584 GB, free: 5 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.099e-05/0.5879, allocations: 7.938 kB / 0.9584 GB, free: 4.996 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002262/0.5881, allocations: 91.34 kB / 0.9585 GB, free: 4.93 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.5882, allocations: 7.844 kB / 0.9585 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.164e-05/0.5882, allocations: 1.25 kB / 0.9585 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.969e-06/0.5882, allocations: 1.344 kB / 0.9585 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002388/0.5884, allocations: 57.92 kB / 0.9585 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004489/0.5889, allocations: 321.7 kB / 0.9588 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002807/0.5892, allocations: 95.12 kB / 0.9589 GB, free: 4.523 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001175/0.5893, allocations: 35.45 kB / 0.959 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 2.121e-05/0.5893, allocations: 0.75 kB / 0.959 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.707e-05/0.5894, allocations: 35.81 kB / 0.959 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.212e-06/0.5894, allocations: 0 / 0.959 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.001515/0.5909, allocations: 0.6748 MB / 0.9597 GB, free: 3.883 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.142e-05/0.5909, allocations: 52.81 kB / 0.9597 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.132e-05/0.591, allocations: 102.9 kB / 0.9598 GB, free: 3.715 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.169e-05/0.591, allocations: 35.2 kB / 0.9598 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.596e-05/0.591, allocations: 93.75 kB / 0.9599 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.82e-05/0.5911, allocations: 39.97 kB / 0.96 GB, free: 3.547 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.555e-05/0.5911, allocations: 17.66 kB / 0.96 GB, free: 3.527 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.411e-05/0.5911, allocations: 320 kB / 0.9603 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001314/0.5913, allocations: 30.08 kB / 0.9603 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001203/0.5914, allocations: 43.31 kB / 0.9604 GB, free: 3.18 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000251/0.5917, allocations: 83.36 kB / 0.9604 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.91e-07/0.5917, allocations: 0 / 0.9604 GB, free: 3.141 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003048/0.592, allocations: 127.1 kB / 0.9606 GB, free: 3.07 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.249e-05/0.592, allocations: 5.5 kB / 0.9606 GB, free: 3.07 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.237e-06/0.592, allocations: 0 / 0.9606 GB, free: 3.07 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.027e-05/0.592, allocations: 1.375 kB / 0.9606 GB, free: 3.07 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000144/0.5922, allocations: 33.92 kB / 0.9606 GB, free: 3.059 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.5922, allocations: 5.312 kB / 0.9606 GB, free: 3.055 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.874e-05/0.5923, allocations: 13.48 kB / 0.9606 GB, free: 3.047 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.488e-06/0.5923, allocations: 6.75 kB / 0.9606 GB, free: 3.043 MB / 0.7169 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 5.297e-05/0.5923, allocations: 112.6 kB / 0.9607 GB, free: 2.926 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.882e-05/0.5924, allocations: 12.03 kB / 0.9607 GB, free: 2.918 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003549/0.5927, allocations: 125.9 kB / 0.9609 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.5927, allocations: 9.359 kB / 0.9609 GB, free: 2.832 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.5928, allocations: 5.406 kB / 0.9609 GB, free: 2.828 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.5928, allocations: 3.938 kB / 0.9609 GB, free: 2.824 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004692/0.5932, allocations: 388.9 kB / 0.9612 GB, free: 2.461 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.926e-06/0.5933, allocations: 0 / 0.9612 GB, free: 2.461 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001454/0.5934, allocations: 37.91 kB / 0.9613 GB, free: 2.445 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.5934, allocations: 5.312 kB / 0.9613 GB, free: 2.441 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.548e-06/0.5934, allocations: 1.375 kB / 0.9613 GB, free: 2.441 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.5934, allocations: 0 / 0.9613 GB, free: 2.441 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.5934, allocations: 1.375 kB / 0.9613 GB, free: 2.441 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004673/0.5939, allocations: 262.8 kB / 0.9615 GB, free: 2.25 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.836e-05/0.5939, allocations: 79.23 kB / 0.9616 GB, free: 2.156 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.695e-05/0.594, allocations: 8.969 kB / 0.9616 GB, free: 2.148 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001206/0.5941, allocations: 9.828 kB / 0.9616 GB, free: 2.145 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.836e-05/0.5941, allocations: 7.188 kB / 0.9616 GB, free: 2.141 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.067e-06/0.5941, allocations: 11.45 kB / 0.9617 GB, free: 2.133 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.13e-05/0.5942, allocations: 82.47 kB / 0.9617 GB, free: 2.055 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.3e-07/0.5942, allocations: 0 / 0.9617 GB, free: 2.055 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000272/0.5944, allocations: 38.62 kB / 0.9618 GB, free: 2.043 MB / 0.7169 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.0007156/0.5952, allocations: 0.8281 MB / 0.9626 GB, free: 1.305 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003243/0.5955, allocations: 93.7 kB / 0.9627 GB, free: 1.273 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.5955, allocations: 4 kB / 0.9627 GB, free: 1.27 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001435/0.5957, allocations: 51.41 kB / 0.9627 GB, free: 1.25 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002728/0.5959, allocations: 7.875 kB / 0.9627 GB, free: 1.246 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001763/0.5977, allocations: 1.683 MB / 0.9644 GB, free: 15.74 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002218/0.5979, allocations: 0.6915 MB / 0.965 GB, free: 15.04 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 6.273e-05/0.598, allocations: 18.92 kB / 0.9651 GB, free: 15.02 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.707e-05/0.5981, allocations: 25.86 kB / 0.9651 GB, free: 15.01 MB / 0.7325 GB Notification: Performance of SimCode: time 6.71e-07/0.5981, allocations: 0 / 0.9651 GB, free: 15.01 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.344/1.942, allocations: 2.086 MB / 0.9671 GB, free: 14.08 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003047/1.943, allocations: 252 kB / 0.9674 GB, free: 13.82 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.59/3.533, allocations: 1.094 kB / 0.9674 GB, free: 13.82 MB / 0.7325 GB (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_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