Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.001437/0.001437, allocations: 105 kB / 16.45 MB, free: 6.453 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.001582/0.001582, allocations: 213.7 kB / 19.43 MB, free: 3.625 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.668/1.668, allocations: 230.6 MB / 252.8 MB, free: 8.961 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.364/3.364, allocations: 0.49 GB / 0.7915 GB, free: 33.39 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-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_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_12_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_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2") [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.002078/0.002078, allocations: 71.34 kB / 1.149 GB, free: 26.09 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4085/0.4106, allocations: 176.1 MB / 1.321 GB, free: 2.852 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2): time 0.002585/0.4132, allocations: 1.308 MB / 1.323 GB, free: 1.535 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001107/0.4143, allocations: 0.6153 MB / 1.323 GB, free: 0.918 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.69e-05/0.4144, allocations: 4 kB / 1.323 GB, free: 0.9141 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 1.771e-05/0.4144, allocations: 3.938 kB / 1.323 GB, free: 0.9102 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 3.978e-05/0.4144, allocations: 7.922 kB / 1.323 GB, free: 0.9023 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005602/0.415, allocations: 150.2 kB / 1.323 GB, free: 0.7578 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 8.974e-05/0.4151, allocations: 31.86 kB / 1.323 GB, free: 0.7266 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 4.146e-05/0.4151, allocations: 4 kB / 1.323 GB, free: 0.7227 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 2.657e-05/0.4151, allocations: 15.98 kB / 1.323 GB, free: 0.707 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 7.04e-05/0.4152, allocations: 19.91 kB / 1.323 GB, free: 0.6875 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 1.188e-05/0.4152, allocations: 0 / 1.323 GB, free: 0.6875 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005331/0.4157, allocations: 339.3 kB / 1.324 GB, free: 364 kB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 1.423e-05/0.4158, allocations: 3.984 kB / 1.324 GB, free: 360 kB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 3.174e-05/0.4158, allocations: 19.92 kB / 1.324 GB, free: 340 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0002821/0.4161, allocations: 143.6 kB / 1.324 GB, free: 196 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.4161, allocations: 3.938 kB / 1.324 GB, free: 192 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.803e-06/0.4161, allocations: 0 / 1.324 GB, free: 192 kB / 1.014 GB Notification: Performance of Transformations before backend: time 1.086e-05/0.4161, allocations: 0 / 1.324 GB, free: 192 kB / 1.014 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.0005679/0.4167, allocations: 384.5 kB / 1.324 GB, free: 15.76 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/0.4167, allocations: 8.031 kB / 1.324 GB, free: 15.75 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.818e-05/0.4167, allocations: 4.938 kB / 1.324 GB, free: 15.75 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001508/0.4169, allocations: 160.4 kB / 1.324 GB, free: 15.55 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.653e-05/0.4169, allocations: 4.375 kB / 1.324 GB, free: 15.55 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.882e-05/0.4169, allocations: 4.375 kB / 1.324 GB, free: 15.55 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001466/0.4171, allocations: 54.22 kB / 1.324 GB, free: 15.49 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.86e-05/0.4171, allocations: 4.141 kB / 1.324 GB, free: 15.48 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.791e-05/0.4171, allocations: 11.94 kB / 1.324 GB, free: 15.47 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.4171, allocations: 4 kB / 1.324 GB, free: 15.47 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.749e-05/0.4172, allocations: 23.92 kB / 1.324 GB, free: 15.45 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002157/0.4174, allocations: 161.6 kB / 1.325 GB, free: 15.24 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001242/0.4175, allocations: 54.55 kB / 1.325 GB, free: 15.18 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.904e-05/0.4176, allocations: 28.84 kB / 1.325 GB, free: 15.14 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.515e-05/0.4176, allocations: 4 kB / 1.325 GB, free: 15.14 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.811e-05/0.4176, allocations: 42.56 kB / 1.325 GB, free: 15.09 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.112e-06/0.4176, allocations: 0 / 1.325 GB, free: 15.09 MB / 1.029 GB Notification: Performance of matching and sorting (n=11): time 0.001326/0.419, allocations: 0.584 MB / 1.325 GB, free: 14.41 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.659e-05/0.419, allocations: 55.34 kB / 1.325 GB, free: 14.35 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001306/0.4191, allocations: 105.8 kB / 1.325 GB, free: 14.23 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 1.881e-05/0.4192, allocations: 25.7 kB / 1.325 GB, free: 14.2 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 4.609e-05/0.4192, allocations: 88.14 kB / 1.326 GB, free: 14.11 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.000139/0.4194, allocations: 43.58 kB / 1.326 GB, free: 14.07 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.616e-05/0.4194, allocations: 25.72 kB / 1.326 GB, free: 14.04 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001574/0.4196, allocations: 314.8 kB / 1.326 GB, free: 13.72 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.531e-05/0.4196, allocations: 20 kB / 1.326 GB, free: 13.7 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.288e-05/0.4196, allocations: 19.98 kB / 1.326 GB, free: 13.68 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001028/0.4197, allocations: 60.98 kB / 1.326 GB, free: 13.62 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.01e-07/0.4197, allocations: 0 / 1.326 GB, free: 13.62 MB / 1.029 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001629/0.4199, allocations: 113.1 kB / 1.326 GB, free: 13.51 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.4199, allocations: 6.656 kB / 1.326 GB, free: 13.5 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.548e-06/0.4199, allocations: 0 / 1.326 GB, free: 13.5 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.683e-05/0.4199, allocations: 4 kB / 1.326 GB, free: 13.5 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000109/0.4201, allocations: 19.98 kB / 1.326 GB, free: 13.48 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.4201, allocations: 0 / 1.326 GB, free: 13.48 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.335e-05/0.4201, allocations: 0 / 1.326 GB, free: 13.48 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.893e-06/0.4201, allocations: 4 kB / 1.326 GB, free: 13.48 MB / 1.029 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 9.243e-05/0.4202, allocations: 117.8 kB / 1.326 GB, free: 13.35 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.895e-05/0.4202, allocations: 11.88 kB / 1.326 GB, free: 13.34 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002122/0.4204, allocations: 105.6 kB / 1.326 GB, free: 13.22 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.4204, allocations: 0 / 1.326 GB, free: 13.22 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/0.4204, allocations: 0 / 1.326 GB, free: 13.22 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.731e-06/0.4204, allocations: 4 kB / 1.326 GB, free: 13.22 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004702/0.4209, allocations: 358.3 kB / 1.327 GB, free: 12.81 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.4209, allocations: 0 / 1.327 GB, free: 12.81 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000111/0.421, allocations: 24 kB / 1.327 GB, free: 12.79 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.421, allocations: 96 / 1.327 GB, free: 12.79 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.337e-05/0.421, allocations: 11.92 kB / 1.327 GB, free: 12.78 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.273e-06/0.421, allocations: 0 / 1.327 GB, free: 12.78 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.421, allocations: 0 / 1.327 GB, free: 12.78 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002983/0.4213, allocations: 215.4 kB / 1.327 GB, free: 12.55 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 6.012e-05/0.4214, allocations: 81.06 kB / 1.327 GB, free: 12.45 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.793e-05/0.4214, allocations: 11.97 kB / 1.327 GB, free: 12.44 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.273e-05/0.4215, allocations: 8.047 kB / 1.327 GB, free: 12.43 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.316e-05/0.4215, allocations: 8 kB / 1.327 GB, free: 12.43 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.037e-06/0.4215, allocations: 4 kB / 1.327 GB, free: 12.42 MB / 1.029 GB Notification: Performance of sorting global known variables: time 4.691e-05/0.4216, allocations: 79.27 kB / 1.327 GB, free: 12.34 MB / 1.029 GB Notification: Performance of sort global known variables: time 6e-08/0.4216, allocations: 0 / 1.327 GB, free: 12.34 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.000278/0.4219, allocations: 35.88 kB / 1.327 GB, free: 12.31 MB / 1.029 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.0002565/0.4221, allocations: 131.1 kB / 1.327 GB, free: 12.17 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0001696/0.4223, allocations: 59.94 kB / 1.327 GB, free: 12.11 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.245e-06/0.4223, allocations: 4 kB / 1.327 GB, free: 12.11 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 5.723e-05/0.4223, allocations: 32.42 kB / 1.327 GB, free: 12.08 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002369/0.4226, allocations: 10.23 kB / 1.327 GB, free: 12.07 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006395/0.4232, allocations: 292.8 kB / 1.328 GB, free: 11.76 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004923/0.4237, allocations: 0.6923 MB / 1.328 GB, free: 11.04 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 4.802e-05/0.4238, allocations: 11.98 kB / 1.328 GB, free: 11.03 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.033e-05/0.4238, allocations: 15.44 kB / 1.328 GB, free: 11.01 MB / 1.029 GB Notification: Performance of SimCode: time 4.61e-07/0.4238, allocations: 0 / 1.328 GB, free: 11.01 MB / 1.029 GB Notification: Performance of Templates: time 0.004038/0.4278, allocations: 0.9573 MB / 1.329 GB, free: 10.09 MB / 1.029 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; mkfifo Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe >> ../files/Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.sim & ./Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2 -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2.pipe 2>&1) [Timeout 400] diffSimulationResults("Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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: 9.527668561786413]