Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_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.002651/0.002651, allocations: 79.7 kB / 20.23 MB, free: 4.191 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.003202/0.003202, allocations: 157.3 kB / 23.55 MB, free: 0.8789 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 1.605/1.605, allocations: 177.1 MB / 203.9 MB, free: 5.605 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 3.058/3.058, allocations: 377.8 MB / 0.6232 GB, free: 8.559 MB / 0.5886 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/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_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|dp|dp_comp|der.dp.|der.dp_comp.",fileNamePrefix="Buildings_12_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=2500,variableFilter="time|dp|dp_comp|der.dp.|der.dp_comp.",fileNamePrefix="Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.653e-06/1.653e-06, allocations: 0 / 0.8108 GB, free: 2.109 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 3.037e-05/3.202e-05, allocations: 6.25 kB / 0.8108 GB, free: 2.102 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.003009/0.003041, allocations: 1.495 MB / 0.8123 GB, free: 0.6211 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001313/0.004354, allocations: 0.5997 MB / 0.8129 GB, free: 24 kB / 0.7605 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.391e-05/0.004408, allocations: 0 / 0.8129 GB, free: 24 kB / 0.7605 GB Notification: Performance of NFTyping.typeComponents: time 2.455e-05/0.004432, allocations: 0 / 0.8129 GB, free: 24 kB / 0.7605 GB Notification: Performance of NFTyping.typeBindings: time 6.417e-05/0.004497, allocations: 11.86 kB / 0.8129 GB, free: 12 kB / 0.7605 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007027/0.005199, allocations: 168.8 kB / 0.813 GB, free: 15.85 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 9.352e-05/0.005293, allocations: 49.16 kB / 0.8131 GB, free: 15.8 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 3.707e-05/0.00533, allocations: 7.984 kB / 0.8131 GB, free: 15.79 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 9.905e-05/0.005429, allocations: 31.91 kB / 0.8131 GB, free: 15.76 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 4.989e-05/0.005479, allocations: 25.48 kB / 0.8131 GB, free: 15.74 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.959e-05/0.005498, allocations: 4 kB / 0.8131 GB, free: 15.73 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004809/0.005979, allocations: 271.4 kB / 0.8134 GB, free: 15.47 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 2.714e-05/0.006006, allocations: 15.97 kB / 0.8134 GB, free: 15.45 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 3.601e-05/0.006042, allocations: 16.75 kB / 0.8134 GB, free: 15.44 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0003643/0.006407, allocations: 191.4 kB / 0.8136 GB, free: 15.25 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 3.126e-06/0.00641, allocations: 0.9062 kB / 0.8136 GB, free: 15.25 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.062e-06/0.006411, allocations: 0 / 0.8136 GB, free: 15.25 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 3.997e-06/0.006415, allocations: 0 / 0.8136 GB, free: 15.25 MB / 0.7761 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.0006534/0.007068, allocations: 412.5 kB / 0.814 GB, free: 14.81 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.007107, allocations: 12.75 kB / 0.814 GB, free: 14.8 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.412e-05/0.007161, allocations: 14.11 kB / 0.814 GB, free: 14.79 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001369/0.007298, allocations: 120.5 kB / 0.8142 GB, free: 14.64 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.596e-05/0.007324, allocations: 8.312 kB / 0.8142 GB, free: 14.63 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.499e-05/0.007349, allocations: 8.375 kB / 0.8142 GB, free: 14.62 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002662/0.007615, allocations: 126.2 kB / 0.8143 GB, free: 14.48 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.262e-05/0.007627, allocations: 1.312 kB / 0.8143 GB, free: 14.48 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.129e-05/0.007639, allocations: 384 / 0.8143 GB, free: 14.48 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.007646, allocations: 4.375 kB / 0.8143 GB, free: 14.48 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002095/0.007855, allocations: 52.8 kB / 0.8143 GB, free: 14.43 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005951/0.00845, allocations: 308.2 kB / 0.8146 GB, free: 14.09 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002675/0.008718, allocations: 76.16 kB / 0.8147 GB, free: 14.01 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001038/0.008822, allocations: 31.61 kB / 0.8147 GB, free: 13.97 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 2.15e-05/0.008843, allocations: 5.812 kB / 0.8147 GB, free: 13.97 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.866e-05/0.008882, allocations: 37.33 kB / 0.8148 GB, free: 13.92 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=7): time 1.132e-06/0.008883, allocations: 0 / 0.8148 GB, free: 13.92 MB / 0.7761 GB Notification: Performance of matching and sorting (n=11): time 0.001605/0.01049, allocations: 0.5027 MB / 0.8153 GB, free: 13.36 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.721e-05/0.01054, allocations: 55.41 kB / 0.8153 GB, free: 13.29 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001294/0.01066, allocations: 166.4 kB / 0.8155 GB, free: 13.11 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 2.594e-05/0.01069, allocations: 33.14 kB / 0.8155 GB, free: 13.08 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 8.351e-05/0.01077, allocations: 134.8 kB / 0.8156 GB, free: 12.94 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 4.978e-05/0.01082, allocations: 43.64 kB / 0.8157 GB, free: 12.9 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.607e-05/0.01089, allocations: 39.36 kB / 0.8157 GB, free: 12.85 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0002748/0.01116, allocations: 0.4883 MB / 0.8162 GB, free: 12.35 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001133/0.01128, allocations: 27.98 kB / 0.8162 GB, free: 12.32 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001048/0.01138, allocations: 27.97 kB / 0.8163 GB, free: 12.3 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002169/0.0116, allocations: 72.36 kB / 0.8163 GB, free: 12.22 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.233e-06/0.0116, allocations: 0.5 kB / 0.8163 GB, free: 12.22 MB / 0.7761 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003026/0.0119, allocations: 119.1 kB / 0.8164 GB, free: 12.1 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/0.01192, allocations: 4.531 kB / 0.8164 GB, free: 12.1 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.01192, allocations: 0.5625 kB / 0.8164 GB, free: 12.1 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.337e-05/0.01193, allocations: 0 / 0.8164 GB, free: 12.1 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001453/0.01208, allocations: 25.39 kB / 0.8165 GB, free: 12.07 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.804e-06/0.01209, allocations: 3.984 kB / 0.8165 GB, free: 12.07 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.241e-05/0.01215, allocations: 11.98 kB / 0.8165 GB, free: 12.06 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.14e-05/0.01216, allocations: 4.531 kB / 0.8165 GB, free: 12.05 MB / 0.7761 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 0.0001288/0.01229, allocations: 169.1 kB / 0.8166 GB, free: 11.88 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.63e-05/0.01233, allocations: 7.938 kB / 0.8167 GB, free: 11.87 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003516/0.01268, allocations: 123.7 kB / 0.8168 GB, free: 11.75 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.204e-06/0.01269, allocations: 8 kB / 0.8168 GB, free: 11.74 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.01269, allocations: 0 / 0.8168 GB, free: 11.74 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.01269, allocations: 0 / 0.8168 GB, free: 11.74 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006122/0.0133, allocations: 378.1 kB / 0.8171 GB, free: 11.33 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.573e-06/0.0133, allocations: 0 / 0.8171 GB, free: 11.33 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001456/0.01345, allocations: 28.92 kB / 0.8172 GB, free: 11.3 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.853e-06/0.01345, allocations: 0 / 0.8172 GB, free: 11.3 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.268e-05/0.01346, allocations: 5.344 kB / 0.8172 GB, free: 11.3 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.018e-06/0.01347, allocations: 3.984 kB / 0.8172 GB, free: 11.3 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.01347, allocations: 0 / 0.8172 GB, free: 11.3 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005268/0.014, allocations: 304.8 kB / 0.8175 GB, free: 10.98 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.075e-05/0.01401, allocations: 3.984 kB / 0.8175 GB, free: 10.98 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.895e-05/0.01403, allocations: 5.531 kB / 0.8175 GB, free: 10.97 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001008/0.01413, allocations: 4 kB / 0.8175 GB, free: 10.97 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.73e-05/0.01415, allocations: 7.984 kB / 0.8175 GB, free: 10.96 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.125e-05/0.01417, allocations: 4 kB / 0.8175 GB, free: 10.96 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 7.794e-05/0.01424, allocations: 130.8 kB / 0.8176 GB, free: 10.83 MB / 0.7761 GB Notification: Performance of sort global known variables: time 8e-08/0.01424, allocations: 0 / 0.8176 GB, free: 10.83 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002803/0.01452, allocations: 39.8 kB / 0.8177 GB, free: 10.79 MB / 0.7761 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.0002321/0.01476, allocations: 135.1 kB / 0.8178 GB, free: 10.65 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0003248/0.01508, allocations: 90.95 kB / 0.8179 GB, free: 10.56 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.01508, allocations: 0 / 0.8179 GB, free: 10.56 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 0.0001371/0.01522, allocations: 51.59 kB / 0.8179 GB, free: 10.5 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002464/0.01547, allocations: 13 kB / 0.8179 GB, free: 10.49 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006291/0.0161, allocations: 274.5 kB / 0.8182 GB, free: 10.21 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.232e-05/0.01619, allocations: 83.12 kB / 0.8183 GB, free: 10.11 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 5.785e-05/0.01625, allocations: 12.67 kB / 0.8183 GB, free: 10.09 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.02e-05/0.01629, allocations: 24.48 kB / 0.8183 GB, free: 10.07 MB / 0.7761 GB Notification: Performance of SimCode: time 5.01e-07/0.01629, allocations: 0 / 0.8183 GB, free: 10.07 MB / 0.7761 GB Notification: Performance of Templates: time 0.004628/0.02091, allocations: 1.147 MB / 0.8194 GB, free: 8.98 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & ./Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.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.17247252096422]