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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009703/0.0009703, allocations: 80.88 kB / 19.94 MB, free: 4.547 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001158/0.001158, allocations: 181 kB / 23.36 MB, free: 1.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9843/0.9843, allocations: 177.2 MB / 203.8 MB, free: 5.477 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.305/2.305, allocations: 438.8 MB / 0.6827 GB, free: 13.61 MB / 0.6511 GB " [Timeout remaining time 177] Using package Buildings with version 14.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|m_flow|m_flow_comp|m_flow_turbulent|der.m_flow.|der.m_flow_comp.",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=2500,variableFilter="time|m_flow|m_flow_comp|m_flow_turbulent|der.m_flow.|der.m_flow_comp.",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.262e-06/1.262e-06, allocations: 0 / 0.8386 GB, free: 14.23 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.267e-05/2.394e-05, allocations: 6.25 kB / 0.8386 GB, free: 14.22 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.001888/0.001912, allocations: 1.35 MB / 0.8399 GB, free: 12.86 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.00077/0.002682, allocations: 0.5798 MB / 0.8405 GB, free: 12.28 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.743e-05/0.002709, allocations: 0 / 0.8405 GB, free: 12.28 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 1.912e-05/0.002729, allocations: 7.922 kB / 0.8405 GB, free: 12.27 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 4.046e-05/0.002769, allocations: 3.938 kB / 0.8405 GB, free: 12.27 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005352/0.003304, allocations: 151.2 kB / 0.8406 GB, free: 12.12 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 6.568e-05/0.00337, allocations: 27.86 kB / 0.8407 GB, free: 12.09 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 3.686e-05/0.003407, allocations: 4 kB / 0.8407 GB, free: 12.09 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 3.873e-05/0.003446, allocations: 19.97 kB / 0.8407 GB, free: 12.07 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 5.722e-05/0.003503, allocations: 11.92 kB / 0.8407 GB, free: 12.05 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 1.346e-05/0.003516, allocations: 0 / 0.8407 GB, free: 12.05 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003068/0.003823, allocations: 267.5 kB / 0.841 GB, free: 11.79 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 1.924e-05/0.003842, allocations: 15.86 kB / 0.841 GB, free: 11.78 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 1.821e-05/0.00386, allocations: 15.98 kB / 0.841 GB, free: 11.76 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0002019/0.004062, allocations: 159.5 kB / 0.8411 GB, free: 11.61 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 2.975e-06/0.004065, allocations: 0 / 0.8411 GB, free: 11.61 MB / 0.8073 GB Notification: Performance of FrontEnd: time 1.533e-06/0.004067, allocations: 4 kB / 0.8411 GB, free: 11.6 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 3.637e-06/0.004071, allocations: 0 / 0.8411 GB, free: 11.6 MB / 0.8073 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.0002902/0.004361, allocations: 272.5 kB / 0.8414 GB, free: 11.31 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.39e-05/0.004395, allocations: 8.625 kB / 0.8414 GB, free: 11.3 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.779e-05/0.004422, allocations: 8.922 kB / 0.8414 GB, free: 11.29 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.149e-05/0.004494, allocations: 105.8 kB / 0.8415 GB, free: 11.16 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.658e-06/0.004504, allocations: 4.375 kB / 0.8415 GB, free: 11.16 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.065e-05/0.004524, allocations: 4.375 kB / 0.8415 GB, free: 11.16 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.514e-05/0.004609, allocations: 101.6 kB / 0.8416 GB, free: 11.04 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.004617, allocations: 192 / 0.8416 GB, free: 11.04 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.654e-06/0.004625, allocations: 4.359 kB / 0.8416 GB, free: 11.04 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.00463, allocations: 4.375 kB / 0.8416 GB, free: 11.03 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.243e-05/0.004653, allocations: 11.92 kB / 0.8417 GB, free: 11.02 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.303e-05/0.004746, allocations: 76.98 kB / 0.8417 GB, free: 10.93 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 7.157e-05/0.004817, allocations: 42.5 kB / 0.8418 GB, free: 10.88 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.112e-05/0.004838, allocations: 25.08 kB / 0.8418 GB, free: 10.85 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.569e-05/0.004854, allocations: 4 kB / 0.8418 GB, free: 10.85 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.168e-05/0.004876, allocations: 38.55 kB / 0.8418 GB, free: 10.8 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=7): time 1.012e-06/0.004877, allocations: 3.938 kB / 0.8418 GB, free: 10.8 MB / 0.8073 GB Notification: Performance of matching and sorting (n=11): time 0.0007561/0.005633, allocations: 419.7 kB / 0.8422 GB, free: 10.33 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.858e-05/0.005661, allocations: 55.41 kB / 0.8423 GB, free: 10.27 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.08e-05/0.005712, allocations: 110.6 kB / 0.8424 GB, free: 10.14 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.204e-05/0.005724, allocations: 25.7 kB / 0.8424 GB, free: 10.11 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.553e-05/0.00575, allocations: 84.14 kB / 0.8425 GB, free: 10.03 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 3.783e-05/0.005788, allocations: 43.62 kB / 0.8425 GB, free: 9.984 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.138e-05/0.005819, allocations: 25.7 kB / 0.8426 GB, free: 9.953 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 8.11e-05/0.0059, allocations: 314.8 kB / 0.8429 GB, free: 9.637 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.772e-05/0.005918, allocations: 11.98 kB / 0.8429 GB, free: 9.625 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.65e-05/0.005934, allocations: 19.31 kB / 0.8429 GB, free: 9.609 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.665e-05/0.005981, allocations: 40.81 kB / 0.8429 GB, free: 9.566 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.192e-06/0.005982, allocations: 128 / 0.8429 GB, free: 9.566 MB / 0.8073 GB Notification: Performance of matching and sorting (n=13) (initialization): time 7.388e-05/0.006056, allocations: 69.69 kB / 0.843 GB, free: 9.492 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/0.006069, allocations: 7.984 kB / 0.843 GB, free: 9.484 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.13e-06/0.006075, allocations: 0 / 0.843 GB, free: 9.484 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.342e-05/0.006088, allocations: 3.984 kB / 0.843 GB, free: 9.48 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.538e-05/0.006163, allocations: 19.94 kB / 0.843 GB, free: 9.461 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.456e-06/0.006167, allocations: 7.938 kB / 0.843 GB, free: 9.453 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.43e-05/0.006181, allocations: 4 kB / 0.843 GB, free: 9.449 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.823e-06/0.006188, allocations: 3.984 kB / 0.843 GB, free: 9.445 MB / 0.8073 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 6.194e-05/0.00625, allocations: 117.8 kB / 0.8432 GB, free: 9.32 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.067e-05/0.006261, allocations: 4 kB / 0.8432 GB, free: 9.316 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001057/0.006366, allocations: 89.64 kB / 0.8432 GB, free: 9.227 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.006369, allocations: 4 kB / 0.8432 GB, free: 9.223 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.643e-06/0.00637, allocations: 0 / 0.8432 GB, free: 9.223 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.006375, allocations: 3.938 kB / 0.8433 GB, free: 9.219 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002141/0.006589, allocations: 218.8 kB / 0.8435 GB, free: 8.98 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/0.006591, allocations: 0 / 0.8435 GB, free: 8.98 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.094e-05/0.006661, allocations: 23.92 kB / 0.8435 GB, free: 8.957 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.006664, allocations: 0 / 0.8435 GB, free: 8.957 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.115e-05/0.006675, allocations: 12 kB / 0.8435 GB, free: 8.945 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.006677, allocations: 0 / 0.8435 GB, free: 8.945 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.006679, allocations: 7.938 kB / 0.8435 GB, free: 8.938 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001289/0.006808, allocations: 179.8 kB / 0.8437 GB, free: 8.746 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 7.143e-06/0.006815, allocations: 3.953 kB / 0.8437 GB, free: 8.742 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.035e-05/0.006826, allocations: 4 kB / 0.8437 GB, free: 8.738 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.029e-05/0.006866, allocations: 4 kB / 0.8437 GB, free: 8.734 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.642e-05/0.006882, allocations: 11.92 kB / 0.8437 GB, free: 8.723 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.919e-06/0.006887, allocations: 0 / 0.8437 GB, free: 8.723 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 1.161e-05/0.006899, allocations: 12.84 kB / 0.8437 GB, free: 8.707 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5e-08/0.006899, allocations: 0 / 0.8437 GB, free: 8.707 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001713/0.00707, allocations: 35.88 kB / 0.8437 GB, free: 8.672 MB / 0.8073 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.0001706/0.007241, allocations: 124.3 kB / 0.8439 GB, free: 8.543 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 8.7e-05/0.007328, allocations: 48.39 kB / 0.8439 GB, free: 8.496 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 3.026e-06/0.007331, allocations: 0 / 0.8439 GB, free: 8.496 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 2.357e-05/0.007354, allocations: 28.73 kB / 0.8439 GB, free: 8.465 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001156/0.00747, allocations: 11.98 kB / 0.8439 GB, free: 8.453 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000495/0.007965, allocations: 226.3 kB / 0.8442 GB, free: 8.207 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.962e-05/0.008005, allocations: 59.36 kB / 0.8442 GB, free: 8.129 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 3.578e-05/0.00804, allocations: 16.02 kB / 0.8442 GB, free: 8.113 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.396e-05/0.008104, allocations: 59.38 kB / 0.8443 GB, free: 8.055 MB / 0.8073 GB Notification: Performance of SimCode: time 7.21e-07/0.008105, allocations: 0 / 0.8443 GB, free: 8.055 MB / 0.8073 GB Notification: Performance of Templates: time 0.002814/0.01092, allocations: 1.07 MB / 0.8453 GB, free: 7.023 MB / 0.8073 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile [Timeout 300] (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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.207263386808336]