Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.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_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001159/0.001159, allocations: 112.5 kB / 15.73 MB, free: 76 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001242/0.001242, allocations: 190.7 kB / 16.66 MB, free: 6.582 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.52/1.52, allocations: 222.9 MB / 240.4 MB, free: 4.336 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.631/2.631, allocations: 390.2 MB / 0.6648 GB, free: 256 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001243/0.001244, allocations: 62.62 kB / 0.9508 GB, free: 5.648 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3183/0.3195, allocations: 140.4 MB / 1.088 GB, free: 1.543 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002071/0.3216, allocations: 1.285 MB / 1.089 GB, free: 252 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0009498/0.3226, allocations: 0.6129 MB / 1.09 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.873e-05/0.3226, allocations: 0 / 1.09 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.51e-05/0.3227, allocations: 0 / 1.09 GB, free: 15.63 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 3.45e-05/0.3227, allocations: 3.938 kB / 1.09 GB, free: 15.62 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004752/0.3232, allocations: 145.2 kB / 1.09 GB, free: 15.48 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 5.754e-05/0.3233, allocations: 23.92 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.414e-05/0.3233, allocations: 3.938 kB / 1.09 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.241e-05/0.3233, allocations: 7.984 kB / 1.09 GB, free: 15.45 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 4.241e-05/0.3234, allocations: 11.94 kB / 1.09 GB, free: 15.44 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.219e-05/0.3234, allocations: 4 kB / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004821/0.3239, allocations: 343.3 kB / 1.09 GB, free: 15.1 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.046e-05/0.3239, allocations: 0 / 1.09 GB, free: 15.1 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.354e-05/0.3239, allocations: 15.94 kB / 1.09 GB, free: 15.08 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002444/0.3242, allocations: 147.4 kB / 1.09 GB, free: 14.94 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.3242, allocations: 4 kB / 1.09 GB, free: 14.94 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.112e-06/0.3242, allocations: 0 / 1.09 GB, free: 14.94 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 6.623e-06/0.3242, allocations: 0 / 1.09 GB, free: 14.94 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0004247/0.3247, allocations: 363 kB / 1.091 GB, free: 14.53 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.268e-05/0.3247, allocations: 12.02 kB / 1.091 GB, free: 14.52 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.157e-05/0.3247, allocations: 8.891 kB / 1.091 GB, free: 14.51 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000107/0.3248, allocations: 160.4 kB / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.059e-05/0.3249, allocations: 384 / 1.091 GB, free: 14.32 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.436e-05/0.3249, allocations: 16.3 kB / 1.091 GB, free: 14.3 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.501e-05/0.325, allocations: 42.19 kB / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.762e-06/0.325, allocations: 192 / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.425e-05/0.325, allocations: 7.938 kB / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.878e-06/0.325, allocations: 0 / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.65e-05/0.3251, allocations: 8 kB / 1.091 GB, free: 14.24 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001633/0.3252, allocations: 157.7 kB / 1.091 GB, free: 14.04 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001914/0.3254, allocations: 50.64 kB / 1.091 GB, free: 13.98 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.35e-05/0.3255, allocations: 20.84 kB / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.412e-05/0.3255, allocations: 0 / 1.091 GB, free: 13.95 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.903e-05/0.3255, allocations: 30.56 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 1.152e-06/0.3255, allocations: 0 / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0005786/0.3261, allocations: 314.2 kB / 1.092 GB, free: 13.55 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.874e-05/0.3262, allocations: 55.41 kB / 1.092 GB, free: 13.49 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.699e-05/0.3262, allocations: 97.86 kB / 1.092 GB, free: 13.38 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.402e-05/0.3263, allocations: 25.7 kB / 1.092 GB, free: 13.35 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 3.744e-05/0.3263, allocations: 84.14 kB / 1.092 GB, free: 13.27 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.955e-05/0.3263, allocations: 27.78 kB / 1.092 GB, free: 13.24 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.23e-05/0.3264, allocations: 17.72 kB / 1.092 GB, free: 13.21 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001116/0.3265, allocations: 310.8 kB / 1.092 GB, free: 12.9 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.902e-05/0.3265, allocations: 15.98 kB / 1.092 GB, free: 12.89 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.241e-05/0.3265, allocations: 12 kB / 1.092 GB, free: 12.88 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.855e-05/0.3266, allocations: 40.78 kB / 1.092 GB, free: 12.83 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.71e-07/0.3266, allocations: 4 kB / 1.092 GB, free: 12.83 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001031/0.3267, allocations: 61.75 kB / 1.092 GB, free: 12.76 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.346e-05/0.3267, allocations: 15.88 kB / 1.092 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.566e-06/0.3268, allocations: 0 / 1.092 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.061e-05/0.3268, allocations: 0 / 1.092 GB, free: 12.75 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.285e-05/0.3268, allocations: 11.98 kB / 1.092 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.3268, allocations: 0 / 1.092 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.841e-05/0.3269, allocations: 4 kB / 1.092 GB, free: 12.73 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.479e-06/0.3269, allocations: 0 / 1.092 GB, free: 12.73 MB / 0.8575 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 (7): * Single equations (assignments): 7 * 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 7.098e-05/0.3269, allocations: 121.8 kB / 1.092 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.366e-05/0.327, allocations: 8.406 kB / 1.092 GB, free: 12.59 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001389/0.3271, allocations: 73.58 kB / 1.093 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.155e-06/0.3271, allocations: 4 kB / 1.093 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.506e-06/0.3271, allocations: 0 / 1.093 GB, free: 12.51 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.378e-06/0.3271, allocations: 3.984 kB / 1.093 GB, free: 12.5 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000336/0.3275, allocations: 315.4 kB / 1.093 GB, free: 12.14 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.402e-06/0.3275, allocations: 4.031 kB / 1.093 GB, free: 12.13 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.372e-05/0.3276, allocations: 15.98 kB / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.3276, allocations: 0 / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.101e-06/0.3276, allocations: 0 / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.282e-06/0.3276, allocations: 0 / 1.093 GB, free: 12.12 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.585e-06/0.3276, allocations: 4 kB / 1.093 GB, free: 12.11 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001733/0.3278, allocations: 176.3 kB / 1.093 GB, free: 11.92 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 5.182e-05/0.3278, allocations: 89.11 kB / 1.093 GB, free: 11.82 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.225e-05/0.3278, allocations: 4.031 kB / 1.093 GB, free: 11.81 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.115e-05/0.3279, allocations: 4.188 kB / 1.093 GB, free: 11.81 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.776e-05/0.3279, allocations: 7.984 kB / 1.093 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.041e-06/0.328, allocations: 4 kB / 1.093 GB, free: 11.8 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 3.263e-05/0.328, allocations: 79.28 kB / 1.093 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.3e-07/0.328, allocations: 0 / 1.093 GB, free: 11.72 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002499/0.3283, allocations: 27.88 kB / 1.093 GB, free: 11.69 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (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 (6): * Single equations (assignments): 6 * 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.0002092/0.3285, allocations: 127.2 kB / 1.093 GB, free: 11.56 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001575/0.3286, allocations: 35.92 kB / 1.093 GB, free: 11.52 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 6.662e-06/0.3287, allocations: 0 / 1.093 GB, free: 11.52 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 5.405e-05/0.3287, allocations: 23.92 kB / 1.093 GB, free: 11.5 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003544/0.3291, allocations: 9.359 kB / 1.093 GB, free: 11.49 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005464/0.3296, allocations: 188.1 kB / 1.094 GB, free: 11.28 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003277/0.33, allocations: 0.6807 MB / 1.094 GB, free: 10.57 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 4.285e-05/0.33, allocations: 4.391 kB / 1.094 GB, free: 10.57 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.672e-05/0.3301, allocations: 15.44 kB / 1.094 GB, free: 10.55 MB / 0.8575 GB Notification: Performance of SimCode: time 4.71e-07/0.3301, allocations: 0 / 1.094 GB, free: 10.55 MB / 0.8575 GB Notification: Performance of Templates: time 0.01141/0.3415, allocations: 0.6598 MB / 1.095 GB, free: 9.93 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.makefile (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & ./Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches