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.001388/0.001388, allocations: 105.1 kB / 19.71 MB, free: 2.141 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.001472/0.001472, allocations: 212.5 kB / 23 MB, free: 4.961 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.445/1.445, allocations: 230.6 MB / 256.8 MB, free: 7.82 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.122/3.122, allocations: 0.49 GB / 0.7959 GB, free: 35.44 MB / 0.6231 GB " [Timeout remaining time 177] 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_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: 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.002054/0.002054, allocations: 68.45 kB / 1.155 GB, free: 25.18 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3036/0.3057, allocations: 176.1 MB / 1.327 GB, free: 0.957 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002902/0.3086, allocations: 1.484 MB / 1.329 GB, free: 15.47 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001128/0.3097, allocations: 0.5605 MB / 1.329 GB, free: 14.91 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.956e-05/0.3097, allocations: 0 / 1.329 GB, free: 14.91 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 2.712e-05/0.3098, allocations: 3.938 kB / 1.329 GB, free: 14.9 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 4.916e-05/0.3098, allocations: 7.922 kB / 1.329 GB, free: 14.89 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006701/0.3105, allocations: 163.4 kB / 1.329 GB, free: 14.73 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 9.779e-05/0.3106, allocations: 55.77 kB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 4.587e-05/0.3106, allocations: 4 kB / 1.329 GB, free: 14.68 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 5.851e-05/0.3107, allocations: 23.92 kB / 1.329 GB, free: 14.65 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 5.506e-05/0.3107, allocations: 23.91 kB / 1.329 GB, free: 14.63 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 1.656e-05/0.3107, allocations: 7.984 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004709/0.3112, allocations: 279.5 kB / 1.33 GB, free: 14.35 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 2.268e-05/0.3112, allocations: 19.91 kB / 1.33 GB, free: 14.33 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 3.439e-05/0.3113, allocations: 19.94 kB / 1.33 GB, free: 14.31 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003125/0.3116, allocations: 171.4 kB / 1.33 GB, free: 14.14 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.3116, allocations: 3.984 kB / 1.33 GB, free: 14.14 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.232e-06/0.3116, allocations: 0 / 1.33 GB, free: 14.14 MB / 1.029 GB Notification: Performance of Transformations before backend: time 8.706e-06/0.3116, allocations: 0 / 1.33 GB, free: 14.14 MB / 1.029 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.0006049/0.3122, allocations: 321.8 kB / 1.33 GB, free: 13.79 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.87e-05/0.3122, allocations: 12.03 kB / 1.33 GB, free: 13.78 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.85e-05/0.3123, allocations: 12.77 kB / 1.33 GB, free: 13.77 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001131/0.3124, allocations: 114.5 kB / 1.33 GB, free: 13.63 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.782e-05/0.3124, allocations: 8.375 kB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.786e-05/0.3125, allocations: 8.328 kB / 1.33 GB, free: 13.61 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003003/0.3128, allocations: 134.9 kB / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.093e-05/0.3128, allocations: 192 / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.695e-05/0.3128, allocations: 11.94 kB / 1.33 GB, free: 13.45 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.3128, allocations: 0 / 1.33 GB, free: 13.45 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002507/0.313, allocations: 47.95 kB / 1.33 GB, free: 13.41 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005546/0.3136, allocations: 260.3 kB / 1.331 GB, free: 13.12 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003169/0.3139, allocations: 86.5 kB / 1.331 GB, free: 13.03 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001244/0.314, allocations: 28.84 kB / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.969e-05/0.3141, allocations: 0 / 1.331 GB, free: 13 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.196e-05/0.3141, allocations: 34.56 kB / 1.331 GB, free: 12.95 MB / 1.029 GB Notification: Performance of pre-optimization done (n=7): time 1.122e-06/0.3141, allocations: 0 / 1.331 GB, free: 12.95 MB / 1.029 GB Notification: Performance of matching and sorting (n=11): time 0.001728/0.3158, allocations: 0.5032 MB / 1.331 GB, free: 12.39 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.592e-05/0.3158, allocations: 55.34 kB / 1.331 GB, free: 12.33 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.925e-05/0.3159, allocations: 101.8 kB / 1.332 GB, free: 12.22 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.854e-05/0.316, allocations: 29.7 kB / 1.332 GB, free: 12.18 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 5.568e-05/0.316, allocations: 92.09 kB / 1.332 GB, free: 12.09 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 4.803e-05/0.3161, allocations: 35.69 kB / 1.332 GB, free: 12.05 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.831e-05/0.3161, allocations: 33.83 kB / 1.332 GB, free: 12.02 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.000147/0.3163, allocations: 318.8 kB / 1.332 GB, free: 11.7 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000153/0.3164, allocations: 39.97 kB / 1.332 GB, free: 11.66 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001372/0.3166, allocations: 27.98 kB / 1.332 GB, free: 11.63 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002761/0.3168, allocations: 69.7 kB / 1.332 GB, free: 11.56 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.72e-07/0.3168, allocations: 0 / 1.332 GB, free: 11.56 MB / 1.029 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003377/0.3172, allocations: 124.7 kB / 1.332 GB, free: 11.43 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.398e-05/0.3172, allocations: 8 kB / 1.332 GB, free: 11.43 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.3172, allocations: 4 kB / 1.332 GB, free: 11.42 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.302e-05/0.3172, allocations: 0 / 1.332 GB, free: 11.42 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001646/0.3174, allocations: 27.98 kB / 1.332 GB, free: 11.39 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.85e-06/0.3174, allocations: 320 / 1.332 GB, free: 11.39 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.525e-05/0.3174, allocations: 4 kB / 1.332 GB, free: 11.39 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.016e-05/0.3175, allocations: 11.92 kB / 1.332 GB, free: 11.38 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.648e-05/0.3176, allocations: 118.3 kB / 1.332 GB, free: 11.25 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.668e-05/0.3176, allocations: 7.953 kB / 1.332 GB, free: 11.25 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004076/0.318, allocations: 133.6 kB / 1.333 GB, free: 11.1 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.521e-06/0.318, allocations: 3.984 kB / 1.333 GB, free: 11.1 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.318, allocations: 96 / 1.333 GB, free: 11.1 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 1.423e-05/0.318, allocations: 11.89 kB / 1.333 GB, free: 11.09 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.129e-05/0.3181, allocations: 7.938 kB / 1.333 GB, free: 11.08 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001251/0.3182, allocations: 4 kB / 1.333 GB, free: 11.07 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.071e-05/0.3182, allocations: 7.984 kB / 1.333 GB, free: 11.07 MB / 1.029 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0004707/0.3187, allocations: 200.8 kB / 1.333 GB, free: 10.86 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0005922/0.3193, allocations: 334.6 kB / 1.333 GB, free: 10.52 MB / 1.029 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001483/0.3194, allocations: 43.94 kB / 1.333 GB, free: 10.48 MB / 1.029 GB Notification: Performance of sorting global known variables: time 5.103e-05/0.3195, allocations: 79.47 kB / 1.333 GB, free: 10.4 MB / 1.029 GB Notification: Performance of Backend: time 4e-07/0.3195, allocations: 0 / 1.333 GB, free: 10.4 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0006692/0.3201, allocations: 188 kB / 1.333 GB, free: 10.21 MB / 1.029 GB Notification: Performance of SimCode: time 0.0009067/0.321, allocations: 0.7251 MB / 1.334 GB, free: 9.438 MB / 1.029 GB Notification: Performance of Templates: time 0.005211/0.3262, allocations: 1.929 MB / 1.336 GB, free: 7.566 MB / 1.029 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=400 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) [Timeout 400] 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/jenkins1/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.464995465998072]