Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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_dp_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001452/0.001452, allocations: 103.8 kB / 16.37 MB, free: 5.547 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.001592/0.001592, allocations: 194.5 kB / 17.31 MB, free: 5.184 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.325/1.325, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.442/2.442, allocations: 442.6 MB / 0.7165 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00216/0.00216, allocations: 60.19 kB / 0.8773 GB, free: 10.98 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.339/0.3412, allocations: 153 MB / 1.027 GB, free: 2.066 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002363/0.3436, allocations: 1.287 MB / 1.028 GB, free: 0.7695 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0009449/0.3445, allocations: 0.6095 MB / 1.029 GB, free: 164 kB / 0.795 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.975e-05/0.3446, allocations: 0 / 1.029 GB, free: 164 kB / 0.795 GB Notification: Performance of NFTyping.typeComponents: time 2.116e-05/0.3446, allocations: 3.938 kB / 1.029 GB, free: 160 kB / 0.795 GB Notification: Performance of NFTyping.typeBindings: time 4.242e-05/0.3447, allocations: 7.984 kB / 1.029 GB, free: 152 kB / 0.795 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005772/0.3453, allocations: 143.4 kB / 1.029 GB, free: 8 kB / 0.795 GB Notification: Performance of NFFlatten.flatten: time 7.433e-05/0.3454, allocations: 19.92 kB / 1.029 GB, free: 15.99 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.768e-05/0.3454, allocations: 7.938 kB / 1.029 GB, free: 15.98 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.485e-05/0.3454, allocations: 11.92 kB / 1.029 GB, free: 15.97 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.73e-05/0.3455, allocations: 15.92 kB / 1.029 GB, free: 15.95 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 9.748e-06/0.3455, allocations: 0 / 1.029 GB, free: 15.95 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004801/0.346, allocations: 339.4 kB / 1.029 GB, free: 15.62 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.327e-05/0.346, allocations: 4 kB / 1.029 GB, free: 15.62 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.384e-05/0.346, allocations: 7.938 kB / 1.029 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002724/0.3463, allocations: 147.7 kB / 1.029 GB, free: 15.46 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.3463, allocations: 0 / 1.029 GB, free: 15.46 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.382e-06/0.3463, allocations: 0 / 1.029 GB, free: 15.46 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.983e-06/0.3464, allocations: 0 / 1.029 GB, free: 15.46 MB / 0.8106 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.0003789/0.3467, allocations: 363.4 kB / 1.03 GB, free: 15.06 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.368e-05/0.3468, allocations: 8.031 kB / 1.03 GB, free: 15.05 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.726e-05/0.3468, allocations: 4.938 kB / 1.03 GB, free: 15.05 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001057/0.3469, allocations: 176.2 kB / 1.03 GB, free: 14.84 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.025e-05/0.347, allocations: 4.312 kB / 1.03 GB, free: 14.83 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.941e-05/0.347, allocations: 8.375 kB / 1.03 GB, free: 14.82 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001008/0.3471, allocations: 38.25 kB / 1.03 GB, free: 14.78 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.804e-06/0.3471, allocations: 4.188 kB / 1.03 GB, free: 14.78 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.151e-05/0.3471, allocations: 7.922 kB / 1.03 GB, free: 14.77 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.3471, allocations: 0 / 1.03 GB, free: 14.77 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.889e-05/0.3472, allocations: 8 kB / 1.03 GB, free: 14.76 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001495/0.3473, allocations: 161.7 kB / 1.03 GB, free: 14.55 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001775/0.3475, allocations: 46.55 kB / 1.03 GB, free: 14.5 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.579e-05/0.3476, allocations: 20.94 kB / 1.03 GB, free: 14.48 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.953e-05/0.3476, allocations: 0 / 1.03 GB, free: 14.48 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.979e-05/0.3476, allocations: 34.56 kB / 1.03 GB, free: 14.43 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=4): time 8.72e-07/0.3476, allocations: 0 / 1.03 GB, free: 14.43 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0005988/0.3482, allocations: 306.2 kB / 1.03 GB, free: 14.08 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.384e-05/0.3483, allocations: 51.41 kB / 1.03 GB, free: 14.02 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.704e-05/0.3483, allocations: 105.8 kB / 1.031 GB, free: 13.91 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.273e-05/0.3483, allocations: 25.7 kB / 1.031 GB, free: 13.88 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.151e-05/0.3484, allocations: 80.14 kB / 1.031 GB, free: 13.79 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.676e-05/0.3484, allocations: 19.72 kB / 1.031 GB, free: 13.77 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.883e-05/0.3485, allocations: 21.7 kB / 1.031 GB, free: 13.75 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.692e-05/0.3486, allocations: 314.8 kB / 1.031 GB, free: 13.43 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.416e-05/0.3486, allocations: 11.94 kB / 1.031 GB, free: 13.42 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.48e-05/0.3486, allocations: 15.98 kB / 1.031 GB, free: 13.4 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.919e-05/0.3487, allocations: 36.86 kB / 1.031 GB, free: 13.36 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.81e-07/0.3487, allocations: 0 / 1.031 GB, free: 13.36 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.853e-05/0.3488, allocations: 61.67 kB / 1.031 GB, free: 13.3 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.417e-05/0.3488, allocations: 15.88 kB / 1.031 GB, free: 13.28 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.087e-06/0.3488, allocations: 0 / 1.031 GB, free: 13.28 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.136e-05/0.3488, allocations: 0 / 1.031 GB, free: 13.28 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.332e-05/0.3489, allocations: 11.94 kB / 1.031 GB, free: 13.27 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.263e-06/0.3489, allocations: 8.219 kB / 1.031 GB, free: 13.26 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.747e-05/0.3489, allocations: 0 / 1.031 GB, free: 13.26 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.702e-06/0.3489, allocations: 4 kB / 1.031 GB, free: 13.26 MB / 0.8106 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.424e-05/0.349, allocations: 113.8 kB / 1.031 GB, free: 13.14 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.828e-05/0.349, allocations: 7.844 kB / 1.031 GB, free: 13.13 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001386/0.3492, allocations: 69.64 kB / 1.031 GB, free: 13.05 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.627e-06/0.3492, allocations: 4 kB / 1.031 GB, free: 13.05 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.97e-06/0.3492, allocations: 3.984 kB / 1.031 GB, free: 13.05 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.066e-06/0.3492, allocations: 0 / 1.031 GB, free: 13.05 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002896/0.3495, allocations: 319.5 kB / 1.032 GB, free: 12.68 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.3495, allocations: 3.969 kB / 1.032 GB, free: 12.67 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.725e-05/0.3496, allocations: 16 kB / 1.032 GB, free: 12.66 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.3496, allocations: 4.453 kB / 1.032 GB, free: 12.65 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.983e-06/0.3496, allocations: 0 / 1.032 GB, free: 12.65 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.216e-06/0.3496, allocations: 3.984 kB / 1.032 GB, free: 12.65 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.3496, allocations: 4 kB / 1.032 GB, free: 12.64 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001641/0.3498, allocations: 172.3 kB / 1.032 GB, free: 12.46 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 4.971e-05/0.3499, allocations: 89.09 kB / 1.032 GB, free: 12.35 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.249e-05/0.3499, allocations: 4 kB / 1.032 GB, free: 12.35 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.203e-05/0.35, allocations: 4 kB / 1.032 GB, free: 12.34 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.766e-05/0.35, allocations: 7.984 kB / 1.032 GB, free: 12.34 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.999e-06/0.35, allocations: 0 / 1.032 GB, free: 12.34 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 3.131e-05/0.35, allocations: 83.27 kB / 1.032 GB, free: 12.25 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.35, allocations: 0 / 1.032 GB, free: 12.25 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002537/0.3503, allocations: 27.94 kB / 1.032 GB, free: 12.23 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (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 (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.0001635/0.3505, allocations: 127.2 kB / 1.032 GB, free: 12.09 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001075/0.3506, allocations: 31.98 kB / 1.032 GB, free: 12.06 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.3506, allocations: 0 / 1.032 GB, free: 12.06 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 2.854e-05/0.3506, allocations: 19.94 kB / 1.032 GB, free: 12.04 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002203/0.3508, allocations: 7.938 kB / 1.032 GB, free: 12.03 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003802/0.3512, allocations: 196.2 kB / 1.032 GB, free: 11.81 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002078/0.3514, allocations: 0.6806 MB / 1.033 GB, free: 11.1 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 2.653e-05/0.3515, allocations: 8.125 kB / 1.033 GB, free: 11.09 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.242e-05/0.3515, allocations: 15.44 kB / 1.033 GB, free: 11.08 MB / 0.8106 GB Notification: Performance of SimCode: time 3.21e-07/0.3515, allocations: 4 kB / 1.033 GB, free: 11.07 MB / 0.8106 GB Notification: Performance of Templates: time 0.002668/0.3542, allocations: 0.6235 MB / 1.034 GB, free: 10.48 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.makefile (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches