Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/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_latest_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_latest_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.001505/0.001505, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002024/0.002025, allocations: 193.2 kB / 16.14 MB, free: 6.652 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.416/1.416, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.843/2.843, allocations: 461.9 MB / 0.7342 GB, free: 15.03 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001255/0.001255, allocations: 66.44 kB / 0.8984 GB, free: 37.28 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4048/0.406, allocations: 157.4 MB / 1.052 GB, free: 8.828 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.003226/0.4093, allocations: 1.337 MB / 1.053 GB, free: 7.473 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001228/0.4106, allocations: 0.6345 MB / 1.054 GB, free: 6.836 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.385e-05/0.4107, allocations: 0 / 1.054 GB, free: 6.836 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.26e-05/0.4107, allocations: 0 / 1.054 GB, free: 6.836 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 6.028e-05/0.4108, allocations: 3.938 kB / 1.054 GB, free: 6.832 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007601/0.4116, allocations: 127.5 kB / 1.054 GB, free: 6.707 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.321e-05/0.4117, allocations: 27.92 kB / 1.054 GB, free: 6.68 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 5.853e-05/0.4117, allocations: 0 / 1.054 GB, free: 6.68 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 5.46e-05/0.4118, allocations: 7.938 kB / 1.054 GB, free: 6.672 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.947e-05/0.4119, allocations: 8 kB / 1.054 GB, free: 6.664 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.402e-05/0.4119, allocations: 0 / 1.054 GB, free: 6.664 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005208/0.4124, allocations: 355.2 kB / 1.055 GB, free: 6.316 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.565e-05/0.4124, allocations: 0 / 1.055 GB, free: 6.316 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.046e-05/0.4125, allocations: 7.938 kB / 1.055 GB, free: 6.309 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002893/0.4128, allocations: 140 kB / 1.055 GB, free: 6.172 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.4128, allocations: 0 / 1.055 GB, free: 6.172 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.132e-06/0.4128, allocations: 0 / 1.055 GB, free: 6.172 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.069e-06/0.4128, allocations: 4 kB / 1.055 GB, free: 6.168 MB / 0.8106 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.0004904/0.4133, allocations: 371.3 kB / 1.055 GB, free: 5.754 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.98e-05/0.4133, allocations: 8.031 kB / 1.055 GB, free: 5.746 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.555e-05/0.4134, allocations: 4.938 kB / 1.055 GB, free: 5.742 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001319/0.4135, allocations: 164.3 kB / 1.055 GB, free: 5.543 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.365e-05/0.4135, allocations: 384 / 1.055 GB, free: 5.543 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.581e-05/0.4136, allocations: 8.359 kB / 1.055 GB, free: 5.535 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001307/0.4137, allocations: 38.25 kB / 1.055 GB, free: 5.492 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.065e-05/0.4137, allocations: 4.188 kB / 1.055 GB, free: 5.488 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.341e-05/0.4137, allocations: 11.88 kB / 1.055 GB, free: 5.477 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.615e-06/0.4138, allocations: 3.984 kB / 1.055 GB, free: 5.473 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.319e-05/0.4138, allocations: 8 kB / 1.055 GB, free: 5.465 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002035/0.414, allocations: 157.7 kB / 1.055 GB, free: 5.262 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002008/0.4142, allocations: 38.61 kB / 1.055 GB, free: 5.215 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.682e-05/0.4143, allocations: 16.95 kB / 1.055 GB, free: 5.195 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.418e-05/0.4143, allocations: 11.98 kB / 1.055 GB, free: 5.184 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.247e-05/0.4143, allocations: 38.44 kB / 1.056 GB, free: 5.137 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=4): time 9.22e-07/0.4143, allocations: 0 / 1.056 GB, free: 5.137 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0006975/0.415, allocations: 306.2 kB / 1.056 GB, free: 4.785 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.142e-05/0.4151, allocations: 51.41 kB / 1.056 GB, free: 4.723 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.611e-05/0.4152, allocations: 101.8 kB / 1.056 GB, free: 4.613 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.549e-05/0.4152, allocations: 25.7 kB / 1.056 GB, free: 4.582 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.762e-05/0.4152, allocations: 84.14 kB / 1.056 GB, free: 4.496 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.107e-05/0.4153, allocations: 19.72 kB / 1.056 GB, free: 4.477 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.894e-05/0.4153, allocations: 21.7 kB / 1.056 GB, free: 4.449 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001121/0.4154, allocations: 314.8 kB / 1.056 GB, free: 4.133 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.63e-05/0.4155, allocations: 8 kB / 1.056 GB, free: 4.125 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.516e-05/0.4155, allocations: 15.98 kB / 1.056 GB, free: 4.109 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.917e-05/0.4156, allocations: 40.91 kB / 1.056 GB, free: 4.066 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.61e-07/0.4156, allocations: 0 / 1.056 GB, free: 4.066 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.565e-05/0.4157, allocations: 65.78 kB / 1.057 GB, free: 3.996 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.4157, allocations: 11.94 kB / 1.057 GB, free: 3.984 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.4157, allocations: 0 / 1.057 GB, free: 3.984 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.741e-05/0.4157, allocations: 0 / 1.057 GB, free: 3.984 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.73e-05/0.4158, allocations: 11.94 kB / 1.057 GB, free: 3.973 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.037e-05/0.4158, allocations: 8.062 kB / 1.057 GB, free: 3.965 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.711e-05/0.4158, allocations: 0 / 1.057 GB, free: 3.965 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.564e-06/0.4158, allocations: 4 kB / 1.057 GB, free: 3.961 MB / 0.8106 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 7.759e-05/0.4159, allocations: 115.4 kB / 1.057 GB, free: 3.84 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.409e-05/0.4159, allocations: 7.844 kB / 1.057 GB, free: 3.832 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001486/0.4161, allocations: 77.59 kB / 1.057 GB, free: 3.75 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.669e-06/0.4161, allocations: 4 kB / 1.057 GB, free: 3.746 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.4161, allocations: 0 / 1.057 GB, free: 3.746 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.4161, allocations: 0.5156 kB / 1.057 GB, free: 3.746 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003395/0.4165, allocations: 315.3 kB / 1.057 GB, free: 3.379 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.4165, allocations: 0 / 1.057 GB, free: 3.379 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.498e-05/0.4165, allocations: 12 kB / 1.057 GB, free: 3.367 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.235e-06/0.4165, allocations: 0 / 1.057 GB, free: 3.367 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.979e-06/0.4166, allocations: 4.031 kB / 1.057 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.313e-06/0.4166, allocations: 0 / 1.057 GB, free: 3.363 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.544e-06/0.4166, allocations: 4 kB / 1.057 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002025/0.4168, allocations: 184.2 kB / 1.057 GB, free: 3.16 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 6.275e-05/0.4169, allocations: 89.03 kB / 1.057 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.659e-05/0.4169, allocations: 192 / 1.057 GB, free: 3.055 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.597e-05/0.417, allocations: 8 kB / 1.057 GB, free: 3.047 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.971e-05/0.417, allocations: 8.062 kB / 1.057 GB, free: 3.039 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.708e-06/0.417, allocations: 3.938 kB / 1.057 GB, free: 3.035 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.229e-05/0.417, allocations: 83.27 kB / 1.057 GB, free: 2.953 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1e-07/0.4171, allocations: 0 / 1.057 GB, free: 2.953 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002516/0.4173, allocations: 27.94 kB / 1.057 GB, free: 2.926 MB / 0.8106 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (m_flow_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.0002203/0.4175, allocations: 119.2 kB / 1.058 GB, free: 2.801 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0001189/0.4177, allocations: 35.92 kB / 1.058 GB, free: 2.766 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.4177, allocations: 4 kB / 1.058 GB, free: 2.762 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 2.907e-05/0.4177, allocations: 16 kB / 1.058 GB, free: 2.746 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002282/0.4179, allocations: 7.938 kB / 1.058 GB, free: 2.738 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004767/0.4184, allocations: 209.9 kB / 1.058 GB, free: 2.504 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003031/0.4187, allocations: 0.6809 MB / 1.059 GB, free: 1.797 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 3.688e-05/0.4188, allocations: 4 kB / 1.059 GB, free: 1.793 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.5e-05/0.4188, allocations: 15.44 kB / 1.059 GB, free: 1.777 MB / 0.8106 GB Notification: Performance of SimCode: time 2.3e-07/0.4188, allocations: 0 / 1.059 GB, free: 1.777 MB / 0.8106 GB Notification: Performance of Templates: time 0.003294/0.4221, allocations: 0.6058 MB / 1.059 GB, free: 1.207 MB / 0.8106 GB make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.makefile (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches