Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp|der.dp.|der.dp_comp.|err_dp|err_der_dp",fileNamePrefix="Buildings_9_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=5000,variableFilter="time|dp|dp_comp|der.dp.|der.dp_comp.|err_dp|err_der_dp",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001118/0.001118, allocations: 111.3 kB / 15.23 MB, free: 0.6602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001096/0.001096, allocations: 191 kB / 16.13 MB, free: 6.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.343/1.343, allocations: 222.9 MB / 239.8 MB, free: 4.57 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.361/2.361, allocations: 390.2 MB / 0.6642 GB, free: 0.6562 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001235/0.001235, allocations: 55.91 kB / 0.8119 GB, free: 14.89 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5862/0.5874, allocations: 140.4 MB / 0.9489 GB, free: 9.145 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002278/0.5898, allocations: 1.532 MB / 0.9504 GB, free: 7.938 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0009007/0.5907, allocations: 0.6477 MB / 0.9511 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.435e-05/0.5907, allocations: 2.156 kB / 0.9511 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.183e-05/0.5907, allocations: 0 / 0.9511 GB, free: 7.43 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.936e-05/0.5908, allocations: 7.922 kB / 0.9511 GB, free: 7.422 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004371/0.5912, allocations: 141.5 kB / 0.9512 GB, free: 7.328 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.337e-05/0.5913, allocations: 50.83 kB / 0.9512 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.235e-05/0.5914, allocations: 2.75 kB / 0.9512 GB, free: 7.301 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.356e-05/0.5914, allocations: 21.42 kB / 0.9513 GB, free: 7.289 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.436e-05/0.5915, allocations: 32.08 kB / 0.9513 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.391e-05/0.5915, allocations: 2.75 kB / 0.9513 GB, free: 7.266 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004178/0.5919, allocations: 343 kB / 0.9516 GB, free: 7.07 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.796e-05/0.5919, allocations: 14.45 kB / 0.9516 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.555e-05/0.592, allocations: 24.48 kB / 0.9517 GB, free: 7.043 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0002703/0.5923, allocations: 175.3 kB / 0.9518 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.328e-06/0.5923, allocations: 1.156 kB / 0.9518 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.052e-06/0.5923, allocations: 0 / 0.9518 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.118e-06/0.5923, allocations: 0 / 0.9518 GB, free: 6.938 MB / 0.7169 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.0005539/0.5928, allocations: 399 kB / 0.9522 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.389e-05/0.5929, allocations: 10.25 kB / 0.9522 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.767e-05/0.5929, allocations: 7.938 kB / 0.9522 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.926e-05/0.593, allocations: 178.8 kB / 0.9524 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.776e-05/0.5931, allocations: 11.62 kB / 0.9524 GB, free: 6.305 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.362e-05/0.5931, allocations: 8.062 kB / 0.9524 GB, free: 6.301 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002404/0.5934, allocations: 83.47 kB / 0.9525 GB, free: 6.238 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.378e-05/0.5934, allocations: 4.125 kB / 0.9525 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.545e-05/0.5934, allocations: 9.375 kB / 0.9525 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.452e-06/0.5934, allocations: 1.094 kB / 0.9525 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002339/0.5936, allocations: 48.14 kB / 0.9526 GB, free: 6.207 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005302/0.5942, allocations: 321.7 kB / 0.9529 GB, free: 5.883 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002709/0.5945, allocations: 83.81 kB / 0.9529 GB, free: 5.828 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001066/0.5946, allocations: 26.12 kB / 0.953 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.904e-05/0.5946, allocations: 5.375 kB / 0.953 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.988e-05/0.5946, allocations: 39.92 kB / 0.953 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=7): time 1.242e-06/0.5946, allocations: 0 / 0.953 GB, free: 5.762 MB / 0.7169 GB Notification: Performance of matching and sorting (n=11): time 0.001519/0.5962, allocations: 0.6407 MB / 0.9536 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.663e-05/0.5962, allocations: 57.55 kB / 0.9537 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.633e-05/0.5963, allocations: 102.5 kB / 0.9538 GB, free: 5.023 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.312e-05/0.5963, allocations: 27.11 kB / 0.9538 GB, free: 4.992 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 2.54e-05/0.5963, allocations: 93.5 kB / 0.9539 GB, free: 4.898 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.781e-05/0.5963, allocations: 36.34 kB / 0.9539 GB, free: 4.867 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.891e-05/0.5964, allocations: 37.67 kB / 0.954 GB, free: 4.832 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.405e-05/0.5964, allocations: 317 kB / 0.9543 GB, free: 4.516 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001259/0.5966, allocations: 29.7 kB / 0.9543 GB, free: 4.504 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000116/0.5967, allocations: 35.53 kB / 0.9543 GB, free: 4.488 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002226/0.5969, allocations: 67.7 kB / 0.9544 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.91e-07/0.5969, allocations: 0 / 0.9544 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002875/0.5972, allocations: 119.9 kB / 0.9545 GB, free: 4.387 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.297e-05/0.5972, allocations: 9.188 kB / 0.9545 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.088e-06/0.5973, allocations: 0 / 0.9545 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.131e-05/0.5973, allocations: 0.9688 kB / 0.9545 GB, free: 4.383 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000143/0.5974, allocations: 32.58 kB / 0.9546 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.5974, allocations: 1.438 kB / 0.9546 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.001e-05/0.5975, allocations: 10.77 kB / 0.9546 GB, free: 4.363 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.668e-06/0.5975, allocations: 2.875 kB / 0.9546 GB, free: 4.363 MB / 0.7169 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.326e-05/0.5976, allocations: 118.2 kB / 0.9547 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.096e-05/0.5976, allocations: 6.219 kB / 0.9547 GB, free: 4.238 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003346/0.5979, allocations: 131.2 kB / 0.9548 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.925e-06/0.598, allocations: 1.906 kB / 0.9548 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.878e-06/0.598, allocations: 0 / 0.9548 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.598, allocations: 5.125 kB / 0.9548 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004453/0.5984, allocations: 388.3 kB / 0.9552 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.492e-06/0.5984, allocations: 1.562 kB / 0.9552 GB, free: 3.773 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001405/0.5986, allocations: 31.16 kB / 0.9552 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.895e-06/0.5986, allocations: 1.188 kB / 0.9552 GB, free: 3.762 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.086e-05/0.5986, allocations: 5.188 kB / 0.9552 GB, free: 3.758 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.244e-06/0.5986, allocations: 4.875 kB / 0.9552 GB, free: 3.754 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.5986, allocations: 4 kB / 0.9552 GB, free: 3.75 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004837/0.5991, allocations: 252 kB / 0.9555 GB, free: 3.559 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.344e-05/0.5991, allocations: 78.52 kB / 0.9556 GB, free: 3.465 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.987e-05/0.5992, allocations: 5.281 kB / 0.9556 GB, free: 3.461 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001183/0.5993, allocations: 12.86 kB / 0.9556 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.714e-05/0.5993, allocations: 3.281 kB / 0.9556 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.163e-05/0.5993, allocations: 7.453 kB / 0.9556 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.36e-05/0.5994, allocations: 90.72 kB / 0.9557 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.5994, allocations: 0 / 0.9557 GB, free: 3.363 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000301/0.5997, allocations: 37.59 kB / 0.9557 GB, free: 3.352 MB / 0.7169 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.000281/0.6, allocations: 130.1 kB / 0.9558 GB, free: 3.25 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003411/0.6003, allocations: 84.58 kB / 0.9559 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.6003, allocations: 0 / 0.9559 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001403/0.6005, allocations: 47.88 kB / 0.956 GB, free: 3.199 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003255/0.6008, allocations: 14.36 kB / 0.956 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006416/0.6015, allocations: 345.1 kB / 0.9563 GB, free: 2.898 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001127/0.6016, allocations: 0.6903 MB / 0.957 GB, free: 2.195 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 5.87e-05/0.6016, allocations: 11.72 kB / 0.957 GB, free: 2.188 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.913e-05/0.6017, allocations: 13.41 kB / 0.957 GB, free: 2.184 MB / 0.7169 GB Notification: Performance of SimCode: time 3.11e-07/0.6017, allocations: 4 kB / 0.957 GB, free: 2.18 MB / 0.7169 GB Notification: Performance of Templates: time 0.003273/0.605, allocations: 1.095 MB / 0.9581 GB, free: 1.652 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.makefile (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & ./Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches