Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.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_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp|der.dp.|der.dp_comp.|err_dp|err_der_dp",fileNamePrefix="Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp|der.dp.|der.dp_comp.|err_dp|err_der_dp",fileNamePrefix="Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.01005/0.01005, allocations: 97.05 kB / 15.73 MB, free: 5.547 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.00195/0.001951, allocations: 190 kB / 16.67 MB, free: 5.48 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.4/1.4, allocations: 222.9 MB / 240.3 MB, free: 15.15 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.494/2.494, allocations: 437 MB / 0.7105 GB, free: 4.438 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001174/0.001174, allocations: 63.91 kB / 1.019 GB, free: 9.453 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8478/0.849, allocations: 151.6 MB / 1.167 GB, free: 3.91 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.00259/0.8516, allocations: 1.483 MB / 1.168 GB, free: 2.418 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001066/0.8527, allocations: 0.6267 MB / 1.169 GB, free: 1.789 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.432e-05/0.8527, allocations: 0 / 1.169 GB, free: 1.789 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 3.08e-05/0.8528, allocations: 3.938 kB / 1.169 GB, free: 1.785 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 5.233e-05/0.8528, allocations: 7.875 kB / 1.169 GB, free: 1.777 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005669/0.8534, allocations: 164.6 kB / 1.169 GB, free: 1.617 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 9.671e-05/0.8535, allocations: 51.84 kB / 1.169 GB, free: 1.566 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 4.206e-05/0.8535, allocations: 7.984 kB / 1.169 GB, free: 1.559 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 5.961e-05/0.8536, allocations: 23.92 kB / 1.169 GB, free: 1.535 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 4.537e-05/0.8537, allocations: 23.91 kB / 1.169 GB, free: 1.512 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.692e-05/0.8537, allocations: 4 kB / 1.169 GB, free: 1.508 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005132/0.8542, allocations: 347.3 kB / 1.169 GB, free: 1.168 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.955e-05/0.8542, allocations: 15.94 kB / 1.169 GB, free: 1.152 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 4.498e-05/0.8543, allocations: 27.84 kB / 1.169 GB, free: 1.125 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.000278/0.8546, allocations: 176 kB / 1.169 GB, free: 0.957 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.8546, allocations: 4 kB / 1.169 GB, free: 0.9531 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.493e-06/0.8546, allocations: 0 / 1.169 GB, free: 0.9531 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 5.611e-06/0.8546, allocations: 0 / 1.169 GB, free: 0.9531 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006024/0.8552, allocations: 406.8 kB / 1.17 GB, free: 0.5039 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.254e-05/0.8553, allocations: 12.88 kB / 1.17 GB, free: 0.4922 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.303e-05/0.8553, allocations: 4.938 kB / 1.17 GB, free: 500 kB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001452/0.8555, allocations: 176.2 kB / 1.17 GB, free: 284 kB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.053e-05/0.8555, allocations: 8.375 kB / 1.17 GB, free: 276 kB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.168e-05/0.8555, allocations: 16.36 kB / 1.17 GB, free: 260 kB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000268/0.8558, allocations: 75.59 kB / 1.17 GB, free: 180 kB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.8558, allocations: 192 / 1.17 GB, free: 180 kB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.609e-05/0.8559, allocations: 3.938 kB / 1.17 GB, free: 176 kB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.8559, allocations: 4 kB / 1.17 GB, free: 172 kB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000233/0.8561, allocations: 47.95 kB / 1.17 GB, free: 124 kB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005648/0.8567, allocations: 324.7 kB / 1.171 GB, free: 15.75 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002928/0.857, allocations: 78.52 kB / 1.171 GB, free: 15.67 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001093/0.8571, allocations: 28.84 kB / 1.171 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 2.571e-05/0.8571, allocations: 160 / 1.171 GB, free: 15.64 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.273e-05/0.8572, allocations: 46.48 kB / 1.171 GB, free: 15.58 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=7): time 2.325e-06/0.8572, allocations: 0 / 1.171 GB, free: 15.58 MB / 0.9044 GB Notification: Performance of matching and sorting (n=11): time 0.001674/0.8589, allocations: 0.6422 MB / 1.171 GB, free: 14.85 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.845e-05/0.8589, allocations: 51.41 kB / 1.171 GB, free: 14.79 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.049e-05/0.859, allocations: 109.8 kB / 1.171 GB, free: 14.67 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.775e-05/0.859, allocations: 25.7 kB / 1.171 GB, free: 14.64 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 5.459e-05/0.8591, allocations: 92.03 kB / 1.172 GB, free: 14.54 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.574e-05/0.8591, allocations: 43.62 kB / 1.172 GB, free: 14.5 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.831e-05/0.8592, allocations: 33.7 kB / 1.172 GB, free: 14.46 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001167/0.8593, allocations: 322.8 kB / 1.172 GB, free: 14.14 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001324/0.8594, allocations: 36.09 kB / 1.172 GB, free: 14.1 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001215/0.8596, allocations: 31.97 kB / 1.172 GB, free: 14.07 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002335/0.8598, allocations: 69.72 kB / 1.172 GB, free: 14 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.02e-07/0.8598, allocations: 3.938 kB / 1.172 GB, free: 14 MB / 0.9044 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002965/0.8601, allocations: 111.6 kB / 1.172 GB, free: 13.88 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 2.853e-05/0.8602, allocations: 14.5 kB / 1.172 GB, free: 13.87 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.31e-06/0.8602, allocations: 0 / 1.172 GB, free: 13.87 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.235e-05/0.8602, allocations: 0 / 1.172 GB, free: 13.87 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001579/0.8604, allocations: 27.98 kB / 1.172 GB, free: 13.84 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.099e-06/0.8604, allocations: 0 / 1.172 GB, free: 13.84 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.171e-05/0.8604, allocations: 7.938 kB / 1.172 GB, free: 13.84 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.233e-05/0.8605, allocations: 7.984 kB / 1.172 GB, free: 13.83 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 (13): * Single equations (assignments): 13 * 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.68e-05/0.8605, allocations: 117.8 kB / 1.172 GB, free: 13.7 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.516e-05/0.8606, allocations: 11.95 kB / 1.172 GB, free: 13.69 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003487/0.8609, allocations: 125.8 kB / 1.172 GB, free: 13.56 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.8609, allocations: 3.938 kB / 1.172 GB, free: 13.55 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.861, allocations: 4 kB / 1.172 GB, free: 13.55 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.041e-06/0.861, allocations: 7.922 kB / 1.172 GB, free: 13.54 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005213/0.8615, allocations: 378.5 kB / 1.173 GB, free: 13.12 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.8615, allocations: 0 / 1.173 GB, free: 13.12 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001411/0.8617, allocations: 27.98 kB / 1.173 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.446e-06/0.8617, allocations: 4 kB / 1.173 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.252e-05/0.8617, allocations: 7.922 kB / 1.173 GB, free: 13.08 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.885e-06/0.8617, allocations: 3.984 kB / 1.173 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.8617, allocations: 0 / 1.173 GB, free: 13.07 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005008/0.8622, allocations: 251.3 kB / 1.173 GB, free: 12.81 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 3.735e-05/0.8623, allocations: 89.16 kB / 1.173 GB, free: 12.71 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.289e-05/0.8623, allocations: 7.938 kB / 1.173 GB, free: 12.7 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000121/0.8624, allocations: 7.984 kB / 1.173 GB, free: 12.69 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.024e-05/0.8624, allocations: 4.188 kB / 1.173 GB, free: 12.69 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.128e-06/0.8624, allocations: 4 kB / 1.173 GB, free: 12.68 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 3.859e-05/0.8625, allocations: 91.25 kB / 1.173 GB, free: 12.59 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8625, allocations: 0 / 1.173 GB, free: 12.59 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0002787/0.8628, allocations: 39.81 kB / 1.173 GB, free: 12.55 MB / 0.9044 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (dp_comp,der_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 (11): * Single equations (assignments): 11 * 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.0002377/0.863, allocations: 139.1 kB / 1.174 GB, free: 12.41 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0003289/0.8634, allocations: 91.83 kB / 1.174 GB, free: 12.32 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.8634, allocations: 0 / 1.174 GB, free: 12.32 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 0.0001368/0.8635, allocations: 47.91 kB / 1.174 GB, free: 12.27 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003233/0.8638, allocations: 8 kB / 1.174 GB, free: 12.27 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006218/0.8645, allocations: 313.3 kB / 1.174 GB, free: 11.93 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002527/0.8647, allocations: 0.6924 MB / 1.175 GB, free: 11.21 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 5.552e-05/0.8648, allocations: 20.59 kB / 1.175 GB, free: 11.2 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.895e-05/0.8648, allocations: 11.44 kB / 1.175 GB, free: 11.18 MB / 0.9044 GB Notification: Performance of SimCode: time 3.1e-07/0.8648, allocations: 0 / 1.175 GB, free: 11.18 MB / 0.9044 GB Notification: Performance of Templates: time 0.003564/0.8684, allocations: 1.141 MB / 1.176 GB, free: 10.08 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.makefile (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & ./Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches