Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.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.001696/0.001696, allocations: 78.64 kB / 19.76 MB, free: 1.875 MB / 14.72 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.002164/0.002164, allocations: 157.9 kB / 23.01 MB, free: 4.598 MB / 14.72 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 1.432/1.432, allocations: 177.2 MB / 203.4 MB, free: 8.941 MB / 190.1 MB " [Timeout remaining time 178] 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.842/2.842, allocations: 394.2 MB / 0.6386 GB, free: 11.95 MB / 0.6075 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.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_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|dp|dp_comp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|dp|dp_comp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00235/0.00235, allocations: 71.88 kB / 1.009 GB, free: 14.52 MB / 0.9669 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9203/0.9227, allocations: 181.8 MB / 1.187 GB, free: 16.21 MB / 1.076 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002125/0.9248, allocations: 1.295 MB / 1.188 GB, free: 15.32 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.0009197/0.9257, allocations: 0.5415 MB / 1.188 GB, free: 14.97 MB / 1.076 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.995e-05/0.9258, allocations: 0 / 1.188 GB, free: 14.97 MB / 1.076 GB Notification: Performance of NFTyping.typeComponents: time 1.727e-05/0.9258, allocations: 8.625 kB / 1.188 GB, free: 14.96 MB / 1.076 GB Notification: Performance of NFTyping.typeBindings: time 3.637e-05/0.9258, allocations: 2.078 kB / 1.188 GB, free: 14.96 MB / 1.076 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005144/0.9263, allocations: 141 kB / 1.189 GB, free: 14.9 MB / 1.076 GB Notification: Performance of NFFlatten.flatten: time 6.743e-05/0.9264, allocations: 24.03 kB / 1.189 GB, free: 14.89 MB / 1.076 GB Notification: Performance of NFFlatten.resolveConnections: time 4.542e-05/0.9264, allocations: 6.297 kB / 1.189 GB, free: 14.88 MB / 1.076 GB Notification: Performance of NFEvalConstants.evaluate: time 4.061e-05/0.9265, allocations: 9.547 kB / 1.189 GB, free: 14.88 MB / 1.076 GB Notification: Performance of NFSimplifyModel.simplify: time 5.048e-05/0.9265, allocations: 4.812 kB / 1.189 GB, free: 14.88 MB / 1.076 GB Notification: Performance of NFPackage.collectConstants: time 1.116e-05/0.9265, allocations: 1.062 kB / 1.189 GB, free: 14.88 MB / 1.076 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004646/0.927, allocations: 273.3 kB / 1.189 GB, free: 14.81 MB / 1.076 GB Notification: Performance of NFScalarize.scalarize: time 1.759e-05/0.927, allocations: 4.781 kB / 1.189 GB, free: 14.81 MB / 1.076 GB Notification: Performance of NFVerifyModel.verify: time 2.19e-05/0.927, allocations: 5.359 kB / 1.189 GB, free: 14.81 MB / 1.076 GB Notification: Performance of NFConvertDAE.convert: time 0.0002757/0.9273, allocations: 147.8 kB / 1.189 GB, free: 14.76 MB / 1.076 GB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.9273, allocations: 4 kB / 1.189 GB, free: 14.76 MB / 1.076 GB Notification: Performance of FrontEnd: time 2.004e-06/0.9273, allocations: 0 / 1.189 GB, free: 14.76 MB / 1.076 GB Notification: Performance of Transformations before backend: time 5.731e-06/0.9273, allocations: 0 / 1.189 GB, free: 14.76 MB / 1.076 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.0003469/0.9277, allocations: 285.4 kB / 1.189 GB, free: 14.47 MB / 1.076 GB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/0.9277, allocations: 9.562 kB / 1.189 GB, free: 14.47 MB / 1.076 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.312e-05/0.9278, allocations: 6.906 kB / 1.189 GB, free: 14.46 MB / 1.076 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.74e-05/0.9278, allocations: 109.6 kB / 1.189 GB, free: 14.34 MB / 1.076 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.169e-05/0.9278, allocations: 1.656 kB / 1.189 GB, free: 14.34 MB / 1.076 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.877e-05/0.9278, allocations: 3.578 kB / 1.189 GB, free: 14.34 MB / 1.076 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001018/0.9279, allocations: 65.5 kB / 1.189 GB, free: 14.27 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.928, allocations: 4.188 kB / 1.189 GB, free: 14.27 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.428e-06/0.928, allocations: 4.547 kB / 1.189 GB, free: 14.26 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.095e-06/0.928, allocations: 5.344 kB / 1.189 GB, free: 14.26 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.188e-05/0.928, allocations: 15.66 kB / 1.189 GB, free: 14.25 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001042/0.9281, allocations: 104.2 kB / 1.19 GB, free: 14.12 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001772/0.9283, allocations: 39.25 kB / 1.19 GB, free: 14.1 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.084e-05/0.9283, allocations: 17.41 kB / 1.19 GB, free: 14.09 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 2.023e-05/0.9284, allocations: 1.281 kB / 1.19 GB, free: 14.09 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.34e-05/0.9284, allocations: 36.56 kB / 1.19 GB, free: 14.04 MB / 1.076 GB Notification: Performance of pre-optimization done (n=4): time 1.032e-06/0.9284, allocations: 1.344 kB / 1.19 GB, free: 14.04 MB / 1.076 GB Notification: Performance of matching and sorting (n=6): time 0.0005264/0.9289, allocations: 239.8 kB / 1.19 GB, free: 13.84 MB / 1.076 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.701e-05/0.9289, allocations: 53.61 kB / 1.19 GB, free: 13.78 MB / 1.076 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.755e-05/0.9289, allocations: 99.27 kB / 1.19 GB, free: 13.68 MB / 1.076 GB Notification: Performance of collectPreVariables (initialization): time 7.875e-06/0.929, allocations: 26.83 kB / 1.19 GB, free: 13.65 MB / 1.076 GB Notification: Performance of collectInitialEqns (initialization): time 1.375e-05/0.929, allocations: 80.14 kB / 1.19 GB, free: 13.57 MB / 1.076 GB Notification: Performance of collectInitialBindings (initialization): time 2.319e-05/0.929, allocations: 20.58 kB / 1.19 GB, free: 13.55 MB / 1.076 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.012e-05/0.929, allocations: 24.45 kB / 1.19 GB, free: 13.53 MB / 1.076 GB Notification: Performance of setup shared object (initialization): time 3.718e-05/0.9291, allocations: 313.4 kB / 1.191 GB, free: 13.21 MB / 1.076 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.544e-05/0.9291, allocations: 11.78 kB / 1.191 GB, free: 13.21 MB / 1.076 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.244e-05/0.9291, allocations: 16.7 kB / 1.191 GB, free: 13.2 MB / 1.076 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.001e-05/0.9292, allocations: 33.34 kB / 1.191 GB, free: 13.18 MB / 1.076 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.082e-06/0.9292, allocations: 0.7031 kB / 1.191 GB, free: 13.18 MB / 1.076 GB Notification: Performance of matching and sorting (n=7) (initialization): time 8.655e-05/0.9292, allocations: 76.08 kB / 1.191 GB, free: 13.13 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 1.165e-05/0.9293, allocations: 5.781 kB / 1.191 GB, free: 13.13 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.9293, allocations: 4 kB / 1.191 GB, free: 13.12 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.435e-05/0.9293, allocations: 6.156 kB / 1.191 GB, free: 13.12 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.206e-05/0.9293, allocations: 10.64 kB / 1.191 GB, free: 13.12 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.01e-06/0.9293, allocations: 0.8906 kB / 1.191 GB, free: 13.12 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.748e-05/0.9293, allocations: 1.062 kB / 1.191 GB, free: 13.12 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.142e-06/0.9294, allocations: 2.219 kB / 1.191 GB, free: 13.12 MB / 1.076 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 4.177e-05/0.9294, allocations: 116.9 kB / 1.191 GB, free: 13 MB / 1.076 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.128e-05/0.9294, allocations: 2.156 kB / 1.191 GB, free: 13 MB / 1.076 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001233/0.9295, allocations: 76.34 kB / 1.191 GB, free: 12.94 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.444e-06/0.9295, allocations: 5.359 kB / 1.191 GB, free: 12.94 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.9295, allocations: 0 / 1.191 GB, free: 12.94 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.9295, allocations: 1.906 kB / 1.191 GB, free: 12.94 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002167/0.9298, allocations: 257.1 kB / 1.191 GB, free: 12.68 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.9298, allocations: 5.062 kB / 1.191 GB, free: 12.68 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.359e-05/0.9298, allocations: 15.05 kB / 1.191 GB, free: 12.68 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.224e-06/0.9298, allocations: 0.75 kB / 1.191 GB, free: 12.68 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.733e-06/0.9298, allocations: 6.219 kB / 1.191 GB, free: 12.67 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.9298, allocations: 0.6562 kB / 1.191 GB, free: 12.67 MB / 1.076 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.9298, allocations: 1.094 kB / 1.191 GB, free: 12.67 MB / 1.076 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001394/0.93, allocations: 176.6 kB / 1.191 GB, free: 12.52 MB / 1.076 GB Notification: Performance of postOpt removeConstants (simulation): time 2.247e-05/0.93, allocations: 17.17 kB / 1.191 GB, free: 12.5 MB / 1.076 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.327e-05/0.93, allocations: 2.797 kB / 1.191 GB, free: 12.5 MB / 1.076 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.501e-05/0.9301, allocations: 1.969 kB / 1.191 GB, free: 12.5 MB / 1.076 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.464e-05/0.9301, allocations: 4 kB / 1.191 GB, free: 12.5 MB / 1.076 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.362e-06/0.9301, allocations: 2.469 kB / 1.191 GB, free: 12.5 MB / 1.076 GB Notification: Performance of sorting global known variables: time 1.839e-05/0.9301, allocations: 82.58 kB / 1.191 GB, free: 12.43 MB / 1.076 GB Notification: Performance of sort global known variables: time 6e-08/0.9301, allocations: 5.312 kB / 1.191 GB, free: 12.42 MB / 1.076 GB Notification: Performance of remove unused functions: time 0.0002546/0.9304, allocations: 22.62 kB / 1.191 GB, free: 12.41 MB / 1.076 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (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 (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.0001418/0.9305, allocations: 125.8 kB / 1.192 GB, free: 12.31 MB / 1.076 GB Notification: Performance of simCode: created initialization part: time 0.0001027/0.9306, allocations: 35.11 kB / 1.192 GB, free: 12.3 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.9306, allocations: 1.219 kB / 1.192 GB, free: 12.3 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 2.775e-05/0.9307, allocations: 16.73 kB / 1.192 GB, free: 12.3 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002291/0.9309, allocations: 12.89 kB / 1.192 GB, free: 12.29 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003362/0.9312, allocations: 197.8 kB / 1.192 GB, free: 12.11 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.847e-05/0.9313, allocations: 67.92 kB / 1.192 GB, free: 12.04 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 2.799e-05/0.9313, allocations: 4.656 kB / 1.192 GB, free: 12.04 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.831e-05/0.9313, allocations: 11.59 kB / 1.192 GB, free: 12.03 MB / 1.076 GB Notification: Performance of SimCode: time 3.41e-07/0.9313, allocations: 5.531 kB / 1.192 GB, free: 12.03 MB / 1.076 GB Notification: Performance of Templates: time 0.003247/0.9346, allocations: 0.6356 MB / 1.193 GB, free: 11.96 MB / 1.076 GB " [Timeout remaining time 299] make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck -abortSlowSimulation -alarm=800 -s ida -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.97520423901733]