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.001327/0.001327, allocations: 103.4 kB / 15.34 MB, free: 0.5039 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.001553/0.001554, allocations: 191.9 kB / 16.25 MB, free: 6.633 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.397/1.397, allocations: 222.9 MB / 239.9 MB, free: 4.512 MB / 190.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.575/2.575, allocations: 437 MB / 0.71 GB, free: 5.273 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001258/0.001258, allocations: 63.91 kB / 0.8687 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5985/0.5998, allocations: 151.6 MB / 1.017 GB, free: 2.691 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002377/0.6022, allocations: 1.353 MB / 1.018 GB, free: 1.328 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0009959/0.6032, allocations: 0.6072 MB / 1.019 GB, free: 0.7188 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.79e-05/0.6033, allocations: 0 / 1.019 GB, free: 0.7188 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.984e-05/0.6033, allocations: 0 / 1.019 GB, free: 0.7188 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 3.406e-05/0.6034, allocations: 0 / 1.019 GB, free: 0.7188 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004788/0.6038, allocations: 132.7 kB / 1.019 GB, free: 0.5898 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 5.345e-05/0.6039, allocations: 27.84 kB / 1.019 GB, free: 0.5625 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 3.83e-05/0.6039, allocations: 0 / 1.019 GB, free: 0.5625 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 3.528e-05/0.604, allocations: 15.94 kB / 1.019 GB, free: 0.5469 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 3.985e-05/0.604, allocations: 4 kB / 1.019 GB, free: 0.543 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.027e-05/0.604, allocations: 0 / 1.019 GB, free: 0.543 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004182/0.6045, allocations: 351.3 kB / 1.019 GB, free: 204 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.275e-05/0.6045, allocations: 7.938 kB / 1.019 GB, free: 196 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 2.097e-05/0.6045, allocations: 4 kB / 1.019 GB, free: 192 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0002342/0.6048, allocations: 149.7 kB / 1.019 GB, free: 44 kB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.6048, allocations: 0 / 1.019 GB, free: 44 kB / 0.7637 GB Notification: Performance of FrontEnd: time 1.363e-06/0.6048, allocations: 0 / 1.019 GB, free: 44 kB / 0.7637 GB Notification: Performance of Transformations before backend: time 6.713e-06/0.6048, allocations: 0 / 1.019 GB, free: 44 kB / 0.7637 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.0003955/0.6052, allocations: 371.3 kB / 1.02 GB, free: 15.63 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.6052, allocations: 8.031 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.303e-05/0.6053, allocations: 4.938 kB / 1.02 GB, free: 15.62 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001014/0.6054, allocations: 164.3 kB / 1.02 GB, free: 15.42 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.113e-05/0.6054, allocations: 4.359 kB / 1.02 GB, free: 15.41 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.545e-05/0.6054, allocations: 12.28 kB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.669e-05/0.6055, allocations: 38.27 kB / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.681e-06/0.6055, allocations: 192 / 1.02 GB, free: 15.36 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.189e-05/0.6055, allocations: 7.922 kB / 1.02 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.068e-06/0.6056, allocations: 4 kB / 1.02 GB, free: 15.35 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.385e-05/0.6056, allocations: 8 kB / 1.02 GB, free: 15.34 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000153/0.6058, allocations: 161.7 kB / 1.02 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001617/0.6059, allocations: 46.53 kB / 1.02 GB, free: 15.08 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.306e-05/0.606, allocations: 20.94 kB / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 1.763e-05/0.606, allocations: 0 / 1.02 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.154e-05/0.606, allocations: 34.56 kB / 1.02 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 8.62e-07/0.606, allocations: 0 / 1.02 GB, free: 15.01 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.0006007/0.6066, allocations: 306.2 kB / 1.02 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.278e-05/0.6067, allocations: 55.41 kB / 1.021 GB, free: 14.59 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.617e-05/0.6067, allocations: 101.8 kB / 1.021 GB, free: 14.48 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.857e-05/0.6068, allocations: 29.7 kB / 1.021 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.837e-05/0.6068, allocations: 84.08 kB / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.771e-05/0.6068, allocations: 19.66 kB / 1.021 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.585e-05/0.6069, allocations: 25.7 kB / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.171e-05/0.607, allocations: 314.8 kB / 1.021 GB, free: 14 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.886e-05/0.607, allocations: 12 kB / 1.021 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.234e-05/0.607, allocations: 11.98 kB / 1.021 GB, free: 13.97 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.327e-05/0.6071, allocations: 32.84 kB / 1.021 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.02e-07/0.6071, allocations: 0 / 1.021 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7) (initialization): time 8.988e-05/0.6072, allocations: 61.69 kB / 1.021 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.529e-05/0.6072, allocations: 7.938 kB / 1.021 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.09e-06/0.6072, allocations: 8 kB / 1.021 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.147e-05/0.6072, allocations: 3.938 kB / 1.021 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.008e-05/0.6073, allocations: 12 kB / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.6073, allocations: 0 / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.766e-05/0.6073, allocations: 3.938 kB / 1.021 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.384e-06/0.6073, allocations: 7.984 kB / 1.021 GB, free: 13.83 MB / 0.7794 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.848e-05/0.6074, allocations: 110.4 kB / 1.021 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.515e-05/0.6074, allocations: 11.84 kB / 1.021 GB, free: 13.7 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000127/0.6076, allocations: 69.59 kB / 1.021 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.854e-06/0.6076, allocations: 4 kB / 1.021 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.034e-06/0.6076, allocations: 4 kB / 1.021 GB, free: 13.62 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.002e-06/0.6076, allocations: 3.984 kB / 1.021 GB, free: 13.61 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003326/0.6079, allocations: 307.4 kB / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.608, allocations: 192 / 1.022 GB, free: 13.25 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.275e-05/0.608, allocations: 15.94 kB / 1.022 GB, free: 13.24 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.927e-06/0.608, allocations: 4 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.604e-06/0.6081, allocations: 0 / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.6081, allocations: 0 / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.6081, allocations: 4.031 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000178/0.6082, allocations: 180.3 kB / 1.022 GB, free: 13.04 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.591e-05/0.6083, allocations: 89 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.458e-05/0.6083, allocations: 4.031 kB / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.195e-05/0.6084, allocations: 0 / 1.022 GB, free: 12.93 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.77e-05/0.6084, allocations: 8.453 kB / 1.022 GB, free: 12.92 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.16e-06/0.6084, allocations: 4.062 kB / 1.022 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.497e-05/0.6085, allocations: 87.27 kB / 1.022 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.6085, allocations: 0 / 1.022 GB, free: 12.83 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002504/0.6087, allocations: 23.94 kB / 1.022 GB, free: 12.8 MB / 0.7794 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.0002006/0.6089, allocations: 123.3 kB / 1.022 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0001258/0.6091, allocations: 35.92 kB / 1.022 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.6091, allocations: 0 / 1.022 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 3.003e-05/0.6091, allocations: 16.06 kB / 1.022 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000231/0.6094, allocations: 15.94 kB / 1.022 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004347/0.6098, allocations: 208.5 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002752/0.6101, allocations: 0.6807 MB / 1.023 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.299e-05/0.6101, allocations: 4.391 kB / 1.023 GB, free: 11.66 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.152e-05/0.6101, allocations: 15.42 kB / 1.023 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of SimCode: time 1.753e-06/0.6102, allocations: 0 / 1.023 GB, free: 11.65 MB / 0.7794 GB Notification: Performance of Templates: time 0.003089/0.6132, allocations: 0.6553 MB / 1.024 GB, free: 11.03 MB / 0.7794 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