Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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_DerivativeCheck,fileNamePrefix="Buildings_latest_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_latest_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.008692/0.008692, allocations: 99.45 kB / 15.73 MB, free: 6.043 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.001747/0.001747, allocations: 185.6 kB / 16.67 MB, free: 5.977 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.404/1.404, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.842/2.842, allocations: 461.9 MB / 0.7348 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001432/0.001432, allocations: 67.89 kB / 1.054 GB, free: 7.695 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3452/0.3466, allocations: 157.4 MB / 1.207 GB, free: 10.2 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.00263/0.3493, allocations: 1.292 MB / 1.209 GB, free: 8.898 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001059/0.3504, allocations: 0.6071 MB / 1.209 GB, free: 8.289 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.154e-05/0.3504, allocations: 4 kB / 1.209 GB, free: 8.285 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.323e-05/0.3505, allocations: 7.922 kB / 1.209 GB, free: 8.277 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.116e-05/0.3505, allocations: 0 / 1.209 GB, free: 8.277 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006773/0.3512, allocations: 143.4 kB / 1.209 GB, free: 8.137 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 7.142e-05/0.3513, allocations: 23.86 kB / 1.209 GB, free: 8.113 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 4.454e-05/0.3513, allocations: 0 / 1.209 GB, free: 8.113 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 4.014e-05/0.3514, allocations: 11.94 kB / 1.209 GB, free: 8.102 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 5.124e-05/0.3514, allocations: 3.938 kB / 1.209 GB, free: 8.098 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.406e-05/0.3515, allocations: 8 kB / 1.209 GB, free: 8.09 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005479/0.352, allocations: 347.3 kB / 1.21 GB, free: 7.75 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.561e-05/0.352, allocations: 7.984 kB / 1.21 GB, free: 7.742 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.828e-05/0.3521, allocations: 11.92 kB / 1.21 GB, free: 7.73 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002818/0.3524, allocations: 136 kB / 1.21 GB, free: 7.598 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.3524, allocations: 0 / 1.21 GB, free: 7.598 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.452e-06/0.3524, allocations: 0 / 1.21 GB, free: 7.598 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.871e-06/0.3524, allocations: 0 / 1.21 GB, free: 7.598 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004948/0.3529, allocations: 368.8 kB / 1.21 GB, free: 7.188 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.544e-05/0.353, allocations: 15.91 kB / 1.21 GB, free: 7.172 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.655e-05/0.353, allocations: 42.75 kB / 1.21 GB, free: 7.121 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.928e-05/0.353, allocations: 0.9375 kB / 1.21 GB, free: 7.121 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001268/0.3532, allocations: 160.4 kB / 1.21 GB, free: 6.926 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.457e-05/0.3532, allocations: 4.375 kB / 1.21 GB, free: 6.922 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.394e-05/0.3532, allocations: 4.359 kB / 1.21 GB, free: 6.918 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001043/0.3533, allocations: 38.27 kB / 1.21 GB, free: 6.875 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.3534, allocations: 3.938 kB / 1.21 GB, free: 6.871 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.195e-05/0.3534, allocations: 3.984 kB / 1.21 GB, free: 6.867 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.3534, allocations: 0 / 1.21 GB, free: 6.867 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.959e-05/0.3534, allocations: 15.98 kB / 1.21 GB, free: 6.852 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001727/0.3536, allocations: 161.6 kB / 1.211 GB, free: 6.645 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001876/0.3538, allocations: 42.61 kB / 1.211 GB, free: 6.594 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.964e-05/0.3538, allocations: 16.86 kB / 1.211 GB, free: 6.574 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.861e-05/0.3539, allocations: 4.078 kB / 1.211 GB, free: 6.57 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.319e-05/0.3539, allocations: 34.56 kB / 1.211 GB, free: 6.527 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=4): time 9.82e-07/0.3539, allocations: 4 kB / 1.211 GB, free: 6.523 MB / 0.9669 GB Notification: Performance of matching and sorting (n=6): time 0.0006298/0.3545, allocations: 306.1 kB / 1.211 GB, free: 6.172 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.66e-05/0.3546, allocations: 55.34 kB / 1.211 GB, free: 6.105 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.958e-05/0.3547, allocations: 105.8 kB / 1.211 GB, free: 5.992 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.401e-05/0.3547, allocations: 25.7 kB / 1.211 GB, free: 5.961 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.182e-05/0.3547, allocations: 80.14 kB / 1.211 GB, free: 5.879 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.789e-05/0.3548, allocations: 15.81 kB / 1.211 GB, free: 5.863 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4e-05/0.3548, allocations: 29.61 kB / 1.211 GB, free: 5.828 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001165/0.3549, allocations: 314.8 kB / 1.212 GB, free: 5.512 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.523e-05/0.355, allocations: 8 kB / 1.212 GB, free: 5.504 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.189e-05/0.355, allocations: 15.98 kB / 1.212 GB, free: 5.488 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.071e-05/0.3551, allocations: 41.06 kB / 1.212 GB, free: 5.445 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.81e-07/0.3551, allocations: 0 / 1.212 GB, free: 5.445 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001117/0.3552, allocations: 65.62 kB / 1.212 GB, free: 5.375 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.31e-05/0.3552, allocations: 11.88 kB / 1.212 GB, free: 5.363 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.3552, allocations: 0 / 1.212 GB, free: 5.363 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.296e-05/0.3552, allocations: 4 kB / 1.212 GB, free: 5.359 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.659e-05/0.3553, allocations: 12 kB / 1.212 GB, free: 5.348 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.07e-06/0.3553, allocations: 0 / 1.212 GB, free: 5.348 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.888e-05/0.3553, allocations: 0 / 1.212 GB, free: 5.348 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.207e-06/0.3553, allocations: 0 / 1.212 GB, free: 5.348 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 (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 7.279e-05/0.3554, allocations: 117.8 kB / 1.212 GB, free: 5.223 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.371e-05/0.3554, allocations: 7.875 kB / 1.212 GB, free: 5.215 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001521/0.3556, allocations: 73.59 kB / 1.212 GB, free: 5.133 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.3556, allocations: 0 / 1.212 GB, free: 5.133 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.988e-06/0.3556, allocations: 4 kB / 1.212 GB, free: 5.129 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.237e-06/0.3556, allocations: 0 / 1.212 GB, free: 5.129 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003088/0.3559, allocations: 319.4 kB / 1.212 GB, free: 4.758 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.346e-06/0.356, allocations: 0 / 1.212 GB, free: 4.758 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.868e-05/0.356, allocations: 15.94 kB / 1.212 GB, free: 4.742 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.356, allocations: 0.5156 kB / 1.212 GB, free: 4.742 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.693e-06/0.356, allocations: 0 / 1.212 GB, free: 4.742 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.833e-06/0.356, allocations: 4 kB / 1.212 GB, free: 4.738 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3561, allocations: 0 / 1.212 GB, free: 4.738 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001835/0.3562, allocations: 184.3 kB / 1.212 GB, free: 4.539 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.409e-05/0.3563, allocations: 81.14 kB / 1.212 GB, free: 4.441 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.506e-05/0.3563, allocations: 4.172 kB / 1.212 GB, free: 4.438 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.093e-05/0.3564, allocations: 8 kB / 1.212 GB, free: 4.43 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.231e-05/0.3564, allocations: 11.92 kB / 1.213 GB, free: 4.418 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.101e-06/0.3564, allocations: 4 kB / 1.213 GB, free: 4.414 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.263e-05/0.3565, allocations: 79.34 kB / 1.213 GB, free: 4.336 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3565, allocations: 0 / 1.213 GB, free: 4.336 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002477/0.3567, allocations: 31.92 kB / 1.213 GB, free: 4.305 MB / 0.9669 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.0005318/0.3573, allocations: 0.7288 MB / 1.213 GB, free: 3.547 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001124/0.3574, allocations: 36 kB / 1.213 GB, free: 3.512 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.3574, allocations: 0 / 1.213 GB, free: 3.512 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 3.018e-05/0.3574, allocations: 23.92 kB / 1.213 GB, free: 3.488 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002176/0.3577, allocations: 4 kB / 1.213 GB, free: 3.484 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001218/0.3589, allocations: 1.335 MB / 1.215 GB, free: 2.062 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002506/0.3592, allocations: 0.6808 MB / 1.215 GB, free: 1.355 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 4.387e-05/0.3592, allocations: 7.984 kB / 1.215 GB, free: 1.348 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.998e-05/0.3592, allocations: 7.438 kB / 1.215 GB, free: 1.34 MB / 0.9669 GB Notification: Performance of SimCode: time 2.11e-07/0.3593, allocations: 0 / 1.215 GB, free: 1.34 MB / 0.9669 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02304/0.3823, allocations: 1.658 MB / 1.217 GB, free: 15.87 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.007/8.39, allocations: 13.84 kB / 1.217 GB, free: 15.86 MB / 0.9825 GB (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat --tempDir=temp_Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_latest_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.fmu > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_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