Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.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_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0088/0.0088, allocations: 105 kB / 15.74 MB, free: 6.469 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.001785/0.001785, allocations: 190.9 kB / 16.67 MB, free: 6.375 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.39/1.39, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.767/2.767, allocations: 461.9 MB / 0.7348 GB, free: 14.68 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001301/0.001301, allocations: 63.91 kB / 1.054 GB, free: 7.16 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3143/0.3157, allocations: 157.4 MB / 1.208 GB, free: 9.656 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002909/0.3186, allocations: 1.288 MB / 1.209 GB, free: 8.355 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001533/0.3202, allocations: 0.6111 MB / 1.21 GB, free: 7.742 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.551e-05/0.3203, allocations: 0 / 1.21 GB, free: 7.742 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.469e-05/0.3203, allocations: 0 / 1.21 GB, free: 7.742 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 6.246e-05/0.3204, allocations: 3.938 kB / 1.21 GB, free: 7.738 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009267/0.3213, allocations: 145.1 kB / 1.21 GB, free: 7.598 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 9.2e-05/0.3214, allocations: 23.92 kB / 1.21 GB, free: 7.574 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 6.292e-05/0.3215, allocations: 0 / 1.21 GB, free: 7.574 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 6.747e-05/0.3216, allocations: 15.92 kB / 1.21 GB, free: 7.559 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 7.357e-05/0.3217, allocations: 7.984 kB / 1.21 GB, free: 7.551 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.903e-05/0.3217, allocations: 4 kB / 1.21 GB, free: 7.547 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006054/0.3223, allocations: 339.3 kB / 1.21 GB, free: 7.215 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.379e-05/0.3223, allocations: 7.938 kB / 1.21 GB, free: 7.207 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.585e-05/0.3223, allocations: 11.92 kB / 1.21 GB, free: 7.195 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0003121/0.3227, allocations: 143.7 kB / 1.21 GB, free: 7.055 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.3227, allocations: 3.938 kB / 1.21 GB, free: 7.051 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.583e-06/0.3227, allocations: 4 kB / 1.21 GB, free: 7.047 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 6.382e-06/0.3227, allocations: 0 / 1.21 GB, free: 7.047 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004792/0.3232, allocations: 363.3 kB / 1.211 GB, free: 6.641 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.898e-05/0.3232, allocations: 8.625 kB / 1.211 GB, free: 6.633 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.717e-05/0.3233, allocations: 8.922 kB / 1.211 GB, free: 6.625 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001314/0.3234, allocations: 164.4 kB / 1.211 GB, free: 6.426 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.234e-05/0.3234, allocations: 384 / 1.211 GB, free: 6.426 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.603e-05/0.3235, allocations: 4.375 kB / 1.211 GB, free: 6.422 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000123/0.3236, allocations: 46.17 kB / 1.211 GB, free: 6.371 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.574e-06/0.3236, allocations: 8.188 kB / 1.211 GB, free: 6.363 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.242e-05/0.3236, allocations: 3.938 kB / 1.211 GB, free: 6.359 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.709e-06/0.3236, allocations: 0 / 1.211 GB, free: 6.359 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.229e-05/0.3237, allocations: 4 kB / 1.211 GB, free: 6.355 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001801/0.3239, allocations: 161.7 kB / 1.211 GB, free: 6.148 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001998/0.3241, allocations: 38.61 kB / 1.211 GB, free: 6.102 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.794e-05/0.3241, allocations: 24.88 kB / 1.211 GB, free: 6.074 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 1.944e-05/0.3242, allocations: 4 kB / 1.211 GB, free: 6.07 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.335e-05/0.3242, allocations: 34.56 kB / 1.211 GB, free: 6.027 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=4): time 1.042e-06/0.3242, allocations: 0 / 1.211 GB, free: 6.027 MB / 0.9669 GB Notification: Performance of matching and sorting (n=6): time 0.000667/0.3249, allocations: 314.1 kB / 1.211 GB, free: 5.668 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.376e-05/0.3249, allocations: 55.39 kB / 1.211 GB, free: 5.602 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.919e-05/0.325, allocations: 97.86 kB / 1.212 GB, free: 5.496 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.298e-05/0.325, allocations: 25.7 kB / 1.212 GB, free: 5.465 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 3.031e-05/0.325, allocations: 84.14 kB / 1.212 GB, free: 5.379 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.99e-05/0.3251, allocations: 19.8 kB / 1.212 GB, free: 5.359 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.314e-05/0.3251, allocations: 17.72 kB / 1.212 GB, free: 5.336 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 8.854e-05/0.3252, allocations: 310.8 kB / 1.212 GB, free: 5.023 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.215e-05/0.3252, allocations: 15.98 kB / 1.212 GB, free: 5.008 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.193e-05/0.3253, allocations: 15.98 kB / 1.212 GB, free: 4.992 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.513e-05/0.3253, allocations: 32.8 kB / 1.212 GB, free: 4.957 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.92e-07/0.3253, allocations: 0 / 1.212 GB, free: 4.957 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.778e-05/0.3254, allocations: 69.59 kB / 1.212 GB, free: 4.883 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.572e-05/0.3255, allocations: 13.66 kB / 1.212 GB, free: 4.871 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.3255, allocations: 0 / 1.212 GB, free: 4.871 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.159e-05/0.3255, allocations: 0 / 1.212 GB, free: 4.871 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.15e-05/0.3255, allocations: 11.98 kB / 1.212 GB, free: 4.859 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.5e-06/0.3256, allocations: 7.938 kB / 1.212 GB, free: 4.852 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.713e-05/0.3256, allocations: 3.938 kB / 1.212 GB, free: 4.848 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.568e-06/0.3256, allocations: 0 / 1.212 GB, free: 4.848 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 (7): * Single equations (assignments): 7 * 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 6.758e-05/0.3257, allocations: 117.8 kB / 1.212 GB, free: 4.723 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.184e-05/0.3257, allocations: 7.938 kB / 1.212 GB, free: 4.715 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001405/0.3258, allocations: 74.22 kB / 1.212 GB, free: 4.633 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.3258, allocations: 4 kB / 1.212 GB, free: 4.629 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.3258, allocations: 0 / 1.212 GB, free: 4.629 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.454e-06/0.3259, allocations: 0 / 1.212 GB, free: 4.629 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00029/0.3261, allocations: 315.3 kB / 1.213 GB, free: 4.262 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.3262, allocations: 0 / 1.213 GB, free: 4.262 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.332e-05/0.3262, allocations: 19.97 kB / 1.213 GB, free: 4.242 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.3262, allocations: 0 / 1.213 GB, free: 4.242 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.256e-06/0.3263, allocations: 8.031 kB / 1.213 GB, free: 4.234 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.3263, allocations: 0 / 1.213 GB, free: 4.234 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.3263, allocations: 4 kB / 1.213 GB, free: 4.23 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001697/0.3264, allocations: 180.2 kB / 1.213 GB, free: 4.035 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.324e-05/0.3265, allocations: 85.12 kB / 1.213 GB, free: 3.934 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.137e-05/0.3265, allocations: 0 / 1.213 GB, free: 3.934 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.733e-05/0.3266, allocations: 64 / 1.213 GB, free: 3.934 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.915e-05/0.3266, allocations: 11.98 kB / 1.213 GB, free: 3.922 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.211e-06/0.3266, allocations: 4 kB / 1.213 GB, free: 3.918 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.168e-05/0.3267, allocations: 79.28 kB / 1.213 GB, free: 3.84 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3267, allocations: 0 / 1.213 GB, free: 3.84 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002448/0.3269, allocations: 23.94 kB / 1.213 GB, free: 3.816 MB / 0.9669 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (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 (6): * Single equations (assignments): 6 * 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.0001734/0.3271, allocations: 119.2 kB / 1.213 GB, free: 3.691 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001026/0.3272, allocations: 35.92 kB / 1.213 GB, free: 3.656 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.3272, allocations: 4 kB / 1.213 GB, free: 3.652 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 2.959e-05/0.3273, allocations: 19.92 kB / 1.213 GB, free: 3.633 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002191/0.3275, allocations: 11.94 kB / 1.213 GB, free: 3.621 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004125/0.3279, allocations: 216.4 kB / 1.213 GB, free: 3.379 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002214/0.3281, allocations: 0.6729 MB / 1.214 GB, free: 2.68 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 2.881e-05/0.3282, allocations: 11.92 kB / 1.214 GB, free: 2.668 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.136e-05/0.3282, allocations: 11.44 kB / 1.214 GB, free: 2.656 MB / 0.9669 GB Notification: Performance of SimCode: time 2.11e-07/0.3282, allocations: 3.938 kB / 1.214 GB, free: 2.652 MB / 0.9669 GB Notification: Performance of Templates: time 0.002669/0.3309, allocations: 0.6615 MB / 1.215 GB, free: 2.027 MB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.makefile (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches