Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 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_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp",fileNamePrefix="Buildings_latest_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_latest_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.005823/0.005823, allocations: 101.1 kB / 15.73 MB, free: 6.047 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.001344/0.001344, allocations: 201.5 kB / 16.68 MB, free: 5.973 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.405/1.405, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.676/2.676, allocations: 461.8 MB / 0.7348 GB, free: 14.67 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001603/0.001604, allocations: 55.91 kB / 1.054 GB, free: 7.203 MB / 0.8106 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3471/0.3487, allocations: 157.4 MB / 1.208 GB, free: 9.684 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.002249/0.351, allocations: 1.276 MB / 1.209 GB, free: 8.395 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.001078/0.3521, allocations: 0.6111 MB / 1.21 GB, free: 7.781 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.177e-05/0.3521, allocations: 0 / 1.21 GB, free: 7.781 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 1.75e-05/0.3522, allocations: 4 kB / 1.21 GB, free: 7.777 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 4.18e-05/0.3522, allocations: 15.86 kB / 1.21 GB, free: 7.762 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006368/0.3529, allocations: 142.4 kB / 1.21 GB, free: 7.625 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 5.879e-05/0.3529, allocations: 15.92 kB / 1.21 GB, free: 7.609 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 3.71e-05/0.353, allocations: 4 kB / 1.21 GB, free: 7.605 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 3.969e-05/0.353, allocations: 15.92 kB / 1.21 GB, free: 7.59 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 4.729e-05/0.3531, allocations: 7.984 kB / 1.21 GB, free: 7.582 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 1.042e-05/0.3531, allocations: 0 / 1.21 GB, free: 7.582 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005078/0.3536, allocations: 343.3 kB / 1.21 GB, free: 7.246 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 1.187e-05/0.3536, allocations: 11.92 kB / 1.21 GB, free: 7.234 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 2.509e-05/0.3537, allocations: 11.94 kB / 1.21 GB, free: 7.223 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002524/0.3539, allocations: 139.7 kB / 1.21 GB, free: 7.086 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.3539, allocations: 0 / 1.21 GB, free: 7.086 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.553e-06/0.3539, allocations: 0 / 1.21 GB, free: 7.086 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 9.558e-06/0.3539, allocations: 0 / 1.21 GB, free: 7.086 MB / 0.9669 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.0004665/0.3544, allocations: 367.3 kB / 1.211 GB, free: 6.676 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.3545, allocations: 12.62 kB / 1.211 GB, free: 6.664 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.708e-05/0.3545, allocations: 0.9375 kB / 1.211 GB, free: 6.664 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001125/0.3546, allocations: 164.4 kB / 1.211 GB, free: 6.465 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.318e-05/0.3546, allocations: 4.375 kB / 1.211 GB, free: 6.461 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.275e-05/0.3547, allocations: 4.359 kB / 1.211 GB, free: 6.457 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000109/0.3548, allocations: 42.2 kB / 1.211 GB, free: 6.41 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.666e-06/0.3548, allocations: 192 / 1.211 GB, free: 6.41 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.224e-05/0.3548, allocations: 3.938 kB / 1.211 GB, free: 6.406 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.3548, allocations: 0 / 1.211 GB, free: 6.406 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.432e-05/0.3549, allocations: 15.98 kB / 1.211 GB, free: 6.391 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001661/0.355, allocations: 153.7 kB / 1.211 GB, free: 6.191 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001785/0.3552, allocations: 46.61 kB / 1.211 GB, free: 6.137 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.467e-05/0.3553, allocations: 16.86 kB / 1.211 GB, free: 6.117 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 2.511e-05/0.3553, allocations: 12 kB / 1.211 GB, free: 6.105 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.03e-05/0.3553, allocations: 34.56 kB / 1.211 GB, free: 6.062 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=4): time 1.353e-06/0.3553, allocations: 0 / 1.211 GB, free: 6.062 MB / 0.9669 GB Notification: Performance of matching and sorting (n=6): time 0.0006072/0.356, allocations: 322.4 kB / 1.211 GB, free: 5.695 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.661e-05/0.356, allocations: 51.41 kB / 1.211 GB, free: 5.633 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.129e-05/0.3561, allocations: 97.84 kB / 1.212 GB, free: 5.527 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 1.361e-05/0.3561, allocations: 25.7 kB / 1.212 GB, free: 5.496 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 2.847e-05/0.3561, allocations: 84.14 kB / 1.212 GB, free: 5.41 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 2.586e-05/0.3562, allocations: 11.81 kB / 1.212 GB, free: 5.398 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.043e-05/0.3562, allocations: 21.7 kB / 1.212 GB, free: 5.371 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 9.415e-05/0.3563, allocations: 322.8 kB / 1.212 GB, free: 5.047 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.671e-05/0.3563, allocations: 12 kB / 1.212 GB, free: 5.035 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.091e-05/0.3564, allocations: 11.98 kB / 1.212 GB, free: 5.023 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.714e-05/0.3564, allocations: 36.8 kB / 1.212 GB, free: 4.984 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.11e-07/0.3564, allocations: 0 / 1.212 GB, free: 4.984 MB / 0.9669 GB Notification: Performance of matching and sorting (n=7) (initialization): time 9.958e-05/0.3565, allocations: 69.58 kB / 1.212 GB, free: 4.91 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/0.3566, allocations: 7.938 kB / 1.212 GB, free: 4.902 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.409e-06/0.3566, allocations: 0 / 1.212 GB, free: 4.902 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.213e-05/0.3566, allocations: 0 / 1.212 GB, free: 4.902 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.248e-05/0.3566, allocations: 12 kB / 1.212 GB, free: 4.891 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.839e-06/0.3566, allocations: 3.938 kB / 1.212 GB, free: 4.887 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.896e-05/0.3567, allocations: 8 kB / 1.212 GB, free: 4.879 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.25e-06/0.3567, allocations: 0 / 1.212 GB, free: 4.879 MB / 0.9669 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.575e-05/0.3567, allocations: 117.8 kB / 1.212 GB, free: 4.754 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.184e-05/0.3568, allocations: 3.938 kB / 1.212 GB, free: 4.75 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000136/0.3569, allocations: 73.66 kB / 1.212 GB, free: 4.668 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.425e-06/0.3569, allocations: 0 / 1.212 GB, free: 4.668 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.296e-06/0.3569, allocations: 0 / 1.212 GB, free: 4.668 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.635e-06/0.3569, allocations: 0 / 1.212 GB, free: 4.668 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003013/0.3572, allocations: 323.5 kB / 1.213 GB, free: 4.293 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.433e-06/0.3572, allocations: 0 / 1.213 GB, free: 4.293 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.418e-05/0.3573, allocations: 12 kB / 1.213 GB, free: 4.281 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.3573, allocations: 0 / 1.213 GB, free: 4.281 MB / 0.9669 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.945e-06/0.3573, allocations: 0 / 1.213 GB, free: 4.281 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.3573, allocations: 4 kB / 1.213 GB, free: 4.277 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.3574, allocations: 0 / 1.213 GB, free: 4.277 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001824/0.3575, allocations: 188.2 kB / 1.213 GB, free: 4.074 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 4.713e-05/0.3576, allocations: 81.14 kB / 1.213 GB, free: 3.977 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.445e-05/0.3576, allocations: 7.984 kB / 1.213 GB, free: 3.969 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.703e-05/0.3577, allocations: 0 / 1.213 GB, free: 3.969 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.306e-05/0.3577, allocations: 4 kB / 1.213 GB, free: 3.965 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.592e-06/0.3577, allocations: 4 kB / 1.213 GB, free: 3.961 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 3.07e-05/0.3578, allocations: 75.28 kB / 1.213 GB, free: 3.887 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3578, allocations: 0 / 1.213 GB, free: 3.887 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.000246/0.358, allocations: 31.92 kB / 1.213 GB, free: 3.855 MB / 0.9669 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.000169/0.3582, allocations: 119.3 kB / 1.213 GB, free: 3.73 MB / 0.9669 GB Notification: Performance of simCode: created initialization part: time 0.0001095/0.3583, allocations: 39.92 kB / 1.213 GB, free: 3.691 MB / 0.9669 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3583, allocations: 3.938 kB / 1.213 GB, free: 3.688 MB / 0.9669 GB Notification: Performance of simCode: created simulation system equations: time 2.809e-05/0.3583, allocations: 19.94 kB / 1.213 GB, free: 3.668 MB / 0.9669 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002116/0.3586, allocations: 3.938 kB / 1.213 GB, free: 3.664 MB / 0.9669 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003741/0.3589, allocations: 216.5 kB / 1.213 GB, free: 3.422 MB / 0.9669 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002188/0.3592, allocations: 0.6807 MB / 1.214 GB, free: 2.715 MB / 0.9669 GB Notification: Performance of simCode: alias equations: time 2.916e-05/0.3592, allocations: 8.391 kB / 1.214 GB, free: 2.707 MB / 0.9669 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.065e-05/0.3592, allocations: 11.44 kB / 1.214 GB, free: 2.695 MB / 0.9669 GB Notification: Performance of SimCode: time 2.31e-07/0.3592, allocations: 3.938 kB / 1.214 GB, free: 2.691 MB / 0.9669 GB Notification: Performance of Templates: time 0.002855/0.3621, allocations: 0.665 MB / 1.215 GB, free: 2.062 MB / 0.9669 GB make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.makefile (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches