Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001843/0.001843, 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.001984/0.001984, allocations: 194.1 kB / 16.14 MB, free: 6.676 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.734/1.734, allocations: 222.9 MB / 239.8 MB, free: 4.617 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.95/2.95, allocations: 437 MB / 0.7099 GB, free: 5.289 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001975/0.001976, allocations: 63.91 kB / 0.8686 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7898/0.7918, allocations: 151.6 MB / 1.017 GB, free: 2.738 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002963/0.7948, allocations: 1.531 MB / 1.018 GB, free: 1.195 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.001255/0.7961, allocations: 0.6501 MB / 1.019 GB, free: 0.543 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.65e-05/0.7961, allocations: 4 kB / 1.019 GB, free: 0.5391 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 3.275e-05/0.7962, allocations: 3.938 kB / 1.019 GB, free: 0.5352 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.706e-05/0.7962, allocations: 7.922 kB / 1.019 GB, free: 0.5273 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005376/0.7968, allocations: 135.6 kB / 1.019 GB, free: 404 kB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 7.828e-05/0.7969, allocations: 43.91 kB / 1.019 GB, free: 360 kB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 4.748e-05/0.7969, allocations: 7.984 kB / 1.019 GB, free: 352 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 6.055e-05/0.797, allocations: 19.92 kB / 1.019 GB, free: 332 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 5.481e-05/0.7971, allocations: 35.83 kB / 1.019 GB, free: 296 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.477e-05/0.7971, allocations: 4 kB / 1.019 GB, free: 292 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005458/0.7976, allocations: 339.3 kB / 1.019 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.016e-05/0.7977, allocations: 15.98 kB / 1.019 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.926e-05/0.7977, allocations: 27.86 kB / 1.019 GB, free: 15.91 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002966/0.798, allocations: 169.5 kB / 1.02 GB, free: 15.75 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.798, allocations: 7.938 kB / 1.02 GB, free: 15.74 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.183e-06/0.798, allocations: 4 kB / 1.02 GB, free: 15.73 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.476e-06/0.798, allocations: 0 / 1.02 GB, free: 15.73 MB / 0.7794 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.0006538/0.7987, allocations: 399.2 kB / 1.02 GB, free: 15.29 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.7988, allocations: 11.98 kB / 1.02 GB, free: 15.28 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.427e-05/0.7988, allocations: 8.938 kB / 1.02 GB, free: 15.27 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001475/0.799, allocations: 176.2 kB / 1.02 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.638e-05/0.799, allocations: 8.375 kB / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.235e-05/0.799, allocations: 4.375 kB / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002554/0.7993, allocations: 77.97 kB / 1.02 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.505e-05/0.7993, allocations: 4.188 kB / 1.02 GB, free: 14.97 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.657e-05/0.7993, allocations: 7.938 kB / 1.02 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.157e-06/0.7993, allocations: 0 / 1.02 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002452/0.7996, allocations: 51.95 kB / 1.02 GB, free: 14.91 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007323/0.8003, allocations: 320.6 kB / 1.021 GB, free: 14.55 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003166/0.8007, allocations: 86.53 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001213/0.8008, allocations: 24.84 kB / 1.021 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.53e-05/0.8008, allocations: 8.141 kB / 1.021 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.915e-05/0.8009, allocations: 34.5 kB / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.243e-06/0.8009, allocations: 0 / 1.021 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.001761/0.8026, allocations: 0.6539 MB / 1.021 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.708e-05/0.8027, allocations: 63.33 kB / 1.021 GB, free: 13.55 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.54e-05/0.8028, allocations: 97.8 kB / 1.022 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.89e-05/0.8028, allocations: 29.7 kB / 1.022 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.939e-05/0.8029, allocations: 99.97 kB / 1.022 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.092e-05/0.8029, allocations: 35.47 kB / 1.022 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.604e-05/0.803, allocations: 29.7 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0002183/0.8032, allocations: 318.8 kB / 1.022 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000132/0.8034, allocations: 27.98 kB / 1.022 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001264/0.8035, allocations: 35.97 kB / 1.022 GB, free: 12.86 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002494/0.8037, allocations: 76.95 kB / 1.022 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.076e-06/0.8038, allocations: 4 kB / 1.022 GB, free: 12.78 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003412/0.8041, allocations: 113.6 kB / 1.022 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/0.8041, allocations: 4 kB / 1.022 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.8041, allocations: 0 / 1.022 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.559e-05/0.8042, allocations: 4 kB / 1.022 GB, free: 12.65 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001541/0.8043, allocations: 23.98 kB / 1.022 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.412e-06/0.8043, allocations: 0 / 1.022 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.049e-05/0.8044, allocations: 19.92 kB / 1.022 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.185e-05/0.8044, allocations: 4 kB / 1.022 GB, free: 12.61 MB / 0.7794 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.00011/0.8045, allocations: 113.8 kB / 1.022 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.474e-05/0.8046, allocations: 7.906 kB / 1.022 GB, free: 12.48 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004059/0.805, allocations: 137.6 kB / 1.023 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.805, allocations: 0 / 1.023 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.947e-06/0.805, allocations: 4 kB / 1.023 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.805, allocations: 3.938 kB / 1.023 GB, free: 12.32 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006108/0.8056, allocations: 382.5 kB / 1.023 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.8057, allocations: 0 / 1.023 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001517/0.8058, allocations: 27.97 kB / 1.023 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.8058, allocations: 3.938 kB / 1.023 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.449e-05/0.8058, allocations: 7.938 kB / 1.023 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.8058, allocations: 0 / 1.023 GB, free: 11.86 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.8059, allocations: 4 kB / 1.023 GB, free: 11.85 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005147/0.8064, allocations: 247.3 kB / 1.023 GB, free: 11.59 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 5.722e-05/0.8064, allocations: 81.02 kB / 1.023 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.361e-05/0.8065, allocations: 7.969 kB / 1.023 GB, free: 11.49 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000124/0.8066, allocations: 11.98 kB / 1.023 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.607e-05/0.8066, allocations: 8.062 kB / 1.023 GB, free: 11.47 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.023e-05/0.8066, allocations: 3.984 kB / 1.023 GB, free: 11.46 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.557e-05/0.8067, allocations: 83.28 kB / 1.023 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.023e-06/0.8067, allocations: 0 / 1.023 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002849/0.807, allocations: 43.88 kB / 1.023 GB, free: 11.34 MB / 0.7794 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.0002474/0.8073, allocations: 131.8 kB / 1.024 GB, free: 11.2 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.000315/0.8076, allocations: 81.14 kB / 1.024 GB, free: 11.12 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 4.298e-06/0.8076, allocations: 8 kB / 1.024 GB, free: 11.11 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001893/0.8078, allocations: 43.91 kB / 1.024 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003217/0.8081, allocations: 14.81 kB / 1.024 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007132/0.8088, allocations: 335.7 kB / 1.024 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003298/0.8092, allocations: 0.6926 MB / 1.025 GB, free: 9.984 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.657e-05/0.8093, allocations: 20.59 kB / 1.025 GB, free: 9.965 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.339e-05/0.8093, allocations: 15.44 kB / 1.025 GB, free: 9.949 MB / 0.7794 GB Notification: Performance of SimCode: time 2.3e-07/0.8093, allocations: 0 / 1.025 GB, free: 9.949 MB / 0.7794 GB Notification: Performance of Templates: time 0.004063/0.8134, allocations: 1.101 MB / 1.026 GB, free: 8.887 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.makefile (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & ./Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2 -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches