Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_dp_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_10_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_10_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.009122/0.009122, allocations: 97.17 kB / 15.73 MB, free: 6.047 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.00197/0.001971, allocations: 194.5 kB / 16.68 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.415/1.415, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.648/2.648, allocations: 437 MB / 0.7105 GB, free: 5.047 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 71.88 kB / 1.019 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.33/0.3313, allocations: 151.6 MB / 1.167 GB, free: 6.816 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002683/0.334, allocations: 1.273 MB / 1.168 GB, free: 5.531 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.001142/0.3352, allocations: 0.6191 MB / 1.168 GB, free: 4.91 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.753e-05/0.3353, allocations: 0 / 1.168 GB, free: 4.91 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 2.107e-05/0.3353, allocations: 0 / 1.168 GB, free: 4.91 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 4.838e-05/0.3354, allocations: 3.938 kB / 1.168 GB, free: 4.906 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007556/0.3361, allocations: 159.1 kB / 1.169 GB, free: 4.754 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 7.041e-05/0.3362, allocations: 15.92 kB / 1.169 GB, free: 4.738 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 4.58e-05/0.3363, allocations: 4 kB / 1.169 GB, free: 4.734 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 4.771e-05/0.3363, allocations: 8 kB / 1.169 GB, free: 4.727 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 6.497e-05/0.3364, allocations: 15.91 kB / 1.169 GB, free: 4.711 MB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 1.261e-05/0.3364, allocations: 0 / 1.169 GB, free: 4.711 MB / 0.92 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005592/0.337, allocations: 343.3 kB / 1.169 GB, free: 4.375 MB / 0.92 GB Notification: Performance of NFScalarize.scalarize: time 1.352e-05/0.337, allocations: 0 / 1.169 GB, free: 4.375 MB / 0.92 GB Notification: Performance of NFVerifyModel.verify: time 2.982e-05/0.337, allocations: 15.92 kB / 1.169 GB, free: 4.359 MB / 0.92 GB Notification: Performance of NFConvertDAE.convert: time 0.0003263/0.3374, allocations: 147.5 kB / 1.169 GB, free: 4.215 MB / 0.92 GB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.3374, allocations: 0 / 1.169 GB, free: 4.215 MB / 0.92 GB Notification: Performance of FrontEnd: time 1.493e-06/0.3374, allocations: 4 kB / 1.169 GB, free: 4.211 MB / 0.92 GB Notification: Performance of Transformations before backend: time 5.921e-06/0.3374, allocations: 0 / 1.169 GB, free: 4.211 MB / 0.92 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.0004882/0.3379, allocations: 359.1 kB / 1.169 GB, free: 3.809 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 4.404e-05/0.338, allocations: 12.03 kB / 1.169 GB, free: 3.797 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.931e-05/0.338, allocations: 0.9375 kB / 1.169 GB, free: 3.797 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001436/0.3382, allocations: 172.3 kB / 1.17 GB, free: 3.59 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.216e-05/0.3382, allocations: 8.312 kB / 1.17 GB, free: 3.582 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.328e-05/0.3382, allocations: 384 / 1.17 GB, free: 3.582 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001199/0.3383, allocations: 42.25 kB / 1.17 GB, free: 3.535 MB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.3383, allocations: 4.188 kB / 1.17 GB, free: 3.531 MB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.291e-05/0.3384, allocations: 3.938 kB / 1.17 GB, free: 3.527 MB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.3384, allocations: 0 / 1.17 GB, free: 3.527 MB / 0.92 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.894e-05/0.3384, allocations: 15.94 kB / 1.17 GB, free: 3.512 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001991/0.3386, allocations: 153.7 kB / 1.17 GB, free: 3.312 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002077/0.3388, allocations: 42.61 kB / 1.17 GB, free: 3.262 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.093e-05/0.3389, allocations: 20.94 kB / 1.17 GB, free: 3.238 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 2.084e-05/0.3389, allocations: 4 kB / 1.17 GB, free: 3.234 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.97e-05/0.339, allocations: 34.56 kB / 1.17 GB, free: 3.191 MB / 0.92 GB Notification: Performance of pre-optimization done (n=4): time 1.113e-06/0.339, allocations: 3.938 kB / 1.17 GB, free: 3.188 MB / 0.92 GB Notification: Performance of matching and sorting (n=6): time 0.0007388/0.3397, allocations: 310.2 kB / 1.17 GB, free: 2.832 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.341e-05/0.3398, allocations: 51.41 kB / 1.17 GB, free: 2.77 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.549e-05/0.3399, allocations: 102.2 kB / 1.17 GB, free: 2.66 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 1.867e-05/0.3399, allocations: 33.7 kB / 1.17 GB, free: 2.621 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 3.837e-05/0.3399, allocations: 80.14 kB / 1.171 GB, free: 2.539 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 3.761e-05/0.34, allocations: 23.78 kB / 1.171 GB, free: 2.516 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.932e-05/0.34, allocations: 17.72 kB / 1.171 GB, free: 2.492 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001437/0.3402, allocations: 318.8 kB / 1.171 GB, free: 2.172 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.9e-05/0.3402, allocations: 12.05 kB / 1.171 GB, free: 2.16 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.495e-05/0.3402, allocations: 12 kB / 1.171 GB, free: 2.148 MB / 0.92 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.557e-05/0.3403, allocations: 32.86 kB / 1.171 GB, free: 2.113 MB / 0.92 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.132e-06/0.3403, allocations: 4 kB / 1.171 GB, free: 2.109 MB / 0.92 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001159/0.3405, allocations: 69.58 kB / 1.171 GB, free: 2.035 MB / 0.92 GB Notification: Performance of prepare postOptimizeDAE: time 1.797e-05/0.3405, allocations: 7.938 kB / 1.171 GB, free: 2.027 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.731e-06/0.3405, allocations: 0 / 1.171 GB, free: 2.027 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.93e-05/0.3405, allocations: 0 / 1.171 GB, free: 2.027 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.095e-05/0.3406, allocations: 15.98 kB / 1.171 GB, free: 2.012 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.591e-06/0.3406, allocations: 0 / 1.171 GB, free: 2.012 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.057e-05/0.3406, allocations: 4 kB / 1.171 GB, free: 2.008 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.43e-06/0.3406, allocations: 240 / 1.171 GB, free: 2.008 MB / 0.92 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 9.867e-05/0.3407, allocations: 109.8 kB / 1.171 GB, free: 1.891 MB / 0.92 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.582e-05/0.3408, allocations: 11.94 kB / 1.171 GB, free: 1.879 MB / 0.92 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001539/0.3409, allocations: 81.56 kB / 1.171 GB, free: 1.785 MB / 0.92 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.405e-06/0.3409, allocations: 0 / 1.171 GB, free: 1.785 MB / 0.92 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.3409, allocations: 0 / 1.171 GB, free: 1.785 MB / 0.92 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.3409, allocations: 0 / 1.171 GB, free: 1.785 MB / 0.92 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000369/0.3413, allocations: 315.3 kB / 1.172 GB, free: 1.418 MB / 0.92 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.3413, allocations: 3.938 kB / 1.172 GB, free: 1.414 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.567e-05/0.3414, allocations: 12 kB / 1.172 GB, free: 1.402 MB / 0.92 GB Notification: Performance of postOpt tearingSystem (simulation): time 8.115e-06/0.3414, allocations: 8.016 kB / 1.172 GB, free: 1.395 MB / 0.92 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.567e-06/0.3414, allocations: 0 / 1.172 GB, free: 1.395 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.3414, allocations: 4 kB / 1.172 GB, free: 1.391 MB / 0.92 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.3414, allocations: 0 / 1.172 GB, free: 1.391 MB / 0.92 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001883/0.3416, allocations: 180.4 kB / 1.172 GB, free: 1.195 MB / 0.92 GB Notification: Performance of postOpt removeConstants (simulation): time 5.563e-05/0.3417, allocations: 89.19 kB / 1.172 GB, free: 1.09 MB / 0.92 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.341e-05/0.3417, allocations: 7.938 kB / 1.172 GB, free: 1.082 MB / 0.92 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.145e-05/0.3418, allocations: 4.062 kB / 1.172 GB, free: 1.078 MB / 0.92 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.601e-05/0.3418, allocations: 4 kB / 1.172 GB, free: 1.074 MB / 0.92 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.969e-06/0.3418, allocations: 7.984 kB / 1.172 GB, free: 1.066 MB / 0.92 GB Notification: Performance of sorting global known variables: time 4.576e-05/0.3419, allocations: 83.28 kB / 1.172 GB, free: 0.9844 MB / 0.92 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3419, allocations: 0 / 1.172 GB, free: 0.9844 MB / 0.92 GB Notification: Performance of remove unused functions: time 0.0002509/0.3422, allocations: 19.94 kB / 1.172 GB, free: 0.9648 MB / 0.92 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.0001853/0.3423, allocations: 119.1 kB / 1.172 GB, free: 0.8398 MB / 0.92 GB Notification: Performance of simCode: created initialization part: time 0.0001068/0.3425, allocations: 39.92 kB / 1.172 GB, free: 0.8008 MB / 0.92 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3425, allocations: 4 kB / 1.172 GB, free: 0.7969 MB / 0.92 GB Notification: Performance of simCode: created simulation system equations: time 3.639e-05/0.3425, allocations: 19.98 kB / 1.172 GB, free: 0.7773 MB / 0.92 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002293/0.3427, allocations: 7.938 kB / 1.172 GB, free: 0.7695 MB / 0.92 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004032/0.3432, allocations: 200.2 kB / 1.172 GB, free: 0.5469 MB / 0.92 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002748/0.3434, allocations: 0.6768 MB / 1.173 GB, free: 15.84 MB / 0.9356 GB Notification: Performance of simCode: alias equations: time 3.763e-05/0.3435, allocations: 8.234 kB / 1.173 GB, free: 15.84 MB / 0.9356 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.011e-05/0.3435, allocations: 11.44 kB / 1.173 GB, free: 15.83 MB / 0.9356 GB Notification: Performance of SimCode: time 2.2e-07/0.3435, allocations: 0 / 1.173 GB, free: 15.83 MB / 0.9356 GB Notification: Performance of Templates: time 0.0029/0.3464, allocations: 0.6357 MB / 1.174 GB, free: 15.23 MB / 0.9356 GB make -j1 -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.makefile (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & ./Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches