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.001797/0.001797, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001797/0.001797, allocations: 199.7 kB / 16.54 MB, free: 6.672 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.18/1.18, allocations: 222.9 MB / 240.2 MB, free: 4.422 MB / 190.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.416/2.416, allocations: 437.1 MB / 0.7104 GB, free: 5.082 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 63.91 kB / 0.8694 GB, free: 4.547 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5523/0.5535, allocations: 151.6 MB / 1.017 GB, free: 2.5 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.00254/0.5561, allocations: 1.461 MB / 1.019 GB, free: 1.027 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0009464/0.5571, allocations: 0.6382 MB / 1.019 GB, free: 396 kB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.958e-05/0.5571, allocations: 4 kB / 1.019 GB, free: 392 kB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 2.622e-05/0.5571, allocations: 3.938 kB / 1.019 GB, free: 388 kB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.366e-05/0.5572, allocations: 7.938 kB / 1.019 GB, free: 380 kB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004985/0.5577, allocations: 163.3 kB / 1.02 GB, free: 216 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 7.064e-05/0.5578, allocations: 47.91 kB / 1.02 GB, free: 168 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.362e-05/0.5578, allocations: 7.969 kB / 1.02 GB, free: 160 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 5.864e-05/0.5579, allocations: 23.92 kB / 1.02 GB, free: 136 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.597e-05/0.5579, allocations: 31.8 kB / 1.02 GB, free: 104 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.482e-05/0.558, allocations: 4 kB / 1.02 GB, free: 100 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004869/0.5585, allocations: 347.4 kB / 1.02 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.705e-05/0.5585, allocations: 11.98 kB / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.55e-05/0.5585, allocations: 31.84 kB / 1.02 GB, free: 15.71 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002636/0.5588, allocations: 173.8 kB / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.5588, allocations: 0 / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.362e-06/0.5588, allocations: 0 / 1.02 GB, free: 15.55 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.689e-06/0.5588, allocations: 0 / 1.02 GB, free: 15.55 MB / 0.7794 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.000658/0.5595, allocations: 403.2 kB / 1.021 GB, free: 15.1 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.241e-05/0.5595, allocations: 12.03 kB / 1.021 GB, free: 15.09 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.365e-05/0.5596, allocations: 38.75 kB / 1.021 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.089e-05/0.5596, allocations: 4.938 kB / 1.021 GB, free: 15.04 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001138/0.5597, allocations: 176.2 kB / 1.021 GB, free: 14.83 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.043e-05/0.5598, allocations: 4.375 kB / 1.021 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.248e-05/0.5598, allocations: 8.375 kB / 1.021 GB, free: 14.82 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000223/0.56, allocations: 77.72 kB / 1.021 GB, free: 14.74 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.187e-05/0.56, allocations: 3.938 kB / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.186e-05/0.5601, allocations: 4 kB / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.5601, allocations: 4 kB / 1.021 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002362/0.5603, allocations: 55.89 kB / 1.021 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004802/0.5608, allocations: 312.7 kB / 1.021 GB, free: 14.32 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002765/0.5611, allocations: 86.47 kB / 1.021 GB, free: 14.22 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001164/0.5612, allocations: 36.83 kB / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.579e-05/0.5612, allocations: 160 / 1.021 GB, free: 14.18 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.233e-05/0.5613, allocations: 46.47 kB / 1.022 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 9.42e-07/0.5613, allocations: 0 / 1.022 GB, free: 14.13 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.001579/0.5628, allocations: 0.6344 MB / 1.022 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.23e-05/0.5629, allocations: 55.41 kB / 1.022 GB, free: 13.34 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.024e-05/0.563, allocations: 105.8 kB / 1.022 GB, free: 13.22 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.481e-05/0.563, allocations: 25.7 kB / 1.022 GB, free: 13.19 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.502e-05/0.563, allocations: 99.97 kB / 1.022 GB, free: 13.09 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 3.335e-05/0.5631, allocations: 43.38 kB / 1.022 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.196e-05/0.5631, allocations: 25.72 kB / 1.022 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.814e-05/0.5632, allocations: 318.8 kB / 1.023 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001296/0.5633, allocations: 27.98 kB / 1.023 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000179/0.5635, allocations: 44.09 kB / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003396/0.5639, allocations: 72.77 kB / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.11e-07/0.5639, allocations: 4 kB / 1.023 GB, free: 12.55 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003095/0.5642, allocations: 109.7 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.191e-05/0.5642, allocations: 4.094 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.068e-06/0.5642, allocations: 4.125 kB / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.349e-05/0.5643, allocations: 0 / 1.023 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001497/0.5644, allocations: 31.98 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.087e-06/0.5644, allocations: 7.875 kB / 1.023 GB, free: 12.39 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.797e-05/0.5645, allocations: 11.97 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.06e-05/0.5645, allocations: 8 kB / 1.023 GB, free: 12.37 MB / 0.7794 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.153e-05/0.5646, allocations: 113.8 kB / 1.023 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.279e-05/0.5646, allocations: 7.906 kB / 1.023 GB, free: 12.24 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003675/0.565, allocations: 129.5 kB / 1.023 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.657e-06/0.565, allocations: 4 kB / 1.023 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.565, allocations: 3.938 kB / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.218e-06/0.565, allocations: 0 / 1.023 GB, free: 12.09 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005259/0.5656, allocations: 378.7 kB / 1.024 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-06/0.5656, allocations: 3.984 kB / 1.024 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001476/0.5657, allocations: 23.98 kB / 1.024 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.5658, allocations: 3.938 kB / 1.024 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.028e-05/0.5658, allocations: 8 kB / 1.024 GB, free: 11.63 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.677e-06/0.5658, allocations: 7.938 kB / 1.024 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.195e-06/0.5658, allocations: 0 / 1.024 GB, free: 11.62 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004905/0.5663, allocations: 243.3 kB / 1.024 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.281e-05/0.5663, allocations: 85.02 kB / 1.024 GB, free: 11.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.848e-05/0.5663, allocations: 3.938 kB / 1.024 GB, free: 11.26 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001255/0.5665, allocations: 16.08 kB / 1.024 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.02e-05/0.5665, allocations: 3.984 kB / 1.024 GB, free: 11.24 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.228e-06/0.5665, allocations: 8 kB / 1.024 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.198e-05/0.5666, allocations: 79.28 kB / 1.024 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1e-07/0.5666, allocations: 0 / 1.024 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002673/0.5668, allocations: 43.94 kB / 1.024 GB, free: 11.11 MB / 0.7794 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.0007929/0.5676, allocations: 0.819 MB / 1.025 GB, free: 10.27 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003246/0.568, allocations: 95.81 kB / 1.025 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.568, allocations: 3.938 kB / 1.025 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001384/0.5681, allocations: 43.92 kB / 1.025 GB, free: 10.12 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003293/0.5685, allocations: 16.05 kB / 1.025 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001997/0.5705, allocations: 1.586 MB / 1.027 GB, free: 8.449 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002204/0.5707, allocations: 0.6924 MB / 1.027 GB, free: 7.73 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 5.611e-05/0.5708, allocations: 8.672 kB / 1.027 GB, free: 7.723 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.587e-05/0.5708, allocations: 27.42 kB / 1.027 GB, free: 7.695 MB / 0.7794 GB Notification: Performance of SimCode: time 3.3e-07/0.5708, allocations: 0 / 1.027 GB, free: 7.695 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01992/0.5908, allocations: 2.292 MB / 1.03 GB, free: 5.566 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.49/8.081, allocations: 16.23 kB / 1.03 GB, free: 5.555 MB / 0.7794 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