Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 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_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp",fileNamePrefix="Buildings_10_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_10_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.008939/0.008939, allocations: 99.92 kB / 15.73 MB, free: 6.016 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.001682/0.001682, allocations: 187.6 kB / 16.67 MB, free: 5.93 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.401/1.401, allocations: 222.9 MB / 240.4 MB, free: 15.07 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.518/2.518, allocations: 437 MB / 0.7105 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001274/0.001274, allocations: 64.05 kB / 1.019 GB, free: 9.398 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8609/0.8622, 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_m_flow_DerivativeCheck): time 0.002433/0.8647, allocations: 1.292 MB / 1.168 GB, free: 2.52 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.001104/0.8658, allocations: 0.6134 MB / 1.168 GB, free: 1.906 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.497e-05/0.8659, allocations: 4 kB / 1.168 GB, free: 1.902 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 2.129e-05/0.8659, allocations: 0 / 1.168 GB, free: 1.902 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 4.112e-05/0.866, allocations: 3.938 kB / 1.168 GB, free: 1.898 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005838/0.8666, allocations: 152.4 kB / 1.169 GB, free: 1.75 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 9.857e-05/0.8667, allocations: 15.92 kB / 1.169 GB, free: 1.734 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 5.444e-05/0.8667, allocations: 3.938 kB / 1.169 GB, free: 1.73 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 5.235e-05/0.8668, allocations: 12 kB / 1.169 GB, free: 1.719 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 7.436e-05/0.8669, allocations: 11.91 kB / 1.169 GB, free: 1.707 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 1.853e-05/0.8669, allocations: 8 kB / 1.169 GB, free: 1.699 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005416/0.8674, allocations: 339.3 kB / 1.169 GB, free: 1.367 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.75e-05/0.8675, allocations: 8 kB / 1.169 GB, free: 1.359 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 2.611e-05/0.8675, allocations: 11.92 kB / 1.169 GB, free: 1.348 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.0002773/0.8678, allocations: 140.1 kB / 1.169 GB, free: 1.215 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 4.318e-06/0.8678, allocations: 0 / 1.169 GB, free: 1.215 MB / 0.8887 GB Notification: Performance of FrontEnd: time 2.004e-06/0.8678, allocations: 0 / 1.169 GB, free: 1.215 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.087e-05/0.8678, allocations: 0 / 1.169 GB, free: 1.215 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.0004995/0.8683, allocations: 368.7 kB / 1.169 GB, free: 0.8047 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.723e-05/0.8684, allocations: 8.922 kB / 1.169 GB, free: 0.7969 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.28e-05/0.8684, allocations: 8.938 kB / 1.17 GB, free: 0.7891 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001302/0.8685, allocations: 164.3 kB / 1.17 GB, free: 0.5898 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.078e-05/0.8686, allocations: 384 / 1.17 GB, free: 0.5898 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.507e-05/0.8686, allocations: 12.36 kB / 1.17 GB, free: 0.5781 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001053/0.8687, allocations: 34.2 kB / 1.17 GB, free: 0.5391 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.845e-06/0.8687, allocations: 4.188 kB / 1.17 GB, free: 0.5352 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.538e-05/0.8687, allocations: 7.938 kB / 1.17 GB, free: 0.5273 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.983e-06/0.8688, allocations: 3.984 kB / 1.17 GB, free: 0.5234 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.739e-05/0.8688, allocations: 4 kB / 1.17 GB, free: 0.5195 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001818/0.869, allocations: 161.7 kB / 1.17 GB, free: 320 kB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001882/0.8692, allocations: 46.59 kB / 1.17 GB, free: 264 kB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.765e-05/0.8692, allocations: 20.8 kB / 1.17 GB, free: 240 kB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 2.546e-05/0.8693, allocations: 4.078 kB / 1.17 GB, free: 236 kB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.219e-05/0.8693, allocations: 30.56 kB / 1.17 GB, free: 196 kB / 0.8887 GB Notification: Performance of pre-optimization done (n=4): time 1.082e-06/0.8693, allocations: 0 / 1.17 GB, free: 196 kB / 0.8887 GB Notification: Performance of matching and sorting (n=6): time 0.0006832/0.87, allocations: 322.2 kB / 1.17 GB, free: 15.82 MB / 0.9044 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.471e-05/0.87, allocations: 51.41 kB / 1.17 GB, free: 15.76 MB / 0.9044 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.216e-05/0.8701, allocations: 97.84 kB / 1.17 GB, free: 15.66 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 1.642e-05/0.8701, allocations: 29.7 kB / 1.17 GB, free: 15.62 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 3.793e-05/0.8702, allocations: 84.08 kB / 1.171 GB, free: 15.54 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 3.758e-05/0.8702, allocations: 19.8 kB / 1.171 GB, free: 15.52 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.593e-05/0.8703, allocations: 21.7 kB / 1.171 GB, free: 15.49 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001329/0.8704, allocations: 318.8 kB / 1.171 GB, free: 15.17 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.595e-05/0.8704, allocations: 12 kB / 1.171 GB, free: 15.16 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.198e-05/0.8705, allocations: 11.98 kB / 1.171 GB, free: 15.14 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.423e-05/0.8705, allocations: 36.8 kB / 1.171 GB, free: 15.11 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.8705, allocations: 0 / 1.171 GB, free: 15.11 MB / 0.9044 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001076/0.8707, allocations: 61.64 kB / 1.171 GB, free: 15.04 MB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 1.55e-05/0.8707, allocations: 15.88 kB / 1.171 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.388e-06/0.8707, allocations: 0 / 1.171 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.387e-05/0.8707, allocations: 0 / 1.171 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.366e-05/0.8708, allocations: 12 kB / 1.171 GB, free: 15.01 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.213e-06/0.8708, allocations: 8 kB / 1.171 GB, free: 15 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.719e-05/0.8708, allocations: 0 / 1.171 GB, free: 15 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.861e-06/0.8708, allocations: 0 / 1.171 GB, free: 15 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 8.872e-05/0.8709, allocations: 121.8 kB / 1.171 GB, free: 14.88 MB / 0.9044 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.241e-05/0.8709, allocations: 3.938 kB / 1.171 GB, free: 14.87 MB / 0.9044 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001436/0.8711, allocations: 65.66 kB / 1.171 GB, free: 14.79 MB / 0.9044 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.8711, allocations: 4 kB / 1.171 GB, free: 14.79 MB / 0.9044 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.8711, allocations: 0 / 1.171 GB, free: 14.79 MB / 0.9044 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.8711, allocations: 4 kB / 1.171 GB, free: 14.79 MB / 0.9044 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003506/0.8715, allocations: 323.5 kB / 1.172 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.8715, allocations: 0 / 1.172 GB, free: 14.41 MB / 0.9044 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.297e-05/0.8715, allocations: 12 kB / 1.172 GB, free: 14.4 MB / 0.9044 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.8715, allocations: 0 / 1.172 GB, free: 14.4 MB / 0.9044 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.853e-06/0.8716, allocations: 0 / 1.172 GB, free: 14.4 MB / 0.9044 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.393e-06/0.8716, allocations: 0 / 1.172 GB, free: 14.4 MB / 0.9044 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.916e-06/0.8716, allocations: 4 kB / 1.172 GB, free: 14.39 MB / 0.9044 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001903/0.8718, allocations: 188.2 kB / 1.172 GB, free: 14.19 MB / 0.9044 GB Notification: Performance of postOpt removeConstants (simulation): time 6.75e-05/0.8718, allocations: 89.12 kB / 1.172 GB, free: 14.09 MB / 0.9044 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.781e-05/0.8719, allocations: 0 / 1.172 GB, free: 14.09 MB / 0.9044 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001092/0.872, allocations: 0 / 1.172 GB, free: 14.09 MB / 0.9044 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.402e-05/0.872, allocations: 4.516 kB / 1.172 GB, free: 14.08 MB / 0.9044 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.444e-06/0.872, allocations: 0 / 1.172 GB, free: 14.08 MB / 0.9044 GB Notification: Performance of sorting global known variables: time 6.475e-05/0.8721, allocations: 87.27 kB / 1.172 GB, free: 14 MB / 0.9044 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8721, allocations: 64 / 1.172 GB, free: 14 MB / 0.9044 GB Notification: Performance of remove unused functions: time 0.0003739/0.8725, allocations: 31.86 kB / 1.172 GB, free: 13.96 MB / 0.9044 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.0002094/0.8727, allocations: 115.2 kB / 1.172 GB, free: 13.84 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 0.0001412/0.8729, allocations: 35.92 kB / 1.172 GB, free: 13.81 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 2.464e-06/0.8729, allocations: 4 kB / 1.172 GB, free: 13.8 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 5.319e-05/0.873, allocations: 15.94 kB / 1.172 GB, free: 13.79 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000314/0.8733, allocations: 15.88 kB / 1.172 GB, free: 13.77 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004378/0.8737, allocations: 196.2 kB / 1.172 GB, free: 13.55 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002565/0.874, allocations: 0.6807 MB / 1.173 GB, free: 12.85 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 3.004e-05/0.874, allocations: 8.25 kB / 1.173 GB, free: 12.84 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.733e-05/0.8741, allocations: 11.44 kB / 1.173 GB, free: 12.83 MB / 0.9044 GB Notification: Performance of SimCode: time 2.71e-07/0.8741, allocations: 0 / 1.173 GB, free: 12.83 MB / 0.9044 GB Notification: Performance of Templates: time 0.003185/0.8773, allocations: 0.6677 MB / 1.174 GB, free: 12.2 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.makefile (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & ./Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches