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.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_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.001852/0.001852, allocations: 112.7 kB / 16.37 MB, free: 6 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.001194/0.001194, allocations: 196 kB / 17.31 MB, free: 5.613 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.372/1.372, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.539/2.539, allocations: 442.6 MB / 0.7165 GB, free: 14.64 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00156/0.00156, allocations: 60.47 kB / 0.8773 GB, free: 10.96 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.338/0.3396, allocations: 153 MB / 1.027 GB, free: 2.043 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002933/0.3425, allocations: 1.485 MB / 1.028 GB, free: 0.5508 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.001039/0.3436, allocations: 0.6266 MB / 1.029 GB, free: 15.92 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.213e-05/0.3436, allocations: 3.938 kB / 1.029 GB, free: 15.92 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.067e-05/0.3437, allocations: 7.922 kB / 1.029 GB, free: 15.91 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.576e-05/0.3437, allocations: 7.875 kB / 1.029 GB, free: 15.9 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005704/0.3443, allocations: 159.4 kB / 1.029 GB, free: 15.75 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.224e-05/0.3444, allocations: 55.83 kB / 1.029 GB, free: 15.69 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 5.071e-05/0.3445, allocations: 3.984 kB / 1.029 GB, free: 15.69 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.55e-05/0.3446, allocations: 27.92 kB / 1.029 GB, free: 15.66 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.876e-05/0.3446, allocations: 23.92 kB / 1.029 GB, free: 15.64 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.478e-05/0.3447, allocations: 4 kB / 1.029 GB, free: 15.63 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004818/0.3451, allocations: 347.3 kB / 1.029 GB, free: 15.29 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.013e-05/0.3452, allocations: 15.92 kB / 1.029 GB, free: 15.28 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.859e-05/0.3452, allocations: 27.84 kB / 1.029 GB, free: 15.25 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002765/0.3455, allocations: 175.5 kB / 1.03 GB, free: 15.08 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.3455, allocations: 0 / 1.03 GB, free: 15.08 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.056e-06/0.3455, allocations: 0 / 1.03 GB, free: 15.08 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.829e-06/0.3455, allocations: 3.938 kB / 1.03 GB, free: 15.07 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006092/0.3461, allocations: 403.3 kB / 1.03 GB, free: 14.63 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.515e-05/0.3462, allocations: 8.031 kB / 1.03 GB, free: 14.62 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.261e-05/0.3462, allocations: 4.938 kB / 1.03 GB, free: 14.62 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001424/0.3464, allocations: 172.2 kB / 1.03 GB, free: 14.41 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.132e-05/0.3464, allocations: 384 / 1.03 GB, free: 14.41 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.015e-05/0.3465, allocations: 12.38 kB / 1.03 GB, free: 14.4 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002404/0.3467, allocations: 82.2 kB / 1.03 GB, free: 14.31 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.3467, allocations: 4.188 kB / 1.03 GB, free: 14.31 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.356e-05/0.3467, allocations: 3.938 kB / 1.03 GB, free: 14.3 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.559e-06/0.3467, allocations: 0 / 1.03 GB, free: 14.3 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002142/0.347, allocations: 59.45 kB / 1.03 GB, free: 14.25 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005586/0.3475, allocations: 320.6 kB / 1.031 GB, free: 13.89 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002601/0.3478, allocations: 78.53 kB / 1.031 GB, free: 13.8 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001057/0.3479, allocations: 28.84 kB / 1.031 GB, free: 13.77 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.714e-05/0.348, allocations: 8.141 kB / 1.031 GB, free: 13.76 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.704e-05/0.348, allocations: 34.5 kB / 1.031 GB, free: 13.72 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.153e-06/0.348, allocations: 0 / 1.031 GB, free: 13.72 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.001596/0.3496, allocations: 0.6461 MB / 1.031 GB, free: 12.98 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.944e-05/0.3497, allocations: 51.41 kB / 1.031 GB, free: 12.92 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.742e-05/0.3498, allocations: 109.8 kB / 1.032 GB, free: 12.8 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.921e-05/0.3498, allocations: 29.7 kB / 1.032 GB, free: 12.77 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 9.217e-05/0.3499, allocations: 88.05 kB / 1.032 GB, free: 12.68 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.576e-05/0.3499, allocations: 35.45 kB / 1.032 GB, free: 12.64 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.739e-05/0.35, allocations: 29.7 kB / 1.032 GB, free: 12.61 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001165/0.3501, allocations: 318.8 kB / 1.032 GB, free: 12.29 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001284/0.3502, allocations: 27.97 kB / 1.032 GB, free: 12.26 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001056/0.3503, allocations: 35.98 kB / 1.032 GB, free: 12.22 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002182/0.3506, allocations: 72.83 kB / 1.032 GB, free: 12.15 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.02e-07/0.3506, allocations: 7.875 kB / 1.032 GB, free: 12.14 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002825/0.3509, allocations: 117.7 kB / 1.032 GB, free: 12.02 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/0.3509, allocations: 8 kB / 1.032 GB, free: 12.01 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.811e-06/0.3509, allocations: 3.984 kB / 1.032 GB, free: 12.01 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.298e-05/0.3509, allocations: 0 / 1.032 GB, free: 12.01 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001411/0.3511, allocations: 28.08 kB / 1.032 GB, free: 11.98 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.3511, allocations: 3.938 kB / 1.032 GB, free: 11.98 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.788e-05/0.3511, allocations: 7.938 kB / 1.032 GB, free: 11.97 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.376e-05/0.3512, allocations: 12.19 kB / 1.032 GB, free: 11.96 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 (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.557e-05/0.3513, allocations: 125.7 kB / 1.032 GB, free: 11.82 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.836e-05/0.3513, allocations: 0 / 1.032 GB, free: 11.82 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00035/0.3516, allocations: 125.6 kB / 1.033 GB, free: 11.7 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.3517, allocations: 4 kB / 1.033 GB, free: 11.69 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.238e-06/0.3517, allocations: 0 / 1.033 GB, free: 11.69 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.518e-06/0.3517, allocations: 3.938 kB / 1.033 GB, free: 11.69 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005308/0.3522, allocations: 386.4 kB / 1.033 GB, free: 11.25 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.3522, allocations: 0 / 1.033 GB, free: 11.25 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001358/0.3524, allocations: 23.98 kB / 1.033 GB, free: 11.23 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.3524, allocations: 0 / 1.033 GB, free: 11.23 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.627e-05/0.3524, allocations: 11.94 kB / 1.033 GB, free: 11.22 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.935e-06/0.3524, allocations: 7.984 kB / 1.033 GB, free: 11.21 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.3524, allocations: 0 / 1.033 GB, free: 11.21 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004595/0.3529, allocations: 251.5 kB / 1.033 GB, free: 10.95 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.006e-05/0.3529, allocations: 85.05 kB / 1.033 GB, free: 10.85 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.069e-05/0.353, allocations: 7.938 kB / 1.033 GB, free: 10.84 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001119/0.3531, allocations: 8.062 kB / 1.033 GB, free: 10.83 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.092e-05/0.3531, allocations: 7.984 kB / 1.033 GB, free: 10.82 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.095e-05/0.3531, allocations: 8 kB / 1.033 GB, free: 10.82 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.087e-05/0.3532, allocations: 79.27 kB / 1.033 GB, free: 10.74 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.3e-07/0.3532, allocations: 4 kB / 1.033 GB, free: 10.73 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002886/0.3535, allocations: 35.94 kB / 1.033 GB, free: 10.7 MB / 0.8106 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.0002466/0.3537, allocations: 139.2 kB / 1.034 GB, free: 10.55 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0003081/0.354, allocations: 87.83 kB / 1.034 GB, free: 10.46 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.3541, allocations: 0 / 1.034 GB, free: 10.46 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001245/0.3542, allocations: 47.91 kB / 1.034 GB, free: 10.42 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002951/0.3545, allocations: 11.94 kB / 1.034 GB, free: 10.41 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000656/0.3552, allocations: 313.8 kB / 1.034 GB, free: 10.07 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003012/0.3555, allocations: 0.6924 MB / 1.035 GB, free: 9.352 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 5.062e-05/0.3555, allocations: 8.672 kB / 1.035 GB, free: 9.344 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.184e-05/0.3556, allocations: 19.42 kB / 1.035 GB, free: 9.324 MB / 0.8106 GB Notification: Performance of SimCode: time 3.81e-07/0.3556, allocations: 0 / 1.035 GB, free: 9.324 MB / 0.8106 GB Notification: Performance of Templates: time 0.003694/0.3593, allocations: 1.128 MB / 1.036 GB, free: 8.234 MB / 0.8106 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 -s cvode -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/jenkins1/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