Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_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_latest_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.001483/0.001483, allocations: 108 kB / 15.6 MB, free: 132 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.001651/0.001651, allocations: 192.4 kB / 16.53 MB, free: 6.391 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.499/1.499, allocations: 222.9 MB / 240.2 MB, free: 4.277 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.023/3.023, allocations: 482.6 MB / 0.7548 GB, free: 10.75 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.003028/0.003028, allocations: 71.95 kB / 0.9241 GB, free: 29.34 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3639/0.3669, allocations: 162.3 MB / 1.083 GB, free: 13.01 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002785/0.3698, allocations: 1.283 MB / 1.084 GB, free: 11.71 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.001141/0.3709, allocations: 0.6149 MB / 1.084 GB, free: 11.1 MB / 0.8419 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.507e-05/0.371, allocations: 0 / 1.084 GB, free: 11.1 MB / 0.8419 GB Notification: Performance of NFTyping.typeComponents: time 1.539e-05/0.371, allocations: 0 / 1.084 GB, free: 11.1 MB / 0.8419 GB Notification: Performance of NFTyping.typeBindings: time 4.524e-05/0.3711, allocations: 7.922 kB / 1.084 GB, free: 11.09 MB / 0.8419 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005795/0.3717, allocations: 150.4 kB / 1.085 GB, free: 10.95 MB / 0.8419 GB Notification: Performance of NFFlatten.flatten: time 7.105e-05/0.3717, allocations: 19.92 kB / 1.085 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of NFFlatten.resolveConnections: time 5.319e-05/0.3718, allocations: 0 / 1.085 GB, free: 10.93 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 4.196e-05/0.3718, allocations: 19.92 kB / 1.085 GB, free: 10.91 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 5.007e-05/0.3719, allocations: 3.938 kB / 1.085 GB, free: 10.9 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 1.389e-05/0.3719, allocations: 4 kB / 1.085 GB, free: 10.9 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005535/0.3725, allocations: 343.3 kB / 1.085 GB, free: 10.56 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 1.52e-05/0.3725, allocations: 4 kB / 1.085 GB, free: 10.56 MB / 0.8419 GB Notification: Performance of NFVerifyModel.verify: time 2.877e-05/0.3725, allocations: 15.92 kB / 1.085 GB, free: 10.54 MB / 0.8419 GB Notification: Performance of NFConvertDAE.convert: time 0.0002778/0.3728, allocations: 144 kB / 1.085 GB, free: 10.4 MB / 0.8419 GB Notification: Performance of FrontEnd - DAE generated: time 4.058e-06/0.3728, allocations: 4 kB / 1.085 GB, free: 10.4 MB / 0.8419 GB Notification: Performance of FrontEnd: time 1.272e-06/0.3728, allocations: 0 / 1.085 GB, free: 10.4 MB / 0.8419 GB Notification: Performance of Transformations before backend: time 5.65e-06/0.3728, allocations: 0 / 1.085 GB, free: 10.4 MB / 0.8419 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.0005013/0.3734, allocations: 371.3 kB / 1.085 GB, free: 9.984 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 3.72e-05/0.3734, allocations: 8.031 kB / 1.085 GB, free: 9.977 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.383e-05/0.3734, allocations: 4.938 kB / 1.085 GB, free: 9.973 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001366/0.3736, allocations: 160.4 kB / 1.086 GB, free: 9.777 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.358e-05/0.3736, allocations: 4.312 kB / 1.086 GB, free: 9.773 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.435e-05/0.3736, allocations: 4.375 kB / 1.086 GB, free: 9.77 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001114/0.3738, allocations: 42.25 kB / 1.086 GB, free: 9.723 MB / 0.8419 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.787e-06/0.3738, allocations: 4.188 kB / 1.086 GB, free: 9.719 MB / 0.8419 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.212e-05/0.3738, allocations: 3.938 kB / 1.086 GB, free: 9.715 MB / 0.8419 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.769e-06/0.3738, allocations: 0 / 1.086 GB, free: 9.715 MB / 0.8419 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.237e-05/0.3738, allocations: 11.98 kB / 1.086 GB, free: 9.703 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002136/0.3741, allocations: 161.7 kB / 1.086 GB, free: 9.496 MB / 0.8419 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001873/0.3743, allocations: 46.5 kB / 1.086 GB, free: 9.441 MB / 0.8419 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.973e-05/0.3743, allocations: 20.86 kB / 1.086 GB, free: 9.418 MB / 0.8419 GB Notification: Performance of preOpt evalFunc (simulation): time 1.799e-05/0.3743, allocations: 0 / 1.086 GB, free: 9.418 MB / 0.8419 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.693e-05/0.3744, allocations: 34.56 kB / 1.086 GB, free: 9.375 MB / 0.8419 GB Notification: Performance of pre-optimization done (n=4): time 7.62e-07/0.3744, allocations: 0 / 1.086 GB, free: 9.375 MB / 0.8419 GB Notification: Performance of matching and sorting (n=6): time 0.0006269/0.375, allocations: 322.1 kB / 1.086 GB, free: 9.008 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.023e-05/0.3751, allocations: 51.41 kB / 1.086 GB, free: 8.945 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.64e-05/0.3751, allocations: 97.86 kB / 1.086 GB, free: 8.84 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 1.76e-05/0.3752, allocations: 25.7 kB / 1.086 GB, free: 8.809 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 4.219e-05/0.3752, allocations: 84.14 kB / 1.086 GB, free: 8.723 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 2.831e-05/0.3752, allocations: 15.8 kB / 1.087 GB, free: 8.707 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.697e-05/0.3753, allocations: 17.72 kB / 1.087 GB, free: 8.684 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 0.0001323/0.3754, allocations: 318.8 kB / 1.087 GB, free: 8.363 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.268e-05/0.3754, allocations: 8 kB / 1.087 GB, free: 8.355 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.695e-05/0.3755, allocations: 15.94 kB / 1.087 GB, free: 8.34 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.24e-05/0.3755, allocations: 44.83 kB / 1.087 GB, free: 8.293 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.91e-07/0.3755, allocations: 0 / 1.087 GB, free: 8.293 MB / 0.8419 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.659e-05/0.3756, allocations: 57.61 kB / 1.087 GB, free: 8.23 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 2.189e-05/0.3757, allocations: 15.92 kB / 1.087 GB, free: 8.215 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.3757, allocations: 4.172 kB / 1.087 GB, free: 8.211 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.22e-05/0.3757, allocations: 0 / 1.087 GB, free: 8.211 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.964e-05/0.3758, allocations: 8 kB / 1.087 GB, free: 8.203 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.656e-06/0.3758, allocations: 7.984 kB / 1.087 GB, free: 8.195 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.108e-05/0.3758, allocations: 4 kB / 1.087 GB, free: 8.191 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.659e-06/0.3758, allocations: 3.938 kB / 1.087 GB, free: 8.188 MB / 0.8419 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 8.994e-05/0.3759, allocations: 113.8 kB / 1.087 GB, free: 8.066 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.199e-05/0.3759, allocations: 3.938 kB / 1.087 GB, free: 8.062 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000148/0.3761, allocations: 73.64 kB / 1.087 GB, free: 7.984 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.3761, allocations: 4 kB / 1.087 GB, free: 7.98 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.468e-06/0.3761, allocations: 0 / 1.087 GB, free: 7.98 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.918e-06/0.3761, allocations: 0 / 1.087 GB, free: 7.98 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003478/0.3765, allocations: 311.4 kB / 1.087 GB, free: 7.617 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.3765, allocations: 32 / 1.087 GB, free: 7.617 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.376e-05/0.3765, allocations: 19.98 kB / 1.087 GB, free: 7.598 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.154e-06/0.3765, allocations: 0 / 1.087 GB, free: 7.598 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.602e-06/0.3766, allocations: 0 / 1.087 GB, free: 7.598 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.3766, allocations: 192 / 1.087 GB, free: 7.598 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.476e-06/0.3766, allocations: 11.94 kB / 1.088 GB, free: 7.586 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002139/0.3768, allocations: 184.2 kB / 1.088 GB, free: 7.387 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 5.865e-05/0.3769, allocations: 81.66 kB / 1.088 GB, free: 7.289 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.591e-05/0.3769, allocations: 8.062 kB / 1.088 GB, free: 7.281 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.678e-05/0.377, allocations: 0 / 1.088 GB, free: 7.281 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.546e-05/0.377, allocations: 7.984 kB / 1.088 GB, free: 7.273 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.178e-06/0.377, allocations: 0 / 1.088 GB, free: 7.273 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 4.595e-05/0.377, allocations: 83.27 kB / 1.088 GB, free: 7.191 MB / 0.8419 GB Notification: Performance of sort global known variables: time 1e-07/0.3771, allocations: 0 / 1.088 GB, free: 7.191 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.0002442/0.3773, allocations: 23.94 kB / 1.088 GB, free: 7.168 MB / 0.8419 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.0002175/0.3775, allocations: 127.1 kB / 1.088 GB, free: 7.035 MB / 0.8419 GB Notification: Performance of simCode: created initialization part: time 0.0001145/0.3777, allocations: 36 kB / 1.088 GB, free: 7 MB / 0.8419 GB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3777, allocations: 0 / 1.088 GB, free: 7 MB / 0.8419 GB Notification: Performance of simCode: created simulation system equations: time 3.181e-05/0.3777, allocations: 23.92 kB / 1.088 GB, free: 6.977 MB / 0.8419 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002259/0.3779, allocations: 13.66 kB / 1.088 GB, free: 6.965 MB / 0.8419 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004507/0.3784, allocations: 188 kB / 1.088 GB, free: 6.75 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003033/0.3787, allocations: 0.6845 MB / 1.089 GB, free: 6.039 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 2.689e-05/0.3787, allocations: 3.938 kB / 1.089 GB, free: 6.035 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.059e-05/0.3788, allocations: 15.44 kB / 1.089 GB, free: 6.02 MB / 0.8419 GB Notification: Performance of SimCode: time 2.11e-07/0.3788, allocations: 0 / 1.089 GB, free: 6.02 MB / 0.8419 GB Notification: Performance of Templates: time 0.003292/0.3821, allocations: 0.6599 MB / 1.09 GB, free: 5.398 MB / 0.8419 GB make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.makefile (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches