Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.00162/0.00162, allocations: 111.9 kB / 16.42 MB, free: 6.508 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.001753/0.001753, allocations: 192.4 kB / 17.35 MB, free: 5.754 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.329/1.329, allocations: 222.9 MB / 241.1 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.435/2.435, allocations: 437 MB / 0.7112 GB, free: 4.379 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001268/0.001268, allocations: 67.89 kB / 1.019 GB, free: 9.379 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6717/0.6729, allocations: 151.6 MB / 1.167 GB, free: 3.82 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.002035/0.675, allocations: 1.277 MB / 1.169 GB, free: 2.535 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0009296/0.676, allocations: 0.6173 MB / 1.169 GB, free: 1.918 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.052e-05/0.676, allocations: 0 / 1.169 GB, free: 1.918 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 1.402e-05/0.676, allocations: 0 / 1.169 GB, free: 1.918 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 4.195e-05/0.6761, allocations: 7.938 kB / 1.169 GB, free: 1.91 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004788/0.6765, allocations: 148.9 kB / 1.169 GB, free: 1.766 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 5e-05/0.6766, allocations: 19.92 kB / 1.169 GB, free: 1.746 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 3.215e-05/0.6766, allocations: 0 / 1.169 GB, free: 1.746 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 3.375e-05/0.6767, allocations: 11.94 kB / 1.169 GB, free: 1.734 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 4.306e-05/0.6767, allocations: 11.97 kB / 1.169 GB, free: 1.723 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 9.698e-06/0.6767, allocations: 0 / 1.169 GB, free: 1.723 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004568/0.6772, allocations: 343.3 kB / 1.17 GB, free: 1.387 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 8.847e-06/0.6772, allocations: 4 kB / 1.17 GB, free: 1.383 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.672e-05/0.6773, allocations: 15.92 kB / 1.17 GB, free: 1.367 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002361/0.6775, allocations: 144.1 kB / 1.17 GB, free: 1.23 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.055e-06/0.6775, allocations: 4 kB / 1.17 GB, free: 1.227 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.202e-06/0.6775, allocations: 0 / 1.17 GB, free: 1.227 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 3.657e-06/0.6775, allocations: 0 / 1.17 GB, free: 1.227 MB / 0.8887 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.0003602/0.6779, allocations: 363.1 kB / 1.17 GB, free: 0.8203 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.364e-05/0.6779, allocations: 8.922 kB / 1.17 GB, free: 0.8125 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.071e-05/0.678, allocations: 0.9375 kB / 1.17 GB, free: 0.8125 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.944e-05/0.6781, allocations: 176.3 kB / 1.17 GB, free: 0.6016 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.298e-06/0.6781, allocations: 4.375 kB / 1.17 GB, free: 0.5977 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.645e-05/0.6781, allocations: 384 / 1.17 GB, free: 0.5977 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.37e-05/0.6782, allocations: 46.23 kB / 1.17 GB, free: 0.5469 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.416e-06/0.6782, allocations: 4.125 kB / 1.17 GB, free: 0.543 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.107e-05/0.6782, allocations: 7.875 kB / 1.17 GB, free: 0.5352 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.767e-06/0.6782, allocations: 0 / 1.17 GB, free: 0.5352 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.708e-05/0.6783, allocations: 12 kB / 1.17 GB, free: 0.5234 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001446/0.6784, allocations: 153.7 kB / 1.171 GB, free: 332 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001754/0.6786, allocations: 46.61 kB / 1.171 GB, free: 276 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.192e-05/0.6787, allocations: 20.94 kB / 1.171 GB, free: 252 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 1.84e-05/0.6787, allocations: 4 kB / 1.171 GB, free: 248 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.999e-05/0.6787, allocations: 34.5 kB / 1.171 GB, free: 204 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=4): time 1.062e-06/0.6787, allocations: 0 / 1.171 GB, free: 204 kB / 0.8887 GB Notification: Performance of matching and sorting (n=6): time 0.0005637/0.6793, allocations: 310.2 kB / 1.171 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.267e-05/0.6793, allocations: 55.41 kB / 1.171 GB, free: 15.78 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.632e-05/0.6794, allocations: 97.84 kB / 1.171 GB, free: 15.67 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.481e-05/0.6794, allocations: 29.7 kB / 1.171 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 2.683e-05/0.6794, allocations: 84.14 kB / 1.171 GB, free: 15.55 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 2.275e-05/0.6795, allocations: 15.8 kB / 1.171 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.619e-05/0.6795, allocations: 25.7 kB / 1.171 GB, free: 15.5 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 8.967e-05/0.6796, allocations: 314.8 kB / 1.172 GB, free: 15.19 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.561e-05/0.6796, allocations: 12 kB / 1.172 GB, free: 15.18 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.053e-05/0.6797, allocations: 11.98 kB / 1.172 GB, free: 15.16 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.468e-05/0.6797, allocations: 32.86 kB / 1.172 GB, free: 15.13 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.81e-07/0.6797, allocations: 0 / 1.172 GB, free: 15.13 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.711e-05/0.6798, allocations: 69.58 kB / 1.172 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.213e-05/0.6799, allocations: 7.938 kB / 1.172 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.557e-06/0.6799, allocations: 0 / 1.172 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.628e-06/0.6799, allocations: 0 / 1.172 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.005e-05/0.6799, allocations: 12.06 kB / 1.172 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/0.6799, allocations: 4 kB / 1.172 GB, free: 15.03 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.002e-05/0.68, allocations: 7.984 kB / 1.172 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.543e-06/0.68, allocations: 8 kB / 1.172 GB, free: 15.02 MB / 0.9044 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 6.092e-05/0.68, allocations: 105.8 kB / 1.172 GB, free: 14.9 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.462e-05/0.6801, allocations: 7.938 kB / 1.172 GB, free: 14.89 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001302/0.6802, allocations: 77.81 kB / 1.172 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-06/0.6802, allocations: 0.5156 kB / 1.172 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.455e-06/0.6802, allocations: 3.984 kB / 1.172 GB, free: 14.8 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 5.458e-05/0.6803, allocations: 85.06 kB / 1.172 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.336e-05/0.6803, allocations: 3.938 kB / 1.172 GB, free: 14.7 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.746e-05/0.6803, allocations: 7.938 kB / 1.172 GB, free: 14.69 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.781e-05/0.6804, allocations: 15.97 kB / 1.172 GB, free: 14.67 MB / 0.9044 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001433/0.6805, allocations: 140.9 kB / 1.172 GB, free: 14.53 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001904/0.6807, allocations: 250.8 kB / 1.172 GB, free: 14.27 MB / 0.9044 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 3.258e-05/0.6808, allocations: 16.02 kB / 1.172 GB, free: 14.25 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 2.848e-05/0.6808, allocations: 79.28 kB / 1.172 GB, free: 14.17 MB / 0.9044 GB Notification: Performance of Backend: time 3.51e-07/0.6808, allocations: 4.062 kB / 1.172 GB, free: 14.17 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0004771/0.6813, allocations: 159.2 kB / 1.173 GB, free: 14.01 MB / 0.9044 GB Notification: Performance of SimCode: time 0.0004389/0.6817, allocations: 0.628 MB / 1.173 GB, free: 13.34 MB / 0.9044 GB Notification: Performance of Templates: time 0.003379/0.6851, allocations: 1.243 MB / 1.174 GB, free: 12.13 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.makefile (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & ./Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches