Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.009199/0.009199, allocations: 103.5 kB / 15.74 MB, free: 5.992 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.002035/0.002035, allocations: 191.9 kB / 16.67 MB, free: 5.918 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.441/1.441, 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 10.1.1-maint.10.0.x/package.mo): time 2.689/2.689, allocations: 437.1 MB / 0.7105 GB, free: 4.359 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001506/0.001506, allocations: 59.91 kB / 1.018 GB, free: 9.852 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9992/1.001, allocations: 151.6 MB / 1.166 GB, free: 3.73 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.003334/1.004, allocations: 1.473 MB / 1.168 GB, free: 2.25 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001324/1.006, allocations: 0.6305 MB / 1.168 GB, free: 1.617 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.239e-05/1.006, allocations: 0 / 1.168 GB, free: 1.617 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 4.04e-05/1.006, allocations: 3.938 kB / 1.168 GB, free: 1.613 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 7.324e-05/1.006, allocations: 11.92 kB / 1.168 GB, free: 1.602 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008889/1.007, allocations: 172.9 kB / 1.168 GB, free: 1.434 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.0001211/1.007, allocations: 51.84 kB / 1.168 GB, free: 1.383 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 5.609e-05/1.007, allocations: 7.984 kB / 1.168 GB, free: 1.375 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 8.363e-05/1.007, allocations: 15.94 kB / 1.168 GB, free: 1.359 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 6.023e-05/1.007, allocations: 31.89 kB / 1.168 GB, free: 1.328 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 2.155e-05/1.007, allocations: 4 kB / 1.168 GB, free: 1.324 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006061/1.008, allocations: 351.3 kB / 1.169 GB, free: 0.9805 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 2.55e-05/1.008, allocations: 11.98 kB / 1.169 GB, free: 0.9688 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 4.404e-05/1.008, allocations: 27.86 kB / 1.169 GB, free: 0.9414 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0003919/1.008, allocations: 173.8 kB / 1.169 GB, free: 0.7734 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.579e-06/1.008, allocations: 3.938 kB / 1.169 GB, free: 0.7695 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.673e-06/1.008, allocations: 0 / 1.169 GB, free: 0.7695 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 6.682e-06/1.008, allocations: 0 / 1.169 GB, free: 0.7695 MB / 0.8887 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.0007078/1.009, allocations: 395.3 kB / 1.169 GB, free: 340 kB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 5.225e-05/1.009, allocations: 12.03 kB / 1.169 GB, free: 328 kB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.549e-05/1.009, allocations: 42.73 kB / 1.169 GB, free: 276 kB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.222e-05/1.009, allocations: 8.844 kB / 1.169 GB, free: 268 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001413/1.009, allocations: 164.3 kB / 1.17 GB, free: 64 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.831e-05/1.009, allocations: 8.375 kB / 1.17 GB, free: 56 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.904e-05/1.009, allocations: 4.375 kB / 1.17 GB, free: 52 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002831/1.01, allocations: 75.09 kB / 1.17 GB, free: 15.97 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.689e-05/1.01, allocations: 15.86 kB / 1.17 GB, free: 15.96 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.613e-05/1.01, allocations: 4 kB / 1.17 GB, free: 15.95 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/1.01, allocations: 4 kB / 1.17 GB, free: 15.95 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002355/1.01, allocations: 47.91 kB / 1.17 GB, free: 15.9 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006131/1.011, allocations: 324.7 kB / 1.17 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002899/1.011, allocations: 90.47 kB / 1.17 GB, free: 15.44 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000113/1.011, allocations: 28.83 kB / 1.17 GB, free: 15.41 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.271e-05/1.011, allocations: 3.938 kB / 1.17 GB, free: 15.4 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.446e-05/1.011, allocations: 34.56 kB / 1.17 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=7): time 1.993e-06/1.011, allocations: 0 / 1.17 GB, free: 15.36 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11): time 0.001756/1.013, allocations: 0.6385 MB / 1.171 GB, free: 14.63 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.314e-05/1.013, allocations: 63.34 kB / 1.171 GB, free: 14.55 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.328e-05/1.013, allocations: 105.8 kB / 1.171 GB, free: 14.44 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 2.529e-05/1.013, allocations: 33.7 kB / 1.171 GB, free: 14.4 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 6.622e-05/1.013, allocations: 95.92 kB / 1.171 GB, free: 14.3 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 5.196e-05/1.013, allocations: 39.45 kB / 1.171 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.641e-05/1.013, allocations: 29.64 kB / 1.171 GB, free: 14.23 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.000128/1.013, allocations: 318.8 kB / 1.172 GB, free: 13.91 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001296/1.013, allocations: 31.97 kB / 1.172 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001167/1.014, allocations: 27.98 kB / 1.172 GB, free: 13.85 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002441/1.014, allocations: 78.33 kB / 1.172 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.41e-07/1.014, allocations: 0 / 1.172 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003166/1.014, allocations: 115.4 kB / 1.172 GB, free: 13.66 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.007e-05/1.014, allocations: 4 kB / 1.172 GB, free: 13.65 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.664e-06/1.014, allocations: 0 / 1.172 GB, free: 13.65 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.428e-05/1.014, allocations: 4 kB / 1.172 GB, free: 13.65 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001612/1.014, allocations: 31.91 kB / 1.172 GB, free: 13.62 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.006e-05/1.014, allocations: 3.938 kB / 1.172 GB, free: 13.61 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.457e-05/1.015, allocations: 12 kB / 1.172 GB, free: 13.6 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.277e-05/1.015, allocations: 4 kB / 1.172 GB, free: 13.6 MB / 0.9044 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.000108/1.015, allocations: 109.8 kB / 1.172 GB, free: 13.48 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.664e-05/1.015, allocations: 7.906 kB / 1.172 GB, free: 13.47 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003965/1.015, allocations: 137.5 kB / 1.172 GB, free: 13.33 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.387e-06/1.015, allocations: 0 / 1.172 GB, free: 13.33 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.707e-06/1.015, allocations: 7.938 kB / 1.172 GB, free: 13.32 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/1.015, allocations: 0 / 1.172 GB, free: 13.32 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006131/1.016, allocations: 382.5 kB / 1.172 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/1.016, allocations: 0 / 1.172 GB, free: 12.89 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001619/1.016, allocations: 31.92 kB / 1.172 GB, free: 12.86 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.883e-06/1.016, allocations: 3.938 kB / 1.172 GB, free: 12.86 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.215e-05/1.016, allocations: 4 kB / 1.172 GB, free: 12.85 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/1.016, allocations: 0 / 1.172 GB, free: 12.85 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/1.016, allocations: 0 / 1.172 GB, free: 12.85 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005145/1.016, allocations: 255.3 kB / 1.173 GB, free: 12.59 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 4.366e-05/1.017, allocations: 81.09 kB / 1.173 GB, free: 12.49 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.261e-05/1.017, allocations: 7.969 kB / 1.173 GB, free: 12.48 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001129/1.017, allocations: 8 kB / 1.173 GB, free: 12.47 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.846e-05/1.017, allocations: 7.984 kB / 1.173 GB, free: 12.46 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.588e-06/1.017, allocations: 4.062 kB / 1.173 GB, free: 12.46 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 4.601e-05/1.017, allocations: 83.22 kB / 1.173 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of sort global known variables: time 2.31e-07/1.017, allocations: 0 / 1.173 GB, free: 12.38 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003043/1.017, allocations: 43.92 kB / 1.173 GB, free: 12.34 MB / 0.9044 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.0009299/1.018, allocations: 0.8177 MB / 1.174 GB, free: 11.49 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.000336/1.018, allocations: 83.89 kB / 1.174 GB, free: 11.41 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 6.673e-06/1.018, allocations: 0 / 1.174 GB, free: 11.41 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001339/1.019, allocations: 52.39 kB / 1.174 GB, free: 11.36 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003766/1.019, allocations: 9.125 kB / 1.174 GB, free: 11.35 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002349/1.021, allocations: 1.605 MB / 1.175 GB, free: 9.672 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003116/1.022, allocations: 0.6924 MB / 1.176 GB, free: 8.953 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 7.166e-05/1.022, allocations: 12.67 kB / 1.176 GB, free: 8.941 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.042e-05/1.022, allocations: 27.42 kB / 1.176 GB, free: 8.914 MB / 0.9044 GB Notification: Performance of SimCode: time 4.71e-07/1.022, allocations: 0 / 1.176 GB, free: 8.914 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02788/1.05, allocations: 2.332 MB / 1.178 GB, free: 6.766 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.105/9.155, allocations: 16.2 kB / 1.178 GB, free: 6.75 MB / 0.9044 GB (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat --tempDir=temp_Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_10_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.fmu > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_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