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.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-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.009767/0.009767, allocations: 104.2 kB / 15.73 MB, free: 6.039 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.001889/0.001889, allocations: 194 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.413/1.413, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.454/2.454, allocations: 390.2 MB / 0.6648 GB, free: 172 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001395/0.001395, allocations: 69.92 kB / 0.9504 GB, free: 5.91 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2809/0.2823, allocations: 140.4 MB / 1.087 GB, free: 1.953 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002771/0.2851, allocations: 1.474 MB / 1.089 GB, free: 476 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001107/0.2862, allocations: 0.6396 MB / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.179e-05/0.2863, allocations: 0 / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.117e-05/0.2863, allocations: 3.938 kB / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.475e-05/0.2864, allocations: 3.938 kB / 1.09 GB, free: 15.82 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006423/0.2871, allocations: 164.6 kB / 1.09 GB, free: 15.66 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 9.412e-05/0.2872, allocations: 59.58 kB / 1.09 GB, free: 15.6 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.033e-05/0.2872, allocations: 8 kB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 6.502e-05/0.2873, allocations: 19.92 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 4.905e-05/0.2873, allocations: 31.84 kB / 1.09 GB, free: 15.54 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.564e-05/0.2874, allocations: 7.984 kB / 1.09 GB, free: 15.53 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004934/0.2879, allocations: 339.4 kB / 1.09 GB, free: 15.2 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.339e-05/0.2879, allocations: 11.98 kB / 1.09 GB, free: 15.19 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.828e-05/0.2879, allocations: 31.8 kB / 1.09 GB, free: 15.16 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.000309/0.2883, allocations: 171.2 kB / 1.09 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.2883, allocations: 0 / 1.09 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of FrontEnd: time 3.427e-06/0.2883, allocations: 0 / 1.09 GB, free: 14.99 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.32e-06/0.2883, allocations: 3.938 kB / 1.09 GB, free: 14.99 MB / 0.8575 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.0006014/0.2889, allocations: 403.3 kB / 1.091 GB, free: 14.54 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.2889, allocations: 12.03 kB / 1.091 GB, free: 14.53 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.725e-05/0.289, allocations: 34.75 kB / 1.091 GB, free: 14.49 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.662e-05/0.289, allocations: 8.844 kB / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001143/0.2891, allocations: 168.3 kB / 1.091 GB, free: 14.28 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.41e-05/0.2892, allocations: 4.375 kB / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.683e-05/0.2892, allocations: 8.375 kB / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002302/0.2894, allocations: 88.28 kB / 1.091 GB, free: 14.18 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.618e-05/0.2895, allocations: 3.938 kB / 1.091 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.253e-05/0.2895, allocations: 3.938 kB / 1.091 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.759e-06/0.2895, allocations: 0 / 1.091 GB, free: 14.17 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002213/0.2897, allocations: 55.95 kB / 1.091 GB, free: 14.11 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005573/0.2903, allocations: 316.7 kB / 1.091 GB, free: 13.75 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002729/0.2906, allocations: 82.47 kB / 1.091 GB, free: 13.66 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001076/0.2907, allocations: 32.98 kB / 1.092 GB, free: 13.63 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 3.338e-05/0.2907, allocations: 7.984 kB / 1.092 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.768e-05/0.2908, allocations: 30.56 kB / 1.092 GB, free: 13.58 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.292e-06/0.2908, allocations: 4 kB / 1.092 GB, free: 13.58 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.001598/0.2924, allocations: 0.6422 MB / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.114e-05/0.2924, allocations: 55.41 kB / 1.092 GB, free: 12.78 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.977e-05/0.2925, allocations: 105.8 kB / 1.092 GB, free: 12.66 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.594e-05/0.2925, allocations: 25.7 kB / 1.092 GB, free: 12.63 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.882e-05/0.2926, allocations: 96.03 kB / 1.092 GB, free: 12.54 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.54e-05/0.2927, allocations: 39.39 kB / 1.092 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.745e-05/0.2927, allocations: 25.72 kB / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001091/0.2928, allocations: 322.8 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001261/0.293, allocations: 31.92 kB / 1.093 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001156/0.2931, allocations: 35.97 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002289/0.2933, allocations: 75.83 kB / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.235e-06/0.2933, allocations: 4.094 kB / 1.093 GB, free: 12 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003103/0.2936, allocations: 121.6 kB / 1.093 GB, free: 11.87 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.365e-05/0.2937, allocations: 4 kB / 1.093 GB, free: 11.87 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.2937, allocations: 8 kB / 1.093 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.249e-05/0.2937, allocations: 0 / 1.093 GB, free: 11.86 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001436/0.2938, allocations: 27.92 kB / 1.093 GB, free: 11.83 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.305e-06/0.2939, allocations: 3.938 kB / 1.093 GB, free: 11.83 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.886e-05/0.2939, allocations: 7.984 kB / 1.093 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.23e-05/0.2939, allocations: 8 kB / 1.093 GB, free: 11.81 MB / 0.8575 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 8.487e-05/0.294, allocations: 113.8 kB / 1.093 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.943e-05/0.2941, allocations: 0 / 1.093 GB, free: 11.69 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003574/0.2944, allocations: 137.5 kB / 1.093 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.574e-06/0.2944, allocations: 0 / 1.093 GB, free: 11.55 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.552e-06/0.2945, allocations: 3.938 kB / 1.093 GB, free: 11.54 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.045e-06/0.2945, allocations: 0 / 1.093 GB, free: 11.54 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005482/0.295, allocations: 386.6 kB / 1.094 GB, free: 11.11 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.315e-06/0.295, allocations: 0 / 1.094 GB, free: 11.11 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001442/0.2952, allocations: 27.92 kB / 1.094 GB, free: 11.08 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.819e-06/0.2952, allocations: 7.938 kB / 1.094 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.338e-05/0.2952, allocations: 8 kB / 1.094 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.2952, allocations: 0 / 1.094 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.2952, allocations: 0 / 1.094 GB, free: 11.07 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004626/0.2957, allocations: 239.5 kB / 1.094 GB, free: 10.82 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.29e-05/0.2957, allocations: 89.05 kB / 1.094 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.853e-05/0.2958, allocations: 8 kB / 1.094 GB, free: 10.7 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001105/0.2959, allocations: 11.92 kB / 1.094 GB, free: 10.69 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.566e-05/0.2959, allocations: 7.984 kB / 1.094 GB, free: 10.68 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.335e-05/0.2959, allocations: 8 kB / 1.094 GB, free: 10.68 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.39e-05/0.296, allocations: 75.28 kB / 1.094 GB, free: 10.6 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.904e-06/0.296, allocations: 0 / 1.094 GB, free: 10.6 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002848/0.2963, allocations: 39.94 kB / 1.094 GB, free: 10.56 MB / 0.8575 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.000835/0.2971, allocations: 0.8216 MB / 1.095 GB, free: 9.715 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0002945/0.2974, allocations: 87.81 kB / 1.095 GB, free: 9.629 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 5.109e-06/0.2975, allocations: 0 / 1.095 GB, free: 9.629 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001409/0.2976, allocations: 43.98 kB / 1.095 GB, free: 9.586 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002966/0.2979, allocations: 12 kB / 1.095 GB, free: 9.574 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001947/0.2999, allocations: 1.599 MB / 1.097 GB, free: 7.898 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002486/0.3001, allocations: 0.6968 MB / 1.097 GB, free: 7.176 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 5.601e-05/0.3002, allocations: 12.66 kB / 1.097 GB, free: 7.164 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.869e-05/0.3002, allocations: 19.44 kB / 1.097 GB, free: 7.145 MB / 0.8575 GB Notification: Performance of SimCode: time 2.8e-07/0.3002, allocations: 0 / 1.097 GB, free: 7.145 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02067/0.3209, allocations: 2.337 MB / 1.1 GB, free: 4.988 MB / 0.8575 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.322/8.643, allocations: 25.38 kB / 1.1 GB, free: 4.965 MB / 0.8575 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