Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_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_dp_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005698/0.005699, allocations: 96.7 kB / 15.73 MB, free: 6.047 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.001178/0.001179, allocations: 194.3 kB / 16.67 MB, free: 5.973 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.487/1.487, allocations: 222.9 MB / 240.4 MB, free: 4.316 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.449/2.449, allocations: 390.2 MB / 0.6648 GB, free: 176 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001216/0.001216, allocations: 61.75 kB / 0.9508 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3108/0.312, allocations: 140.4 MB / 1.088 GB, free: 1.48 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002526/0.3146, allocations: 1.267 MB / 1.089 GB, free: 208 kB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001222/0.3158, allocations: 0.6167 MB / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.687e-05/0.3159, allocations: 0 / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.758e-05/0.3159, allocations: 0 / 1.09 GB, free: 15.59 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 5.685e-05/0.316, allocations: 11.88 kB / 1.09 GB, free: 15.57 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005836/0.3166, allocations: 145.8 kB / 1.09 GB, free: 15.43 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 6.807e-05/0.3166, allocations: 15.92 kB / 1.09 GB, free: 15.42 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 5.119e-05/0.3167, allocations: 7.938 kB / 1.09 GB, free: 15.41 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 5.605e-05/0.3168, allocations: 11.98 kB / 1.09 GB, free: 15.4 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 6.23e-05/0.3168, allocations: 7.938 kB / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.265e-05/0.3168, allocations: 0 / 1.09 GB, free: 15.39 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005352/0.3174, allocations: 347.3 kB / 1.09 GB, free: 15.05 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.479e-05/0.3174, allocations: 8 kB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 3.522e-05/0.3175, allocations: 7.938 kB / 1.09 GB, free: 15.04 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002917/0.3178, allocations: 151.5 kB / 1.09 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.58e-06/0.3178, allocations: 0 / 1.09 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.453e-06/0.3178, allocations: 0 / 1.09 GB, free: 14.89 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 8.877e-06/0.3178, allocations: 0 / 1.09 GB, free: 14.89 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.0005285/0.3183, allocations: 359.1 kB / 1.091 GB, free: 14.48 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.647e-05/0.3184, allocations: 16.02 kB / 1.091 GB, free: 14.47 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.048e-05/0.3184, allocations: 4.891 kB / 1.091 GB, free: 14.46 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001332/0.3186, allocations: 164.3 kB / 1.091 GB, free: 14.27 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.285e-05/0.3186, allocations: 8.375 kB / 1.091 GB, free: 14.26 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.143e-05/0.3186, allocations: 4.375 kB / 1.091 GB, free: 14.25 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001139/0.3187, allocations: 42.23 kB / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.045e-06/0.3187, allocations: 192 / 1.091 GB, free: 14.21 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.338e-05/0.3188, allocations: 7.938 kB / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.3188, allocations: 0 / 1.091 GB, free: 14.2 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.026e-05/0.3188, allocations: 11.94 kB / 1.091 GB, free: 14.19 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001651/0.319, allocations: 153.7 kB / 1.091 GB, free: 13.99 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002052/0.3192, allocations: 50.59 kB / 1.091 GB, free: 13.93 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.437e-05/0.3192, allocations: 16.86 kB / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 2.187e-05/0.3193, allocations: 0 / 1.091 GB, free: 13.91 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.426e-05/0.3193, allocations: 34.56 kB / 1.091 GB, free: 13.87 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 2.414e-06/0.3193, allocations: 0 / 1.091 GB, free: 13.87 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0006393/0.3199, allocations: 314.2 kB / 1.092 GB, free: 13.51 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.252e-05/0.32, allocations: 55.41 kB / 1.092 GB, free: 13.44 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.383e-05/0.3201, allocations: 93.86 kB / 1.092 GB, free: 13.34 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 1.611e-05/0.3201, allocations: 29.7 kB / 1.092 GB, free: 13.3 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 4.797e-05/0.3202, allocations: 80.14 kB / 1.092 GB, free: 13.22 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 3.777e-05/0.3202, allocations: 27.78 kB / 1.092 GB, free: 13.2 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.616e-05/0.3202, allocations: 17.72 kB / 1.092 GB, free: 13.17 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 0.0001231/0.3204, allocations: 314.8 kB / 1.092 GB, free: 12.86 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.593e-05/0.3204, allocations: 20.05 kB / 1.092 GB, free: 12.84 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.388e-05/0.3204, allocations: 15.94 kB / 1.092 GB, free: 12.82 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.705e-05/0.3205, allocations: 32.84 kB / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.71e-07/0.3205, allocations: 0 / 1.092 GB, free: 12.79 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001018/0.3206, allocations: 69.62 kB / 1.092 GB, free: 12.71 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.876e-05/0.3207, allocations: 11.88 kB / 1.092 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.57e-06/0.3207, allocations: 0 / 1.092 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.619e-05/0.3207, allocations: 0 / 1.092 GB, free: 12.7 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.659e-05/0.3207, allocations: 15.98 kB / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.39e-06/0.3208, allocations: 0 / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.952e-05/0.3208, allocations: 4 kB / 1.092 GB, free: 12.68 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.901e-06/0.3208, allocations: 0 / 1.092 GB, free: 12.68 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 0.0001024/0.3209, allocations: 113.8 kB / 1.092 GB, free: 12.56 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.493e-05/0.3209, allocations: 7.891 kB / 1.092 GB, free: 12.55 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001544/0.3211, allocations: 82.31 kB / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-06/0.3211, allocations: 0 / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.543e-06/0.3211, allocations: 0 / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.3211, allocations: 0 / 1.093 GB, free: 12.46 MB / 0.8575 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003866/0.3215, allocations: 315.4 kB / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.3215, allocations: 0 / 1.093 GB, free: 12.09 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.953e-05/0.3216, allocations: 19.97 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.843e-06/0.3216, allocations: 0 / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.192e-05/0.3216, allocations: 4 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.3216, allocations: 4 kB / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.3216, allocations: 0 / 1.093 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002066/0.3218, allocations: 176.5 kB / 1.093 GB, free: 11.88 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 7.082e-05/0.3219, allocations: 97.08 kB / 1.093 GB, free: 11.76 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.661e-05/0.322, allocations: 0 / 1.093 GB, free: 11.76 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.213e-05/0.322, allocations: 0 / 1.093 GB, free: 11.76 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.712e-05/0.3221, allocations: 7.984 kB / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.971e-06/0.3221, allocations: 4 kB / 1.093 GB, free: 11.75 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 4.256e-05/0.3221, allocations: 79.28 kB / 1.093 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3221, allocations: 0 / 1.093 GB, free: 11.67 MB / 0.8575 GB Notification: Performance of remove unused functions: time 0.0002585/0.3224, allocations: 19.94 kB / 1.093 GB, free: 11.65 MB / 0.8575 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (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 (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.0002328/0.3226, allocations: 135.2 kB / 1.093 GB, free: 11.51 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0001316/0.3228, allocations: 35.92 kB / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of simCode: created event and clocks part: time 2.786e-06/0.3228, allocations: 0 / 1.093 GB, free: 11.48 MB / 0.8575 GB Notification: Performance of simCode: created simulation system equations: time 2.961e-05/0.3228, allocations: 19.98 kB / 1.093 GB, free: 11.46 MB / 0.8575 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002399/0.323, allocations: 9.359 kB / 1.093 GB, free: 11.45 MB / 0.8575 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00047/0.3235, allocations: 192.1 kB / 1.094 GB, free: 11.23 MB / 0.8575 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003125/0.3238, allocations: 0.6807 MB / 1.094 GB, free: 10.53 MB / 0.8575 GB Notification: Performance of simCode: alias equations: time 3.174e-05/0.3239, allocations: 8 kB / 1.094 GB, free: 10.52 MB / 0.8575 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.308e-05/0.3239, allocations: 15.38 kB / 1.094 GB, free: 10.5 MB / 0.8575 GB Notification: Performance of SimCode: time 2.2e-07/0.3239, allocations: 0 / 1.094 GB, free: 10.5 MB / 0.8575 GB Notification: Performance of Templates: time 0.00302/0.3269, allocations: 0.6257 MB / 1.095 GB, free: 9.914 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.makefile (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & ./Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches