Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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_dp_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_latest_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_latest_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.00121/0.001214, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001268/0.001268, allocations: 192.4 kB / 16.25 MB, free: 6.621 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.381/1.381, allocations: 222.9 MB / 239.9 MB, free: 4.426 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.758/2.758, allocations: 472.6 MB / 0.7448 GB, free: 4.852 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001315/0.001315, allocations: 64.31 kB / 0.9116 GB, free: 33.53 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3759/0.3772, allocations: 159.9 MB / 1.068 GB, free: 10.71 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002921/0.3801, allocations: 1.332 MB / 1.069 GB, free: 9.363 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001059/0.3812, allocations: 0.615 MB / 1.07 GB, free: 8.746 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.011e-05/0.3813, allocations: 0 / 1.07 GB, free: 8.746 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.327e-05/0.3813, allocations: 0 / 1.07 GB, free: 8.746 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.857e-05/0.3813, allocations: 7.938 kB / 1.07 GB, free: 8.738 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005297/0.3819, allocations: 119.6 kB / 1.07 GB, free: 8.621 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 6.054e-05/0.382, allocations: 27.84 kB / 1.07 GB, free: 8.594 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.499e-05/0.382, allocations: 8 kB / 1.07 GB, free: 8.586 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 3.578e-05/0.382, allocations: 4 kB / 1.07 GB, free: 8.582 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 5.291e-05/0.3821, allocations: 11.92 kB / 1.07 GB, free: 8.57 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.341e-05/0.3821, allocations: 4 kB / 1.07 GB, free: 8.566 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004496/0.3826, allocations: 343.3 kB / 1.07 GB, free: 8.23 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.313e-05/0.3826, allocations: 4 kB / 1.07 GB, free: 8.227 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.397e-05/0.3826, allocations: 11.94 kB / 1.07 GB, free: 8.215 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002454/0.3829, allocations: 147.9 kB / 1.07 GB, free: 8.07 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.3829, allocations: 0 / 1.07 GB, free: 8.07 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.923e-06/0.3829, allocations: 0 / 1.07 GB, free: 8.07 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.48e-06/0.3829, allocations: 0 / 1.07 GB, free: 8.07 MB / 0.8262 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.0004026/0.3833, allocations: 363.4 kB / 1.071 GB, free: 7.664 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.761e-05/0.3834, allocations: 8.031 kB / 1.071 GB, free: 7.656 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.386e-05/0.3834, allocations: 8.844 kB / 1.071 GB, free: 7.648 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001205/0.3835, allocations: 164.4 kB / 1.071 GB, free: 7.449 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.074e-05/0.3835, allocations: 384 / 1.071 GB, free: 7.449 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.245e-05/0.3836, allocations: 8.359 kB / 1.071 GB, free: 7.441 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001124/0.3837, allocations: 42.19 kB / 1.071 GB, free: 7.395 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.474e-06/0.3837, allocations: 192 / 1.071 GB, free: 7.395 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.71e-05/0.3837, allocations: 11.94 kB / 1.071 GB, free: 7.383 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.819e-06/0.3837, allocations: 4 kB / 1.071 GB, free: 7.379 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.731e-05/0.3838, allocations: 8 kB / 1.071 GB, free: 7.371 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000154/0.3839, allocations: 157.7 kB / 1.071 GB, free: 7.168 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000178/0.3841, allocations: 42.61 kB / 1.071 GB, free: 7.117 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.827e-05/0.3842, allocations: 20.94 kB / 1.071 GB, free: 7.094 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.286e-05/0.3842, allocations: 3.938 kB / 1.071 GB, free: 7.09 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.915e-05/0.3842, allocations: 34.56 kB / 1.071 GB, free: 7.047 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=4): time 1.102e-06/0.3842, allocations: 0 / 1.071 GB, free: 7.047 MB / 0.8262 GB Notification: Performance of matching and sorting (n=6): time 0.0006137/0.3848, allocations: 310.2 kB / 1.071 GB, free: 6.691 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.796e-05/0.3849, allocations: 51.41 kB / 1.071 GB, free: 6.629 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.048e-05/0.385, allocations: 97.84 kB / 1.072 GB, free: 6.523 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.928e-05/0.385, allocations: 25.7 kB / 1.072 GB, free: 6.492 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.22e-05/0.385, allocations: 88.08 kB / 1.072 GB, free: 6.402 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.66e-05/0.3851, allocations: 19.72 kB / 1.072 GB, free: 6.383 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.579e-05/0.3851, allocations: 21.7 kB / 1.072 GB, free: 6.355 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001113/0.3852, allocations: 314.8 kB / 1.072 GB, free: 6.039 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.465e-05/0.3853, allocations: 11.94 kB / 1.072 GB, free: 6.027 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.343e-05/0.3853, allocations: 15.98 kB / 1.072 GB, free: 6.012 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.666e-05/0.3854, allocations: 40.78 kB / 1.072 GB, free: 5.969 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.31e-07/0.3854, allocations: 0 / 1.072 GB, free: 5.969 MB / 0.8262 GB Notification: Performance of matching and sorting (n=7) (initialization): time 8.95e-05/0.3855, allocations: 61.59 kB / 1.072 GB, free: 5.902 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.503e-05/0.3855, allocations: 11.94 kB / 1.072 GB, free: 5.891 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.557e-06/0.3855, allocations: 4 kB / 1.072 GB, free: 5.887 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.626e-06/0.3855, allocations: 0 / 1.072 GB, free: 5.887 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.576e-05/0.3855, allocations: 8 kB / 1.072 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.837e-06/0.3856, allocations: 240 / 1.072 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.985e-05/0.3856, allocations: 11.98 kB / 1.072 GB, free: 5.867 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.338e-06/0.3856, allocations: 0 / 1.072 GB, free: 5.867 MB / 0.8262 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.179e-05/0.3857, allocations: 115.1 kB / 1.072 GB, free: 5.746 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.216e-05/0.3857, allocations: 4.453 kB / 1.072 GB, free: 5.742 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001205/0.3858, allocations: 77.64 kB / 1.072 GB, free: 5.656 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.3858, allocations: 4 kB / 1.072 GB, free: 5.652 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.3858, allocations: 0 / 1.072 GB, free: 5.652 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.3858, allocations: 3.984 kB / 1.072 GB, free: 5.648 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003136/0.3862, allocations: 319.5 kB / 1.073 GB, free: 5.277 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.3862, allocations: 0 / 1.073 GB, free: 5.277 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.305e-05/0.3862, allocations: 12 kB / 1.073 GB, free: 5.266 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.3862, allocations: 0 / 1.073 GB, free: 5.266 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.494e-06/0.3863, allocations: 0 / 1.073 GB, free: 5.266 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.3863, allocations: 4.031 kB / 1.073 GB, free: 5.262 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.3863, allocations: 0 / 1.073 GB, free: 5.262 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001874/0.3865, allocations: 188.2 kB / 1.073 GB, free: 5.059 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.55e-05/0.3865, allocations: 81.09 kB / 1.073 GB, free: 4.961 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.418e-05/0.3865, allocations: 8.031 kB / 1.073 GB, free: 4.953 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.097e-05/0.3866, allocations: 0 / 1.073 GB, free: 4.953 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.679e-05/0.3866, allocations: 4.062 kB / 1.073 GB, free: 4.949 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.93e-06/0.3866, allocations: 4 kB / 1.073 GB, free: 4.945 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.36e-05/0.3867, allocations: 83.27 kB / 1.073 GB, free: 4.863 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3867, allocations: 0 / 1.073 GB, free: 4.863 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002434/0.3869, allocations: 27.94 kB / 1.073 GB, free: 4.836 MB / 0.8262 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.000189/0.3871, allocations: 123.2 kB / 1.073 GB, free: 4.707 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001126/0.3873, allocations: 35.92 kB / 1.073 GB, free: 4.672 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.3873, allocations: 0 / 1.073 GB, free: 4.672 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 3.273e-05/0.3873, allocations: 23.94 kB / 1.073 GB, free: 4.648 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002242/0.3875, allocations: 19.81 kB / 1.073 GB, free: 4.629 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000415/0.388, allocations: 208.6 kB / 1.073 GB, free: 4.395 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002483/0.3882, allocations: 0.6845 MB / 1.074 GB, free: 3.684 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.089e-05/0.3883, allocations: 7.984 kB / 1.074 GB, free: 3.676 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.798e-05/0.3883, allocations: 11.44 kB / 1.074 GB, free: 3.664 MB / 0.8262 GB Notification: Performance of SimCode: time 2.21e-07/0.3883, allocations: 0 / 1.074 GB, free: 3.664 MB / 0.8262 GB Notification: Performance of Templates: time 0.002864/0.3911, allocations: 0.6234 MB / 1.075 GB, free: 3.078 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.makefile (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches