Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_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_9_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.001048/0.001048, allocations: 115.8 kB / 16.42 MB, free: 6.441 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.001038/0.001038, allocations: 189.6 kB / 17.35 MB, free: 5.738 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.296/1.296, allocations: 222.9 MB / 241 MB, free: 15.18 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.177/2.177, allocations: 390.3 MB / 0.6655 GB, free: 0.6523 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 68.08 kB / 0.9515 GB, free: 7.656 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6849/0.6862, allocations: 140.4 MB / 1.089 GB, free: 5.523 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002006/0.6883, allocations: 1.286 MB / 1.09 GB, free: 4.625 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0008383/0.6891, allocations: 0.6137 MB / 1.09 GB, free: 4.203 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.228e-05/0.6891, allocations: 0.8438 kB / 1.09 GB, free: 4.203 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.635e-05/0.6892, allocations: 4.641 kB / 1.09 GB, free: 4.199 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 3.576e-05/0.6892, allocations: 5.859 kB / 1.09 GB, free: 4.195 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004782/0.6897, allocations: 144.7 kB / 1.091 GB, free: 4.129 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 5.782e-05/0.6898, allocations: 24.91 kB / 1.091 GB, free: 4.117 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 3.598e-05/0.6898, allocations: 2.766 kB / 1.091 GB, free: 4.117 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 3.513e-05/0.6898, allocations: 9.109 kB / 1.091 GB, free: 4.113 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 4.799e-05/0.6899, allocations: 8.281 kB / 1.091 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.073e-05/0.6899, allocations: 1.156 kB / 1.091 GB, free: 4.109 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005473/0.6905, allocations: 350 kB / 1.091 GB, free: 4.004 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.179e-05/0.6905, allocations: 1.859 kB / 1.091 GB, free: 4.004 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 2.313e-05/0.6905, allocations: 9.078 kB / 1.091 GB, free: 4 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.0002676/0.6908, allocations: 142.2 kB / 1.091 GB, free: 3.961 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.6908, allocations: 7.938 kB / 1.091 GB, free: 3.953 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.323e-06/0.6908, allocations: 3.938 kB / 1.091 GB, free: 3.949 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.531e-06/0.6908, allocations: 1.094 kB / 1.091 GB, free: 3.949 MB / 0.8575 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.0003422/0.6912, allocations: 355.3 kB / 1.091 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.6912, allocations: 8.875 kB / 1.092 GB, free: 3.574 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.448e-05/0.6912, allocations: 7 kB / 1.092 GB, free: 3.57 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.835e-05/0.6913, allocations: 170.8 kB / 1.092 GB, free: 3.367 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.259e-05/0.6913, allocations: 2.016 kB / 1.092 GB, free: 3.367 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.214e-05/0.6914, allocations: 1.531 kB / 1.092 GB, free: 3.367 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.489e-05/0.6915, allocations: 44.95 kB / 1.092 GB, free: 3.328 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.003e-06/0.6915, allocations: 192 / 1.092 GB, free: 3.328 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.778e-06/0.6915, allocations: 5.125 kB / 1.092 GB, free: 3.324 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.6915, allocations: 0.7031 kB / 1.092 GB, free: 3.324 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.91e-05/0.6915, allocations: 8.156 kB / 1.092 GB, free: 3.324 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001347/0.6917, allocations: 166.1 kB / 1.092 GB, free: 3.121 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001705/0.6919, allocations: 41.02 kB / 1.092 GB, free: 3.094 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.107e-05/0.6919, allocations: 25.08 kB / 1.092 GB, free: 3.074 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 1.654e-05/0.6919, allocations: 1.625 kB / 1.092 GB, free: 3.074 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.5e-05/0.6919, allocations: 36.41 kB / 1.092 GB, free: 3.031 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=4): time 1.523e-06/0.692, allocations: 0 / 1.092 GB, free: 3.031 MB / 0.8575 GB Notification: Performance of matching and sorting (n=6): time 0.0005251/0.6925, allocations: 304.3 kB / 1.092 GB, free: 2.75 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.616e-05/0.6925, allocations: 56.75 kB / 1.092 GB, free: 2.684 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.516e-05/0.6926, allocations: 104 kB / 1.092 GB, free: 2.578 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 8.075e-06/0.6926, allocations: 26.55 kB / 1.092 GB, free: 2.547 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 1.497e-05/0.6926, allocations: 80.92 kB / 1.093 GB, free: 2.465 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 2.543e-05/0.6926, allocations: 24.36 kB / 1.093 GB, free: 2.445 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.034e-05/0.6927, allocations: 20.06 kB / 1.093 GB, free: 2.426 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 4.256e-05/0.6927, allocations: 313.5 kB / 1.093 GB, free: 2.113 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.53e-05/0.6927, allocations: 11.56 kB / 1.093 GB, free: 2.109 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.167e-05/0.6928, allocations: 12.19 kB / 1.093 GB, free: 2.105 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.362e-05/0.6928, allocations: 33.62 kB / 1.093 GB, free: 2.086 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.61e-07/0.6928, allocations: 0 / 1.093 GB, free: 2.086 MB / 0.8575 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.144e-05/0.6929, allocations: 68.5 kB / 1.093 GB, free: 2.039 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/0.6929, allocations: 9.469 kB / 1.093 GB, free: 2.035 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.037e-06/0.6929, allocations: 3.938 kB / 1.093 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.157e-05/0.693, allocations: 0.7812 kB / 1.093 GB, free: 2.031 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.364e-05/0.693, allocations: 15.56 kB / 1.093 GB, free: 2.027 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.801e-06/0.693, allocations: 5.578 kB / 1.093 GB, free: 2.023 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.749e-05/0.6931, allocations: 3.938 kB / 1.093 GB, free: 2.02 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.42e-06/0.6931, allocations: 2.094 kB / 1.093 GB, free: 2.02 MB / 0.8575 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 4.441e-05/0.6931, allocations: 116.7 kB / 1.093 GB, free: 1.898 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.256e-05/0.6931, allocations: 9.969 kB / 1.093 GB, free: 1.891 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001285/0.6933, allocations: 73.03 kB / 1.093 GB, free: 1.836 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.406e-06/0.6933, allocations: 0.5625 kB / 1.093 GB, free: 1.836 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.6933, allocations: 0.7969 kB / 1.093 GB, free: 1.836 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 4.229e-05/0.6933, allocations: 81.2 kB / 1.093 GB, free: 1.742 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.282e-05/0.6933, allocations: 5.875 kB / 1.093 GB, free: 1.738 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.856e-05/0.6934, allocations: 1.797 kB / 1.093 GB, free: 1.738 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.902e-05/0.6934, allocations: 3.641 kB / 1.093 GB, free: 1.738 MB / 0.8575 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0001335/0.6936, allocations: 144.8 kB / 1.093 GB, free: 1.617 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0001566/0.6937, allocations: 254.3 kB / 1.094 GB, free: 1.387 MB / 0.8575 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 3.54e-05/0.6938, allocations: 15.59 kB / 1.094 GB, free: 1.383 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 2.367e-05/0.6938, allocations: 83.45 kB / 1.094 GB, free: 1.305 MB / 0.8575 GB Notification: Performance of Backend: time 1.9e-07/0.6938, allocations: 0 / 1.094 GB, free: 1.305 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0004997/0.6943, allocations: 165.7 kB / 1.094 GB, free: 1.211 MB / 0.8575 GB Notification: Performance of SimCode: time 0.0003474/0.6947, allocations: 0.6267 MB / 1.095 GB, free: 0.5781 MB / 0.8575 GB Notification: Performance of Templates: time 0.003568/0.6982, allocations: 1.253 MB / 1.096 GB, free: 472 kB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.makefile (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & ./Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches