Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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_dp_DerivativeCheck2,fileNamePrefix="Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,fileNamePrefix="Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_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.007984/0.007984, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.001811/0.001811, allocations: 194.5 kB / 16.68 MB, free: 5.93 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.367/1.367, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.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.261/2.261, allocations: 390.3 MB / 0.6648 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001487/0.001487, allocations: 63.91 kB / 0.9504 GB, free: 8.184 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9116/0.9131, allocations: 140.4 MB / 1.087 GB, free: 5.297 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002378/0.9155, allocations: 1.288 MB / 1.089 GB, free: 4.398 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0009647/0.9165, allocations: 0.6221 MB / 1.089 GB, free: 3.965 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.319e-05/0.9165, allocations: 3.938 kB / 1.089 GB, free: 3.961 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.542e-05/0.9166, allocations: 0.6094 kB / 1.089 GB, free: 3.961 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 3.904e-05/0.9166, allocations: 9.578 kB / 1.089 GB, free: 3.953 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005232/0.9171, allocations: 139.6 kB / 1.089 GB, free: 3.895 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 6.076e-05/0.9172, allocations: 29.45 kB / 1.09 GB, free: 3.883 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.865e-05/0.9173, allocations: 6.75 kB / 1.09 GB, free: 3.879 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 2.455e-05/0.9173, allocations: 12.42 kB / 1.09 GB, free: 3.875 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 5.684e-05/0.9174, allocations: 14.73 kB / 1.09 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.284e-05/0.9174, allocations: 2.25 kB / 1.09 GB, free: 3.867 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005309/0.9179, allocations: 346.3 kB / 1.09 GB, free: 3.766 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.279e-05/0.9179, allocations: 5.938 kB / 1.09 GB, free: 3.762 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.452e-05/0.918, allocations: 14.58 kB / 1.09 GB, free: 3.754 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002702/0.9182, allocations: 156.2 kB / 1.09 GB, free: 3.703 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.971e-06/0.9182, allocations: 1.641 kB / 1.09 GB, free: 3.703 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.232e-06/0.9183, allocations: 0 / 1.09 GB, free: 3.703 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.1e-06/0.9183, allocations: 0 / 1.09 GB, free: 3.703 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003362/0.9186, allocations: 370 kB / 1.09 GB, free: 3.316 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.716e-05/0.9186, allocations: 9.594 kB / 1.09 GB, free: 3.316 MB / 0.8575 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.5e-05/0.9187, allocations: 33.84 kB / 1.09 GB, free: 3.277 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.889e-05/0.9187, allocations: 14.86 kB / 1.09 GB, free: 3.266 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.47e-05/0.9188, allocations: 166.9 kB / 1.091 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.142e-05/0.9188, allocations: 2.594 kB / 1.091 GB, free: 3.066 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.556e-05/0.9188, allocations: 8.312 kB / 1.091 GB, free: 3.062 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001153/0.9189, allocations: 53.34 kB / 1.091 GB, free: 3.02 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.919, allocations: 8.641 kB / 1.091 GB, free: 3.012 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.227e-06/0.919, allocations: 1.188 kB / 1.091 GB, free: 3.012 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.079e-06/0.919, allocations: 1.062 kB / 1.091 GB, free: 3.012 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.349e-05/0.919, allocations: 18.77 kB / 1.091 GB, free: 3.008 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001355/0.9192, allocations: 162.8 kB / 1.091 GB, free: 2.812 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001042/0.9193, allocations: 56.56 kB / 1.091 GB, free: 2.777 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.457e-05/0.9194, allocations: 32.69 kB / 1.091 GB, free: 2.758 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.096e-05/0.9194, allocations: 5.734 kB / 1.091 GB, free: 2.754 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.873e-05/0.9194, allocations: 36.69 kB / 1.091 GB, free: 2.711 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 1.162e-06/0.9194, allocations: 0 / 1.091 GB, free: 2.711 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.001048/0.9205, allocations: 0.5868 MB / 1.092 GB, free: 2.191 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.082e-05/0.9205, allocations: 57.28 kB / 1.092 GB, free: 2.125 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.649e-05/0.9205, allocations: 97.69 kB / 1.092 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 9.939e-06/0.9206, allocations: 26.61 kB / 1.092 GB, free: 1.992 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 1.42e-05/0.9206, allocations: 81.5 kB / 1.092 GB, free: 1.91 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.442e-05/0.9206, allocations: 39.31 kB / 1.092 GB, free: 1.879 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.052e-05/0.9207, allocations: 27.95 kB / 1.092 GB, free: 1.855 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.204e-05/0.9207, allocations: 318.6 kB / 1.092 GB, free: 1.539 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.58e-05/0.9208, allocations: 18.36 kB / 1.092 GB, free: 1.535 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.569e-05/0.9208, allocations: 32.55 kB / 1.092 GB, free: 1.52 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.598e-05/0.9209, allocations: 58.73 kB / 1.092 GB, free: 1.488 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.51e-07/0.9209, allocations: 4.656 kB / 1.092 GB, free: 1.484 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001437/0.9211, allocations: 96.11 kB / 1.092 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.377e-05/0.9211, allocations: 5.188 kB / 1.092 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.88e-06/0.9211, allocations: 0.9375 kB / 1.092 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.711e-05/0.9211, allocations: 1.344 kB / 1.092 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001088/0.9212, allocations: 20.3 kB / 1.092 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.621e-06/0.9213, allocations: 0.6875 kB / 1.092 GB, free: 1.434 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.687e-05/0.9213, allocations: 9.906 kB / 1.092 GB, free: 1.426 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.325e-06/0.9213, allocations: 7.188 kB / 1.092 GB, free: 1.422 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 5.354e-05/0.9214, allocations: 116.2 kB / 1.093 GB, free: 1.301 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.772e-05/0.9214, allocations: 12.02 kB / 1.093 GB, free: 1.293 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001966/0.9216, allocations: 104.6 kB / 1.093 GB, free: 1.227 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.986e-06/0.9216, allocations: 1.562 kB / 1.093 GB, free: 1.227 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.748e-06/0.9216, allocations: 0.9375 kB / 1.093 GB, free: 1.227 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.9216, allocations: 4.75 kB / 1.093 GB, free: 1.223 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003366/0.922, allocations: 356.3 kB / 1.093 GB, free: 0.8867 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.922, allocations: 5.109 kB / 1.093 GB, free: 0.8828 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001099/0.9221, allocations: 19.56 kB / 1.093 GB, free: 0.8828 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.466e-06/0.9221, allocations: 0.875 kB / 1.093 GB, free: 0.8828 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.158e-05/0.9221, allocations: 2.5 kB / 1.093 GB, free: 0.8828 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.532e-06/0.9221, allocations: 0 / 1.093 GB, free: 0.8828 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.9221, allocations: 1.578 kB / 1.093 GB, free: 0.8828 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002191/0.9223, allocations: 222.3 kB / 1.093 GB, free: 0.7109 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.747e-05/0.9224, allocations: 83.81 kB / 1.093 GB, free: 0.6133 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.522e-05/0.9224, allocations: 5.609 kB / 1.093 GB, free: 0.6094 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.615e-05/0.9225, allocations: 2.656 kB / 1.093 GB, free: 0.6094 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.187e-05/0.9225, allocations: 5.969 kB / 1.093 GB, free: 0.6094 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.074e-05/0.9225, allocations: 8 kB / 1.093 GB, free: 0.6055 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.024e-05/0.9226, allocations: 77.92 kB / 1.093 GB, free: 0.5312 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.9e-07/0.9226, allocations: 0 / 1.093 GB, free: 0.5312 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002817/0.9229, allocations: 40.83 kB / 1.093 GB, free: 0.5156 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (m_flow_comp,der_m_flow_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.0007643/0.9236, allocations: 0.7838 MB / 1.094 GB, free: 15.81 MB / 0.8731 GB Notification: Performance of simCode: created initialization part: time 0.0002343/0.9239, allocations: 65.88 kB / 1.094 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.9239, allocations: 0 / 1.094 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 6.962e-05/0.924, allocations: 28.34 kB / 1.094 GB, free: 15.79 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002409/0.9242, allocations: 15.38 kB / 1.094 GB, free: 15.78 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00162/0.9258, allocations: 1.511 MB / 1.096 GB, free: 14.42 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002453/0.9261, allocations: 0.6849 MB / 1.096 GB, free: 13.72 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 5.619e-05/0.9262, allocations: 12.55 kB / 1.096 GB, free: 13.72 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.332e-05/0.9262, allocations: 17.75 kB / 1.096 GB, free: 13.71 MB / 0.8731 GB Notification: Performance of SimCode: time 7.61e-07/0.9262, allocations: 0 / 1.096 GB, free: 13.71 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01954/0.9458, allocations: 2.072 MB / 1.099 GB, free: 13.32 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.915/8.86, allocations: 15.23 kB / 1.099 GB, free: 13.31 MB / 0.8731 GB (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2_fmu --startTime=-2 --stopTime=2 --timeout=50 --tolerance=1e-08 Buildings_9_Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.fmu > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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,m_flow,m_flow_comp,m_flow_turbulent,der(m_flow),der(m_flow_comp),err_m_flow,err_der_m_flow Variables in the result:der(der(dp)),der(der_m_flow),der(der_m_flow_comp),der(dp),der(m_flow),der(m_flow_comp),der_m_flow,der_m_flow_comp,dp,err_der_m_flow,err_m_flow,k,m_flow,m_flow_comp,m_flow_turbulent,time