Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.008115/0.008115, allocations: 101.2 kB / 15.73 MB, free: 6.035 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.001901/0.001902, allocations: 193.2 kB / 16.67 MB, free: 5.973 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.38/1.38, allocations: 222.9 MB / 240.4 MB, free: 4.305 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.668/2.668, allocations: 461.9 MB / 0.7348 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 64.12 kB / 1.054 GB, free: 7.152 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3042/0.3055, allocations: 157.4 MB / 1.208 GB, free: 9.652 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002741/0.3082, allocations: 1.476 MB / 1.209 GB, free: 8.164 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001163/0.3094, allocations: 0.6387 MB / 1.21 GB, free: 7.523 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.652e-05/0.3095, allocations: 0 / 1.21 GB, free: 7.523 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 3.292e-05/0.3095, allocations: 3.938 kB / 1.21 GB, free: 7.52 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.405e-05/0.3096, allocations: 11.86 kB / 1.21 GB, free: 7.508 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007234/0.3104, allocations: 156.7 kB / 1.21 GB, free: 7.355 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0001006/0.3105, allocations: 47.91 kB / 1.21 GB, free: 7.309 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 5.296e-05/0.3105, allocations: 11.98 kB / 1.21 GB, free: 7.297 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 6.823e-05/0.3106, allocations: 19.92 kB / 1.21 GB, free: 7.277 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 5.681e-05/0.3107, allocations: 31.84 kB / 1.21 GB, free: 7.246 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.821e-05/0.3107, allocations: 4 kB / 1.21 GB, free: 7.242 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000548/0.3113, allocations: 343.3 kB / 1.21 GB, free: 6.906 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 2.436e-05/0.3113, allocations: 11.98 kB / 1.21 GB, free: 6.895 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 4.034e-05/0.3113, allocations: 23.88 kB / 1.21 GB, free: 6.871 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003396/0.3117, allocations: 183.5 kB / 1.211 GB, free: 6.691 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.3117, allocations: 8 kB / 1.211 GB, free: 6.684 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.603e-06/0.3117, allocations: 0 / 1.211 GB, free: 6.684 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 9.318e-06/0.3117, allocations: 0 / 1.211 GB, free: 6.684 MB / 0.9669 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.0006426/0.3124, allocations: 395.3 kB / 1.211 GB, free: 6.246 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.3124, allocations: 8.625 kB / 1.211 GB, free: 6.238 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.674e-05/0.3125, allocations: 8.844 kB / 1.211 GB, free: 6.23 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001335/0.3126, allocations: 168.3 kB / 1.211 GB, free: 6.027 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.037e-05/0.3126, allocations: 4.375 kB / 1.211 GB, free: 6.023 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.598e-05/0.3127, allocations: 16.36 kB / 1.211 GB, free: 6.008 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000244/0.3129, allocations: 74.22 kB / 1.211 GB, free: 5.93 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.439e-05/0.3129, allocations: 192 / 1.211 GB, free: 5.93 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.977e-05/0.313, allocations: 7.938 kB / 1.211 GB, free: 5.922 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.264e-06/0.313, allocations: 7.938 kB / 1.211 GB, free: 5.914 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002305/0.3132, allocations: 47.95 kB / 1.211 GB, free: 5.867 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005975/0.3138, allocations: 328.6 kB / 1.212 GB, free: 5.496 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002698/0.3141, allocations: 78.53 kB / 1.212 GB, free: 5.41 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001055/0.3142, allocations: 36.77 kB / 1.212 GB, free: 5.371 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.415e-05/0.3143, allocations: 0 / 1.212 GB, free: 5.371 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.38e-05/0.3143, allocations: 38.5 kB / 1.212 GB, free: 5.324 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=7): time 1.102e-06/0.3143, allocations: 0 / 1.212 GB, free: 5.324 MB / 0.9669 GB Notification: Performance of matching and sorting (n=11): time 0.001578/0.3159, allocations: 0.654 MB / 1.212 GB, free: 4.578 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.617e-05/0.3159, allocations: 51.41 kB / 1.212 GB, free: 4.516 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.268e-05/0.316, allocations: 101.8 kB / 1.213 GB, free: 4.406 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.806e-05/0.316, allocations: 33.8 kB / 1.213 GB, free: 4.367 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 4.027e-05/0.3161, allocations: 87.98 kB / 1.213 GB, free: 4.277 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 3.567e-05/0.3161, allocations: 39.45 kB / 1.213 GB, free: 4.238 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.605e-05/0.3162, allocations: 29.72 kB / 1.213 GB, free: 4.203 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.0001061/0.3163, allocations: 318.8 kB / 1.213 GB, free: 3.883 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000121/0.3164, allocations: 35.97 kB / 1.213 GB, free: 3.848 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001109/0.3165, allocations: 28.61 kB / 1.213 GB, free: 3.82 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002164/0.3168, allocations: 70.33 kB / 1.213 GB, free: 3.75 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.02e-07/0.3168, allocations: 3.938 kB / 1.213 GB, free: 3.746 MB / 0.9669 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002883/0.3171, allocations: 118.6 kB / 1.213 GB, free: 3.625 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/0.3171, allocations: 13.56 kB / 1.213 GB, free: 3.613 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.651e-06/0.3171, allocations: 4 kB / 1.213 GB, free: 3.609 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.3171, allocations: 0 / 1.213 GB, free: 3.609 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001422/0.3173, allocations: 27.97 kB / 1.213 GB, free: 3.582 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.61e-06/0.3173, allocations: 0 / 1.213 GB, free: 3.582 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.063e-05/0.3173, allocations: 11.94 kB / 1.213 GB, free: 3.57 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.048e-05/0.3174, allocations: 4 kB / 1.213 GB, free: 3.566 MB / 0.9669 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 9.818e-05/0.3175, allocations: 117.8 kB / 1.213 GB, free: 3.441 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.209e-05/0.3175, allocations: 7.906 kB / 1.213 GB, free: 3.434 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003513/0.3179, allocations: 133.5 kB / 1.214 GB, free: 3.293 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.625e-06/0.3179, allocations: 0 / 1.214 GB, free: 3.293 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.339e-06/0.3179, allocations: 0 / 1.214 GB, free: 3.293 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.592e-06/0.3179, allocations: 8.125 kB / 1.214 GB, free: 3.285 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005405/0.3184, allocations: 386.4 kB / 1.214 GB, free: 2.852 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.3185, allocations: 0 / 1.214 GB, free: 2.852 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001445/0.3186, allocations: 35.97 kB / 1.214 GB, free: 2.816 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.859e-06/0.3186, allocations: 4 kB / 1.214 GB, free: 2.812 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.223e-05/0.3186, allocations: 3.938 kB / 1.214 GB, free: 2.809 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.3186, allocations: 0 / 1.214 GB, free: 2.809 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.3186, allocations: 0 / 1.214 GB, free: 2.809 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004638/0.3191, allocations: 247.3 kB / 1.214 GB, free: 2.551 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 3.885e-05/0.3192, allocations: 89.19 kB / 1.214 GB, free: 2.445 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.659e-05/0.3192, allocations: 3.938 kB / 1.214 GB, free: 2.441 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001092/0.3193, allocations: 11.94 kB / 1.214 GB, free: 2.43 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.116e-05/0.3193, allocations: 7.984 kB / 1.214 GB, free: 2.422 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.018e-05/0.3194, allocations: 7.938 kB / 1.214 GB, free: 2.414 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.927e-05/0.3194, allocations: 83.28 kB / 1.214 GB, free: 2.332 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3194, allocations: 0 / 1.214 GB, free: 2.332 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002765/0.3197, allocations: 35.98 kB / 1.214 GB, free: 2.297 MB / 0.9669 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.0002109/0.3199, allocations: 139.2 kB / 1.215 GB, free: 2.152 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0003234/0.3202, allocations: 87.88 kB / 1.215 GB, free: 2.066 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.825e-06/0.3202, allocations: 0 / 1.215 GB, free: 2.066 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 0.0001322/0.3204, allocations: 43.92 kB / 1.215 GB, free: 2.023 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003394/0.3207, allocations: 11.98 kB / 1.215 GB, free: 2.012 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008022/0.3215, allocations: 324.9 kB / 1.215 GB, free: 1.672 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003303/0.3219, allocations: 0.6889 MB / 1.216 GB, free: 0.957 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 6.347e-05/0.322, allocations: 16.66 kB / 1.216 GB, free: 0.9414 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.517e-05/0.322, allocations: 11.44 kB / 1.216 GB, free: 0.9297 MB / 0.9669 GB Notification: Performance of SimCode: time 2.6e-07/0.322, allocations: 3.938 kB / 1.216 GB, free: 0.9258 MB / 0.9669 GB Notification: Performance of Templates: time 0.004427/0.3264, allocations: 1.14 MB / 1.217 GB, free: 15.82 MB / 0.9825 GB make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.makefile (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches