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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.001062/0.001062, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.009595/0.009595, allocations: 170 kB / 16.26 MB, free: 6.613 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.635/1.635, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.941/2.941, allocations: 462.6 MB / 0.7364 GB, free: 15.62 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.0004032/0.0004036, allocations: 12.66 kB / 0.9027 GB, free: 36.41 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.432/0.4325, allocations: 159.6 MB / 1.059 GB, free: 5.031 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.001595/0.4341, allocations: 0.9984 MB / 1.06 GB, free: 4.02 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001146/0.4353, allocations: 0.6191 MB / 1.06 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.709e-05/0.4353, allocations: 0 / 1.06 GB, free: 3.398 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.143e-05/0.4353, allocations: 7.922 kB / 1.06 GB, free: 3.391 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.34e-05/0.4354, allocations: 4 kB / 1.06 GB, free: 3.387 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004964/0.4359, allocations: 119.6 kB / 1.06 GB, free: 3.27 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 5.755e-05/0.4359, allocations: 19.92 kB / 1.06 GB, free: 3.25 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 4.841e-05/0.436, allocations: 3.984 kB / 1.06 GB, free: 3.246 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 4.697e-05/0.4361, allocations: 7.938 kB / 1.06 GB, free: 3.238 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 6.74e-05/0.4361, allocations: 11.98 kB / 1.06 GB, free: 3.227 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.88e-05/0.4362, allocations: 0 / 1.06 GB, free: 3.227 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005452/0.4367, allocations: 355.2 kB / 1.061 GB, free: 2.879 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.368e-05/0.4367, allocations: 0 / 1.061 GB, free: 2.879 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.633e-05/0.4368, allocations: 33.64 kB / 1.061 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002755/0.4371, allocations: 140 kB / 1.061 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.4371, allocations: 0 / 1.061 GB, free: 2.703 MB / 0.8106 GB Notification: Performance of FrontEnd: time 3.055e-06/0.4371, allocations: 4 kB / 1.061 GB, free: 2.699 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 6.442e-06/0.4371, allocations: 0 / 1.061 GB, free: 2.699 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.0004729/0.4376, allocations: 363.3 kB / 1.061 GB, free: 2.293 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.297e-05/0.4376, allocations: 11.97 kB / 1.061 GB, free: 2.281 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.279e-05/0.4377, allocations: 0.9375 kB / 1.061 GB, free: 2.281 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001478/0.4378, allocations: 172.3 kB / 1.061 GB, free: 2.074 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.505e-05/0.4379, allocations: 384 / 1.061 GB, free: 2.074 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.784e-05/0.4379, allocations: 4.375 kB / 1.061 GB, free: 2.07 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001292/0.438, allocations: 42.19 kB / 1.061 GB, free: 2.023 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.613e-06/0.438, allocations: 4.188 kB / 1.061 GB, free: 2.02 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.492e-05/0.4381, allocations: 7.938 kB / 1.061 GB, free: 2.012 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.671e-06/0.4381, allocations: 0 / 1.061 GB, free: 2.012 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.485e-05/0.4381, allocations: 8 kB / 1.061 GB, free: 2.004 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002106/0.4383, allocations: 161.6 kB / 1.062 GB, free: 1.797 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000192/0.4385, allocations: 50.55 kB / 1.062 GB, free: 1.738 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.581e-05/0.4386, allocations: 16.94 kB / 1.062 GB, free: 1.719 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 2.431e-05/0.4386, allocations: 8 kB / 1.062 GB, free: 1.711 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.713e-05/0.4386, allocations: 30.56 kB / 1.062 GB, free: 1.672 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=4): time 1.292e-06/0.4387, allocations: 0 / 1.062 GB, free: 1.672 MB / 0.8106 GB Notification: Performance of matching and sorting (n=6): time 0.0006561/0.4393, allocations: 310.2 kB / 1.062 GB, free: 1.316 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.858e-05/0.4394, allocations: 51.41 kB / 1.062 GB, free: 1.254 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.526e-05/0.4394, allocations: 97.84 kB / 1.062 GB, free: 1.148 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.811e-05/0.4395, allocations: 37.7 kB / 1.062 GB, free: 1.105 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.713e-05/0.4395, allocations: 80.14 kB / 1.062 GB, free: 1.023 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 2.964e-05/0.4396, allocations: 15.72 kB / 1.062 GB, free: 1.008 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.742e-05/0.4396, allocations: 17.7 kB / 1.062 GB, free: 0.9844 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001635/0.4398, allocations: 314.8 kB / 1.063 GB, free: 0.668 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.5e-05/0.4398, allocations: 8 kB / 1.063 GB, free: 0.6602 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.108e-05/0.4398, allocations: 11.98 kB / 1.063 GB, free: 0.6484 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 6.001e-05/0.4399, allocations: 36.8 kB / 1.063 GB, free: 0.6094 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.11e-07/0.4399, allocations: 0 / 1.063 GB, free: 0.6094 MB / 0.8106 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.72e-05/0.44, allocations: 69.67 kB / 1.063 GB, free: 0.5352 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/0.44, allocations: 7.938 kB / 1.063 GB, free: 0.5273 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.334e-06/0.44, allocations: 4 kB / 1.063 GB, free: 0.5234 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.44, allocations: 0 / 1.063 GB, free: 0.5234 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.579e-05/0.4401, allocations: 15.88 kB / 1.063 GB, free: 0.5078 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.699e-06/0.4401, allocations: 240 / 1.063 GB, free: 0.5078 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.693e-05/0.4401, allocations: 0 / 1.063 GB, free: 0.5078 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.808e-06/0.4401, allocations: 11.98 kB / 1.063 GB, free: 0.4961 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 0.0001071/0.4402, allocations: 109.8 kB / 1.063 GB, free: 388 kB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.313e-05/0.4403, allocations: 15.84 kB / 1.063 GB, free: 372 kB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001336/0.4404, allocations: 69.64 kB / 1.063 GB, free: 296 kB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-06/0.4404, allocations: 0 / 1.063 GB, free: 296 kB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.044e-06/0.4404, allocations: 0 / 1.063 GB, free: 296 kB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/0.4404, allocations: 7.984 kB / 1.063 GB, free: 288 kB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003946/0.4408, allocations: 315.4 kB / 1.063 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.343e-06/0.4408, allocations: 0 / 1.063 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.71e-05/0.4409, allocations: 8 kB / 1.063 GB, free: 15.91 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/0.4409, allocations: 8.031 kB / 1.063 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.013e-06/0.4409, allocations: 0 / 1.063 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.4409, allocations: 0 / 1.063 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.4409, allocations: 0 / 1.063 GB, free: 15.9 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002457/0.4412, allocations: 184.5 kB / 1.063 GB, free: 15.7 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.906e-05/0.4413, allocations: 85.06 kB / 1.064 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.813e-05/0.4413, allocations: 8.547 kB / 1.064 GB, free: 15.59 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.04e-05/0.4414, allocations: 8.062 kB / 1.064 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.555e-05/0.4414, allocations: 4 kB / 1.064 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.208e-06/0.4414, allocations: 0 / 1.064 GB, free: 15.58 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.738e-05/0.4414, allocations: 87.25 kB / 1.064 GB, free: 15.49 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.1e-07/0.4415, allocations: 0 / 1.064 GB, free: 15.49 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002391/0.4417, allocations: 23.94 kB / 1.064 GB, free: 15.47 MB / 0.8262 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.0001956/0.4419, allocations: 119.2 kB / 1.064 GB, free: 15.34 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001031/0.442, allocations: 39.91 kB / 1.064 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.442, allocations: 4 kB / 1.064 GB, free: 15.3 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 3.441e-05/0.4421, allocations: 19.94 kB / 1.064 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002257/0.4423, allocations: 3.938 kB / 1.064 GB, free: 15.28 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004374/0.4427, allocations: 229.6 kB / 1.064 GB, free: 15.02 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003376/0.4431, allocations: 0.6809 MB / 1.065 GB, free: 14.31 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 2.912e-05/0.4431, allocations: 4 kB / 1.065 GB, free: 14.31 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.107e-05/0.4431, allocations: 11.44 kB / 1.065 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of SimCode: time 6.01e-07/0.4432, allocations: 0 / 1.065 GB, free: 14.3 MB / 0.8262 GB Notification: Performance of Templates: time 0.003083/0.4462, allocations: 0.6112 MB / 1.065 GB, free: 13.72 MB / 0.8262 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