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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.0084/0.0084, allocations: 101.7 kB / 15.73 MB, free: 5.969 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.001867/0.001868, allocations: 195.6 kB / 16.67 MB, free: 5.906 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.472/1.472, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.747/2.747, allocations: 461.9 MB / 0.7348 GB, free: 14.63 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001347/0.001347, allocations: 67.91 kB / 1.054 GB, free: 7.164 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2899/0.2913, allocations: 157.4 MB / 1.208 GB, free: 9.652 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002604/0.2939, allocations: 1.268 MB / 1.209 GB, free: 8.371 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001183/0.2951, allocations: 0.6188 MB / 1.21 GB, free: 7.75 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.743e-05/0.2952, allocations: 0 / 1.21 GB, free: 7.75 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 2.206e-05/0.2952, allocations: 0 / 1.21 GB, free: 7.75 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 5.542e-05/0.2953, allocations: 7.922 kB / 1.21 GB, free: 7.742 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007692/0.2961, allocations: 141.6 kB / 1.21 GB, free: 7.605 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 8.174e-05/0.2962, allocations: 19.92 kB / 1.21 GB, free: 7.586 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 5.542e-05/0.2962, allocations: 4 kB / 1.21 GB, free: 7.582 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 6.495e-05/0.2963, allocations: 11.92 kB / 1.21 GB, free: 7.57 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 6.158e-05/0.2964, allocations: 15.98 kB / 1.21 GB, free: 7.555 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.238e-05/0.2964, allocations: 0 / 1.21 GB, free: 7.555 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005608/0.297, allocations: 339.3 kB / 1.21 GB, free: 7.223 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.72e-05/0.297, allocations: 11.91 kB / 1.21 GB, free: 7.211 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.495e-05/0.297, allocations: 4 kB / 1.21 GB, free: 7.207 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002988/0.2973, allocations: 143.6 kB / 1.21 GB, free: 7.066 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.2973, allocations: 0 / 1.21 GB, free: 7.066 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.265e-06/0.2973, allocations: 0 / 1.21 GB, free: 7.066 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.931e-06/0.2973, allocations: 0 / 1.21 GB, free: 7.066 MB / 0.9669 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.0004886/0.2978, allocations: 367.3 kB / 1.211 GB, free: 6.656 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.2979, allocations: 20.56 kB / 1.211 GB, free: 6.637 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.317e-05/0.2979, allocations: 0.9375 kB / 1.211 GB, free: 6.637 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001284/0.2981, allocations: 160.4 kB / 1.211 GB, free: 6.441 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.112e-05/0.2981, allocations: 4.375 kB / 1.211 GB, free: 6.438 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.466e-05/0.2981, allocations: 384 / 1.211 GB, free: 6.438 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000121/0.2983, allocations: 42.25 kB / 1.211 GB, free: 6.391 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.422e-05/0.2983, allocations: 4.125 kB / 1.211 GB, free: 6.387 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.426e-05/0.2983, allocations: 3.938 kB / 1.211 GB, free: 6.383 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.799e-06/0.2983, allocations: 0 / 1.211 GB, free: 6.383 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.561e-05/0.2984, allocations: 15.98 kB / 1.211 GB, free: 6.367 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001882/0.2985, allocations: 157.7 kB / 1.211 GB, free: 6.164 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002114/0.2988, allocations: 38.61 kB / 1.211 GB, free: 6.117 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.567e-05/0.2988, allocations: 16.86 kB / 1.211 GB, free: 6.098 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.282e-05/0.2988, allocations: 7.984 kB / 1.211 GB, free: 6.09 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.819e-05/0.2989, allocations: 42.58 kB / 1.211 GB, free: 6.039 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=4): time 1.192e-06/0.2989, allocations: 4 kB / 1.211 GB, free: 6.035 MB / 0.9669 GB Notification: Performance of matching and sorting (n=6): time 0.0006769/0.2996, allocations: 314.1 kB / 1.211 GB, free: 5.676 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.68e-05/0.2996, allocations: 51.41 kB / 1.211 GB, free: 5.613 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.083e-05/0.2997, allocations: 106.2 kB / 1.212 GB, free: 5.5 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.394e-05/0.2997, allocations: 29.64 kB / 1.212 GB, free: 5.465 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 3.366e-05/0.2998, allocations: 80.14 kB / 1.212 GB, free: 5.383 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.887e-05/0.2998, allocations: 15.81 kB / 1.212 GB, free: 5.367 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.805e-05/0.2998, allocations: 21.72 kB / 1.212 GB, free: 5.34 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 0.000109/0.2999, allocations: 322.8 kB / 1.212 GB, free: 5.016 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.457e-05/0.3, allocations: 4 kB / 1.212 GB, free: 5.012 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.404e-05/0.3, allocations: 15.98 kB / 1.212 GB, free: 4.996 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.076e-05/0.3001, allocations: 32.86 kB / 1.212 GB, free: 4.961 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-06/0.3001, allocations: 0 / 1.212 GB, free: 4.961 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001067/0.3002, allocations: 73.52 kB / 1.212 GB, free: 4.883 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.671e-05/0.3002, allocations: 7.938 kB / 1.212 GB, free: 4.875 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.3002, allocations: 0 / 1.212 GB, free: 4.875 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.5e-05/0.3002, allocations: 0 / 1.212 GB, free: 4.875 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.847e-05/0.3003, allocations: 16 kB / 1.212 GB, free: 4.859 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.37e-06/0.3003, allocations: 0 / 1.212 GB, free: 4.859 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.797e-05/0.3004, allocations: 0 / 1.212 GB, free: 4.859 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.298e-05/0.3004, allocations: 4 kB / 1.212 GB, free: 4.855 MB / 0.9669 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.406e-05/0.3005, allocations: 117.8 kB / 1.212 GB, free: 4.73 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.381e-05/0.3005, allocations: 3.938 kB / 1.212 GB, free: 4.727 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001611/0.3007, allocations: 77.59 kB / 1.212 GB, free: 4.641 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.3007, allocations: 0 / 1.212 GB, free: 4.641 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.3007, allocations: 4 kB / 1.212 GB, free: 4.637 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.407e-06/0.3007, allocations: 0 / 1.212 GB, free: 4.637 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003359/0.301, allocations: 315.3 kB / 1.213 GB, free: 4.27 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.301, allocations: 0 / 1.213 GB, free: 4.27 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.023e-05/0.3011, allocations: 12 kB / 1.213 GB, free: 4.258 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.356e-06/0.3011, allocations: 0 / 1.213 GB, free: 4.258 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.508e-06/0.3011, allocations: 192 / 1.213 GB, free: 4.258 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.504e-06/0.3012, allocations: 8 kB / 1.213 GB, free: 4.25 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.3012, allocations: 0 / 1.213 GB, free: 4.25 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002266/0.3014, allocations: 188.2 kB / 1.213 GB, free: 4.047 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 5.718e-05/0.3015, allocations: 81.14 kB / 1.213 GB, free: 3.949 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.884e-05/0.3015, allocations: 3.984 kB / 1.213 GB, free: 3.945 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.106e-05/0.3016, allocations: 4 kB / 1.213 GB, free: 3.941 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.046e-05/0.3016, allocations: 4 kB / 1.213 GB, free: 3.938 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.374e-06/0.3016, allocations: 4 kB / 1.213 GB, free: 3.934 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.373e-05/0.3016, allocations: 79.34 kB / 1.213 GB, free: 3.855 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.21e-07/0.3016, allocations: 0 / 1.213 GB, free: 3.855 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.0002597/0.3019, allocations: 31.92 kB / 1.213 GB, free: 3.824 MB / 0.9669 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.0001937/0.3021, allocations: 115.2 kB / 1.213 GB, free: 3.703 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001111/0.3022, allocations: 39.92 kB / 1.213 GB, free: 3.664 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.3022, allocations: 0 / 1.213 GB, free: 3.664 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 2.638e-05/0.3023, allocations: 15.94 kB / 1.213 GB, free: 3.648 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002252/0.3025, allocations: 10.38 kB / 1.213 GB, free: 3.641 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004326/0.3029, allocations: 212.4 kB / 1.213 GB, free: 3.402 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002518/0.3032, allocations: 0.6885 MB / 1.214 GB, free: 2.688 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 3.068e-05/0.3032, allocations: 8.375 kB / 1.214 GB, free: 2.68 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.306e-05/0.3033, allocations: 11.44 kB / 1.214 GB, free: 2.668 MB / 0.9669 GB Notification: Performance of SimCode: time 2.1e-07/0.3033, allocations: 0 / 1.214 GB, free: 2.668 MB / 0.9669 GB Notification: Performance of Templates: time 0.003038/0.3063, allocations: 0.6303 MB / 1.215 GB, free: 2.074 MB / 0.9669 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