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: translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp|der.dp.|der.dp_comp.|err_dp|err_der_dp",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp|der.dp.|der.dp_comp.|err_dp|err_der_dp",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001732/0.001732, allocations: 108.6 kB / 15.73 MB, free: 72 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.002088/0.002088, allocations: 186.8 kB / 16.66 MB, free: 6.602 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.448/1.448, 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.339/2.339, allocations: 390.2 MB / 0.6648 GB, free: 196 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00119/0.00119, allocations: 66.94 kB / 0.9508 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2699/0.2711, allocations: 140.4 MB / 1.088 GB, free: 1.52 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002527/0.2737, allocations: 1.474 MB / 1.089 GB, free: 32 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001265/0.275, allocations: 0.6281 MB / 1.09 GB, free: 15.4 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.038e-05/0.275, allocations: 0 / 1.09 GB, free: 15.4 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 3.643e-05/0.2751, allocations: 3.938 kB / 1.09 GB, free: 15.4 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.882e-05/0.2752, allocations: 7.938 kB / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005873/0.2757, allocations: 155.3 kB / 1.09 GB, free: 15.24 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 8.568e-05/0.2758, allocations: 59.53 kB / 1.09 GB, free: 15.18 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 4.782e-05/0.2759, allocations: 7.984 kB / 1.09 GB, free: 15.17 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 7.572e-05/0.276, allocations: 19.94 kB / 1.09 GB, free: 15.15 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.146e-05/0.276, allocations: 23.91 kB / 1.09 GB, free: 15.13 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 2.022e-05/0.2761, allocations: 4 kB / 1.09 GB, free: 15.12 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005022/0.2766, allocations: 351.3 kB / 1.091 GB, free: 14.78 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 2.111e-05/0.2766, allocations: 15.94 kB / 1.091 GB, free: 14.77 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 4.085e-05/0.2767, allocations: 23.91 kB / 1.091 GB, free: 14.74 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002889/0.277, allocations: 187.3 kB / 1.091 GB, free: 14.56 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.277, allocations: 0 / 1.091 GB, free: 14.56 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.683e-06/0.277, allocations: 0 / 1.091 GB, free: 14.56 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.923e-06/0.277, allocations: 0 / 1.091 GB, free: 14.56 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.0007018/0.2777, allocations: 398.9 kB / 1.091 GB, free: 14.12 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.944e-05/0.2778, allocations: 16.03 kB / 1.091 GB, free: 14.1 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.277e-05/0.2778, allocations: 4.891 kB / 1.091 GB, free: 14.1 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001609/0.278, allocations: 172.3 kB / 1.091 GB, free: 13.89 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.652e-05/0.278, allocations: 8.375 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.951e-05/0.2781, allocations: 8.375 kB / 1.091 GB, free: 13.88 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002811/0.2783, allocations: 74.84 kB / 1.091 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.522e-05/0.2784, allocations: 192 / 1.091 GB, free: 13.8 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.738e-05/0.2784, allocations: 7.875 kB / 1.091 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.356e-06/0.2784, allocations: 4 kB / 1.091 GB, free: 13.79 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002454/0.2787, allocations: 51.95 kB / 1.092 GB, free: 13.73 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006828/0.2794, allocations: 324.6 kB / 1.092 GB, free: 13.37 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003068/0.2797, allocations: 74.53 kB / 1.092 GB, free: 13.29 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001283/0.2798, allocations: 32.84 kB / 1.092 GB, free: 13.25 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.716e-05/0.2799, allocations: 8.125 kB / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.279e-05/0.2799, allocations: 34.56 kB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=7): time 2.845e-06/0.2799, allocations: 3.984 kB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of matching and sorting (n=11): time 0.001783/0.2817, allocations: 0.6574 MB / 1.093 GB, free: 12.45 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.533e-05/0.2818, allocations: 51.41 kB / 1.093 GB, free: 12.38 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.898e-05/0.2819, allocations: 105.8 kB / 1.093 GB, free: 12.27 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 2.965e-05/0.2819, allocations: 25.7 kB / 1.093 GB, free: 12.24 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 6.659e-05/0.282, allocations: 96.08 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 4.186e-05/0.282, allocations: 43.62 kB / 1.093 GB, free: 12.1 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.281e-05/0.2821, allocations: 25.72 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001494/0.2822, allocations: 318.8 kB / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001303/0.2824, allocations: 27.98 kB / 1.093 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000125/0.2825, allocations: 38.47 kB / 1.093 GB, free: 11.68 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002379/0.2827, allocations: 76.95 kB / 1.093 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.02e-07/0.2828, allocations: 0 / 1.093 GB, free: 11.61 MB / 0.8575 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002965/0.2831, allocations: 117.5 kB / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.2831, allocations: 4 kB / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.781e-06/0.2831, allocations: 4 kB / 1.094 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.48e-05/0.2831, allocations: 0 / 1.094 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001554/0.2833, allocations: 27.98 kB / 1.094 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.2833, allocations: 7.938 kB / 1.094 GB, free: 11.44 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.404e-05/0.2834, allocations: 11.92 kB / 1.094 GB, free: 11.43 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.378e-06/0.2834, allocations: 4.312 kB / 1.094 GB, free: 11.43 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.091e-05/0.2835, allocations: 121.8 kB / 1.094 GB, free: 11.3 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.26e-05/0.2835, allocations: 7.953 kB / 1.094 GB, free: 11.29 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000373/0.2839, allocations: 125.6 kB / 1.094 GB, free: 11.16 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.2839, allocations: 4 kB / 1.094 GB, free: 11.15 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.167e-06/0.2839, allocations: 0 / 1.094 GB, free: 11.15 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.389e-06/0.2839, allocations: 3.938 kB / 1.094 GB, free: 11.15 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005462/0.2845, allocations: 386.4 kB / 1.094 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.997e-06/0.2845, allocations: 4 kB / 1.094 GB, free: 10.71 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001433/0.2846, allocations: 23.98 kB / 1.094 GB, free: 10.69 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.184e-06/0.2846, allocations: 0 / 1.094 GB, free: 10.69 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.645e-05/0.2846, allocations: 4.031 kB / 1.094 GB, free: 10.68 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.2847, allocations: 3.938 kB / 1.094 GB, free: 10.68 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.2847, allocations: 0 / 1.094 GB, free: 10.68 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005147/0.2852, allocations: 261.3 kB / 1.094 GB, free: 10.41 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 3.793e-05/0.2852, allocations: 77.11 kB / 1.095 GB, free: 10.32 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.063e-05/0.2853, allocations: 7.938 kB / 1.095 GB, free: 10.31 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001159/0.2854, allocations: 7.984 kB / 1.095 GB, free: 10.3 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.175e-05/0.2854, allocations: 7.984 kB / 1.095 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.067e-05/0.2854, allocations: 4 kB / 1.095 GB, free: 10.29 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.168e-05/0.2855, allocations: 87.34 kB / 1.095 GB, free: 10.2 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.01e-07/0.2855, allocations: 0 / 1.095 GB, free: 10.2 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002925/0.2858, allocations: 35.88 kB / 1.095 GB, free: 10.17 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.0002492/0.286, allocations: 134.1 kB / 1.095 GB, free: 10.03 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003337/0.2864, allocations: 83.89 kB / 1.095 GB, free: 9.949 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.2864, allocations: 0 / 1.095 GB, free: 9.949 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 0.0001402/0.2865, allocations: 51.91 kB / 1.095 GB, free: 9.898 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003088/0.2869, allocations: 14.48 kB / 1.095 GB, free: 9.887 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006403/0.2875, allocations: 313.9 kB / 1.095 GB, free: 9.551 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002724/0.2878, allocations: 0.6968 MB / 1.096 GB, free: 8.828 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 5.82e-05/0.2879, allocations: 12.66 kB / 1.096 GB, free: 8.816 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.951e-05/0.2879, allocations: 11.44 kB / 1.096 GB, free: 8.805 MB / 0.8575 GB Notification: Performance of SimCode: time 1.463e-06/0.2879, allocations: 0 / 1.096 GB, free: 8.805 MB / 0.8575 GB Notification: Performance of Templates: time 0.003677/0.2916, allocations: 1.155 MB / 1.097 GB, free: 7.691 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.makefile (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 & ./Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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) Reference file matches