Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp|m_flow_turbulent|der.m_flow.|der.m_flow_comp.|err_m_flow|err_der_m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp|m_flow_turbulent|der.m_flow.|der.m_flow_comp.|err_m_flow|err_der_m_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001392/0.001392, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001639/0.001639, allocations: 194.6 kB / 16.53 MB, free: 6.664 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.398/1.398, allocations: 222.9 MB / 240.2 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.826/2.826, allocations: 472.7 MB / 0.7451 GB, free: 4.625 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001303/0.001303, allocations: 62.53 kB / 0.9121 GB, free: 33.4 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3515/0.3528, allocations: 159.9 MB / 1.068 GB, free: 10.38 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002345/0.3552, allocations: 1.274 MB / 1.069 GB, free: 9.094 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001024/0.3562, allocations: 0.6249 MB / 1.07 GB, free: 8.469 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.112e-05/0.3563, allocations: 0 / 1.07 GB, free: 8.469 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.551e-05/0.3563, allocations: 7.875 kB / 1.07 GB, free: 8.461 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 3.856e-05/0.3564, allocations: 3.938 kB / 1.07 GB, free: 8.457 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005321/0.3569, allocations: 151.4 kB / 1.07 GB, free: 8.309 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.186e-05/0.357, allocations: 31.84 kB / 1.07 GB, free: 8.277 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.955e-05/0.357, allocations: 8 kB / 1.07 GB, free: 8.27 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 2.083e-05/0.357, allocations: 8 kB / 1.07 GB, free: 8.262 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.051e-05/0.3571, allocations: 15.92 kB / 1.07 GB, free: 8.246 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.355e-05/0.3571, allocations: 4 kB / 1.07 GB, free: 8.242 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004984/0.3576, allocations: 347.3 kB / 1.071 GB, free: 7.902 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.447e-05/0.3576, allocations: 3.984 kB / 1.071 GB, free: 7.898 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.759e-05/0.3577, allocations: 11.94 kB / 1.071 GB, free: 7.887 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002697/0.3579, allocations: 155.9 kB / 1.071 GB, free: 7.734 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.297e-06/0.358, allocations: 0 / 1.071 GB, free: 7.734 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.473e-06/0.358, allocations: 4 kB / 1.071 GB, free: 7.73 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.428e-06/0.358, allocations: 0 / 1.071 GB, free: 7.73 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.000405/0.3584, allocations: 371.4 kB / 1.071 GB, free: 7.316 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.333e-05/0.3584, allocations: 8.031 kB / 1.071 GB, free: 7.309 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.802e-05/0.3585, allocations: 8.844 kB / 1.071 GB, free: 7.301 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001198/0.3586, allocations: 160.4 kB / 1.071 GB, free: 7.105 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.238e-06/0.3586, allocations: 4.375 kB / 1.071 GB, free: 7.102 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.452e-05/0.3586, allocations: 8.375 kB / 1.071 GB, free: 7.094 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000111/0.3587, allocations: 50.23 kB / 1.071 GB, free: 7.039 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.347e-06/0.3588, allocations: 192 / 1.071 GB, free: 7.039 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.28e-05/0.3588, allocations: 7.938 kB / 1.071 GB, free: 7.031 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.3588, allocations: 0 / 1.071 GB, free: 7.031 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.143e-05/0.3588, allocations: 23.92 kB / 1.071 GB, free: 7.008 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001711/0.359, allocations: 169.6 kB / 1.072 GB, free: 6.793 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 9.96e-05/0.3591, allocations: 58.55 kB / 1.072 GB, free: 6.727 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.722e-05/0.3592, allocations: 28.84 kB / 1.072 GB, free: 6.695 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.578e-05/0.3592, allocations: 4 kB / 1.072 GB, free: 6.691 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.394e-05/0.3592, allocations: 34.56 kB / 1.072 GB, free: 6.648 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 2.815e-06/0.3592, allocations: 0 / 1.072 GB, free: 6.648 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.001162/0.3604, allocations: 0.5994 MB / 1.072 GB, free: 5.957 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.231e-05/0.3605, allocations: 51.41 kB / 1.072 GB, free: 5.895 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.038e-05/0.3605, allocations: 97.86 kB / 1.072 GB, free: 5.789 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 4.743e-05/0.3606, allocations: 25.7 kB / 1.072 GB, free: 5.758 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.004e-05/0.3606, allocations: 84.12 kB / 1.073 GB, free: 5.672 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.652e-05/0.3607, allocations: 39.41 kB / 1.073 GB, free: 5.633 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.277e-05/0.3607, allocations: 29.7 kB / 1.073 GB, free: 5.598 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001003/0.3608, allocations: 315 kB / 1.073 GB, free: 5.281 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.373e-05/0.3609, allocations: 27.98 kB / 1.073 GB, free: 5.254 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.642e-05/0.3609, allocations: 19.98 kB / 1.073 GB, free: 5.234 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.856e-05/0.361, allocations: 56.36 kB / 1.073 GB, free: 5.18 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.361, allocations: 4 kB / 1.073 GB, free: 5.176 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001459/0.3612, allocations: 109.5 kB / 1.073 GB, free: 5.062 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.429e-05/0.3612, allocations: 5.875 kB / 1.073 GB, free: 5.059 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.3612, allocations: 0 / 1.073 GB, free: 5.059 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.3612, allocations: 0 / 1.073 GB, free: 5.059 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001102/0.3613, allocations: 24 kB / 1.073 GB, free: 5.035 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.07e-06/0.3613, allocations: 0 / 1.073 GB, free: 5.035 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.644e-05/0.3614, allocations: 7.984 kB / 1.073 GB, free: 5.027 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.245e-06/0.3614, allocations: 4 kB / 1.073 GB, free: 5.023 MB / 0.8262 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 7.403e-05/0.3615, allocations: 115.3 kB / 1.073 GB, free: 4.902 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.833e-05/0.3615, allocations: 7.938 kB / 1.073 GB, free: 4.895 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001937/0.3617, allocations: 105.6 kB / 1.073 GB, free: 4.781 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.3617, allocations: 0 / 1.073 GB, free: 4.781 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.3617, allocations: 0 / 1.073 GB, free: 4.781 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.96e-06/0.3617, allocations: 3.984 kB / 1.073 GB, free: 4.777 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003806/0.3621, allocations: 366.5 kB / 1.074 GB, free: 4.363 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.3621, allocations: 0 / 1.074 GB, free: 4.363 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000122/0.3622, allocations: 16 kB / 1.074 GB, free: 4.348 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.3622, allocations: 0 / 1.074 GB, free: 4.348 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.813e-05/0.3623, allocations: 8 kB / 1.074 GB, free: 4.34 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.332e-06/0.3623, allocations: 0 / 1.074 GB, free: 4.34 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/0.3623, allocations: 3.984 kB / 1.074 GB, free: 4.336 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000238/0.3625, allocations: 223.2 kB / 1.074 GB, free: 4.102 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.268e-05/0.3626, allocations: 85.05 kB / 1.074 GB, free: 4 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.554e-05/0.3626, allocations: 96 / 1.074 GB, free: 4 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.823e-05/0.3627, allocations: 7.938 kB / 1.074 GB, free: 3.992 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.089e-05/0.3627, allocations: 11.98 kB / 1.074 GB, free: 3.98 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.432e-06/0.3627, allocations: 0 / 1.074 GB, free: 3.98 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.185e-05/0.3628, allocations: 79.28 kB / 1.074 GB, free: 3.902 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3628, allocations: 0 / 1.074 GB, free: 3.902 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002703/0.363, allocations: 35.98 kB / 1.074 GB, free: 3.867 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (m_flow_comp,der_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 (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.0001864/0.3632, allocations: 135.9 kB / 1.074 GB, free: 3.727 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001504/0.3634, allocations: 67.84 kB / 1.074 GB, free: 3.66 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3634, allocations: 0 / 1.074 GB, free: 3.66 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 5.595e-05/0.3635, allocations: 39.92 kB / 1.074 GB, free: 3.621 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000215/0.3637, allocations: 10.03 kB / 1.074 GB, free: 3.613 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005079/0.3642, allocations: 292.8 kB / 1.075 GB, free: 3.301 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002328/0.3644, allocations: 0.6846 MB / 1.075 GB, free: 2.59 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 4.263e-05/0.3645, allocations: 7.984 kB / 1.075 GB, free: 2.582 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.285e-05/0.3645, allocations: 15.44 kB / 1.075 GB, free: 2.566 MB / 0.8262 GB Notification: Performance of SimCode: time 2.41e-07/0.3645, allocations: 4 kB / 1.075 GB, free: 2.562 MB / 0.8262 GB Notification: Performance of Templates: time 0.003181/0.3677, allocations: 0.9422 MB / 1.076 GB, free: 1.656 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,m_flow,m_flow_comp,m_flow_turbulent,der(m_flow),der(m_flow_comp),err_m_flow,err_der_m_flow Variables in the result:der(m_flow),der(m_flow_comp),err_der_m_flow,err_m_flow,k,m_flow,m_flow_comp,m_flow_turbulent,time