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.0009448/0.0009448, allocations: 81.05 kB / 9.981 MB, free: 0.707 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001275/0.00222, allocations: 440 kB / 10.41 MB, free: 284 kB / 10.45 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.0007266/0.0007266, allocations: 157.1 kB / 11.33 MB, free: 2.844 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009778/0.001704, allocations: 475.6 kB / 11.79 MB, free: 2.375 MB / 13.93 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.034/1.034, allocations: 177.2 MB / 189.7 MB, free: 5.242 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.133/1.167, allocations: 53.66 MB / 243.4 MB, free: 15.5 MB / 250.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-master/package.mo): time 2.606/2.606, allocations: 447.1 MB / 0.675 GB, free: 5.906 MB / 0.6511 GB Notification: Performance of NFInstanceAPI.mkTop(): time 0.2823/2.889, allocations: 146 MB / 0.8176 GB, free: 3.828 MB / 0.7917 GB " [Timeout remaining time 177] Using package Buildings with version 15.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 15.0.0-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.703e-06/1.703e-06, allocations: 0 / 0.819 GB, free: 2.441 MB / 0.7917 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.281e-05/1.452e-05, allocations: 2.312 kB / 0.819 GB, free: 2.438 MB / 0.7917 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.001721/0.001735, allocations: 1.431 MB / 0.8204 GB, free: 0.9883 MB / 0.7917 GB Notification: Performance of NFInst.instExpressions: time 0.0007165/0.002452, allocations: 0.6147 MB / 0.821 GB, free: 380 kB / 0.7917 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.179e-05/0.002473, allocations: 0 / 0.821 GB, free: 380 kB / 0.7917 GB Notification: Performance of NFTyping.typeComponents: time 9.148e-06/0.002483, allocations: 0 / 0.821 GB, free: 380 kB / 0.7917 GB Notification: Performance of NFTyping.typeBindings: time 2.565e-05/0.002508, allocations: 11.92 kB / 0.821 GB, free: 368 kB / 0.7917 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003465/0.002855, allocations: 155.2 kB / 0.8211 GB, free: 212 kB / 0.7917 GB Notification: Performance of NFFlatten.flatten: time 6.768e-05/0.002922, allocations: 31.86 kB / 0.8212 GB, free: 180 kB / 0.7917 GB Notification: Performance of NFFlatten.resolveConnections: time 4.277e-05/0.002965, allocations: 4 kB / 0.8212 GB, free: 176 kB / 0.7917 GB Notification: Performance of NFEvalConstants.evaluate: time 5.868e-05/0.003024, allocations: 19.97 kB / 0.8212 GB, free: 156 kB / 0.7917 GB Notification: Performance of NFSimplifyModel.simplify: time 7.189e-05/0.003096, allocations: 11.92 kB / 0.8212 GB, free: 144 kB / 0.7917 GB Notification: Performance of NFPackage.collectConstants: time 1.283e-05/0.003109, allocations: 4 kB / 0.8212 GB, free: 140 kB / 0.7917 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003286/0.003437, allocations: 247.5 kB / 0.8214 GB, free: 15.89 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 1.691e-05/0.003454, allocations: 11.88 kB / 0.8215 GB, free: 15.88 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 1.845e-05/0.003473, allocations: 8 kB / 0.8215 GB, free: 15.88 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0002158/0.003688, allocations: 135.6 kB / 0.8216 GB, free: 15.74 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 1.281e-05/0.003701, allocations: 0 / 0.8216 GB, free: 15.74 MB / 0.8073 GB Notification: Performance of FrontEnd: time 6.61e-07/0.003702, allocations: 4 kB / 0.8216 GB, free: 15.74 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 1.561e-05/0.003717, allocations: 4 kB / 0.8216 GB, free: 15.73 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.0004058/0.004123, allocations: 288.2 kB / 0.8219 GB, free: 15.43 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.325e-05/0.004157, allocations: 8.031 kB / 0.8219 GB, free: 15.42 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.341e-05/0.00419, allocations: 8.922 kB / 0.8219 GB, free: 15.41 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.51e-05/0.004285, allocations: 113.7 kB / 0.822 GB, free: 15.27 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.075e-05/0.004296, allocations: 384 / 0.822 GB, free: 15.27 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.975e-05/0.004326, allocations: 12.36 kB / 0.822 GB, free: 15.26 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001005/0.004426, allocations: 93.64 kB / 0.8221 GB, free: 15.15 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.075e-05/0.004437, allocations: 8.141 kB / 0.8221 GB, free: 15.14 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.007e-06/0.004446, allocations: 8.375 kB / 0.8221 GB, free: 15.14 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.141e-06/0.004452, allocations: 384 / 0.8221 GB, free: 15.14 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.853e-05/0.00448, allocations: 11.94 kB / 0.8221 GB, free: 15.12 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.933e-05/0.00458, allocations: 65.03 kB / 0.8222 GB, free: 15.05 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 9.062e-05/0.00467, allocations: 54.56 kB / 0.8222 GB, free: 14.98 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.999e-05/0.00469, allocations: 16.86 kB / 0.8223 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.921e-05/0.00471, allocations: 3.984 kB / 0.8223 GB, free: 14.96 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.429e-05/0.004734, allocations: 38.56 kB / 0.8223 GB, free: 14.91 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=7): time 5.41e-07/0.004734, allocations: 0 / 0.8223 GB, free: 14.91 MB / 0.8073 GB Notification: Performance of matching and sorting (n=11): time 0.0007942/0.005529, allocations: 451.7 kB / 0.8227 GB, free: 14.42 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.653e-05/0.005555, allocations: 51.41 kB / 0.8228 GB, free: 14.36 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.372e-05/0.005619, allocations: 106.6 kB / 0.8229 GB, free: 14.24 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.192e-05/0.005631, allocations: 25.83 kB / 0.8229 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.551e-05/0.005656, allocations: 92.12 kB / 0.823 GB, free: 14.11 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 3.63e-05/0.005693, allocations: 39.64 kB / 0.823 GB, free: 14.07 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.171e-05/0.005724, allocations: 25.7 kB / 0.8231 GB, free: 14.04 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 7.439e-05/0.005799, allocations: 322.8 kB / 0.8234 GB, free: 13.72 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.336e-05/0.005812, allocations: 8 kB / 0.8234 GB, free: 13.71 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.078e-05/0.005833, allocations: 14.38 kB / 0.8234 GB, free: 13.7 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.223e-05/0.005875, allocations: 36.83 kB / 0.8234 GB, free: 13.66 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.81e-07/0.005876, allocations: 0 / 0.8234 GB, free: 13.66 MB / 0.8073 GB Notification: Performance of matching and sorting (n=13) (initialization): time 7.128e-05/0.005947, allocations: 73.61 kB / 0.8235 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 1.425e-05/0.005961, allocations: 4 kB / 0.8235 GB, free: 13.58 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.598e-06/0.005966, allocations: 4 kB / 0.8235 GB, free: 13.57 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.352e-05/0.005979, allocations: 0 / 0.8235 GB, free: 13.57 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.076e-05/0.00605, allocations: 23.98 kB / 0.8235 GB, free: 13.55 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.043e-05/0.006061, allocations: 7.938 kB / 0.8235 GB, free: 13.54 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.276e-05/0.006073, allocations: 4 kB / 0.8235 GB, free: 13.54 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.039e-06/0.006078, allocations: 0 / 0.8235 GB, free: 13.54 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 5.342e-05/0.006132, allocations: 117.8 kB / 0.8236 GB, free: 13.41 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.857e-06/0.006141, allocations: 7.984 kB / 0.8236 GB, free: 13.41 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001022/0.006243, allocations: 73.78 kB / 0.8237 GB, free: 13.33 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.006245, allocations: 4 kB / 0.8237 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.202e-06/0.006247, allocations: 4 kB / 0.8237 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.006251, allocations: 3.938 kB / 0.8237 GB, free: 13.32 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002117/0.006463, allocations: 230.7 kB / 0.8239 GB, free: 13.07 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.006464, allocations: 0 / 0.8239 GB, free: 13.07 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.877e-05/0.006533, allocations: 27.98 kB / 0.824 GB, free: 13.04 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 5.881e-06/0.006539, allocations: 3.953 kB / 0.824 GB, free: 13.04 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.313e-06/0.00654, allocations: 0 / 0.824 GB, free: 13.04 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.633e-06/0.006547, allocations: 7.938 kB / 0.824 GB, free: 13.03 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.42e-07/0.006548, allocations: 0 / 0.824 GB, free: 13.03 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.864e-06/0.00655, allocations: 3.984 kB / 0.824 GB, free: 13.02 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001269/0.006676, allocations: 179.4 kB / 0.8242 GB, free: 12.83 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.039e-05/0.006687, allocations: 11.97 kB / 0.8242 GB, free: 12.82 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.914e-05/0.006726, allocations: 8 kB / 0.8242 GB, free: 12.81 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.384e-05/0.00674, allocations: 7.922 kB / 0.8242 GB, free: 12.8 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.26e-06/0.006745, allocations: 4 kB / 0.8242 GB, free: 12.8 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 7.945e-06/0.006753, allocations: 4.859 kB / 0.8242 GB, free: 12.79 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5e-08/0.006753, allocations: 0 / 0.8242 GB, free: 12.79 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001601/0.006913, allocations: 55.8 kB / 0.8243 GB, free: 12.74 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.0001701/0.007083, allocations: 134.3 kB / 0.8244 GB, free: 12.6 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 8.369e-05/0.007167, allocations: 54.31 kB / 0.8244 GB, free: 12.55 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 8.095e-06/0.007175, allocations: 4 kB / 0.8244 GB, free: 12.54 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 3.035e-05/0.007205, allocations: 37.22 kB / 0.8245 GB, free: 12.5 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001123/0.007318, allocations: 12 kB / 0.8245 GB, free: 12.49 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007941/0.008112, allocations: 184.2 kB / 0.8247 GB, free: 12.29 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.99e-05/0.008152, allocations: 67.28 kB / 0.8247 GB, free: 12.2 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 3.245e-05/0.008184, allocations: 11.98 kB / 0.8247 GB, free: 12.19 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.428e-05/0.008238, allocations: 63.36 kB / 0.8248 GB, free: 12.12 MB / 0.8073 GB Notification: Performance of SimCode: time 6.01e-07/0.008239, allocations: 0 / 0.8248 GB, free: 12.12 MB / 0.8073 GB Notification: Performance of Templates: time 0.003072/0.01131, allocations: 1.317 MB / 0.8261 GB, free: 10.86 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 -ignoreHideResult -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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.ref.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.681758816353977]