Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.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_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp|der.dp.|der.dp_comp.|err_dp|err_der_dp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|dp|dp_comp|der.dp.|der.dp_comp.|err_dp|err_der_dp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00116/0.00116, allocations: 90.98 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.01276/0.01276, allocations: 171.4 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.552/1.552, 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.1-master/package.mo): time 2.881/2.881, allocations: 462.6 MB / 0.7364 GB, free: 260 kB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.0003566/0.0003566, allocations: 9.531 kB / 0.9028 GB, free: 36.7 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3316/0.332, allocations: 159.6 MB / 1.059 GB, free: 5.465 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.001635/0.3337, allocations: 1.195 MB / 1.06 GB, free: 4.258 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.001106/0.3348, allocations: 0.6462 MB / 1.06 GB, free: 3.609 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.074e-05/0.3348, allocations: 0 / 1.06 GB, free: 3.609 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.006e-05/0.3349, allocations: 3.984 kB / 1.06 GB, free: 3.605 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.566e-05/0.3349, allocations: 3.938 kB / 1.06 GB, free: 3.602 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005897/0.3355, allocations: 138.7 kB / 1.061 GB, free: 3.469 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 9.113e-05/0.3356, allocations: 47.84 kB / 1.061 GB, free: 3.422 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 5.375e-05/0.3357, allocations: 7.906 kB / 1.061 GB, free: 3.414 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 6.402e-05/0.3358, allocations: 23.92 kB / 1.061 GB, free: 3.391 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.446e-05/0.3358, allocations: 31.84 kB / 1.061 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.447e-05/0.3358, allocations: 0 / 1.061 GB, free: 3.359 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005695/0.3364, allocations: 347.3 kB / 1.061 GB, free: 3.02 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 2.191e-05/0.3365, allocations: 11.98 kB / 1.061 GB, free: 3.008 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 4.46e-05/0.3365, allocations: 49.56 kB / 1.061 GB, free: 2.953 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0003069/0.3368, allocations: 175.7 kB / 1.061 GB, free: 2.781 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.3368, allocations: 8 kB / 1.061 GB, free: 2.773 MB / 0.8106 GB Notification: Performance of FrontEnd: time 2.084e-06/0.3368, allocations: 0 / 1.061 GB, free: 2.773 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.718e-06/0.3369, allocations: 0 / 1.061 GB, free: 2.773 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0006062/0.3375, allocations: 391.4 kB / 1.062 GB, free: 2.34 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 4.572e-05/0.3375, allocations: 8.031 kB / 1.062 GB, free: 2.332 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.88e-05/0.3376, allocations: 4.938 kB / 1.062 GB, free: 2.328 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001179/0.3377, allocations: 164.3 kB / 1.062 GB, free: 2.129 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.818e-05/0.3377, allocations: 8.375 kB / 1.062 GB, free: 2.121 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.433e-05/0.3377, allocations: 8.375 kB / 1.062 GB, free: 2.113 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002649/0.338, allocations: 82.2 kB / 1.062 GB, free: 2.027 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.166e-05/0.338, allocations: 4.125 kB / 1.062 GB, free: 2.023 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.747e-05/0.3381, allocations: 7.938 kB / 1.062 GB, free: 2.016 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.3381, allocations: 0 / 1.062 GB, free: 2.016 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002571/0.3383, allocations: 63.95 kB / 1.062 GB, free: 1.953 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005837/0.3389, allocations: 332.6 kB / 1.062 GB, free: 1.578 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003039/0.3392, allocations: 94.45 kB / 1.062 GB, free: 1.477 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001235/0.3394, allocations: 32.84 kB / 1.062 GB, free: 1.441 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.969e-05/0.3394, allocations: 4 kB / 1.062 GB, free: 1.438 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.005e-05/0.3395, allocations: 38.5 kB / 1.062 GB, free: 1.391 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 1.062e-06/0.3395, allocations: 0 / 1.062 GB, free: 1.391 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.001676/0.3412, allocations: 0.6697 MB / 1.063 GB, free: 0.6289 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.279e-05/0.3412, allocations: 55.34 kB / 1.063 GB, free: 0.5625 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.651e-05/0.3413, allocations: 109.8 kB / 1.063 GB, free: 456 kB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.744e-05/0.3413, allocations: 25.7 kB / 1.063 GB, free: 424 kB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.285e-05/0.3414, allocations: 88.05 kB / 1.063 GB, free: 332 kB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.626e-05/0.3414, allocations: 39.55 kB / 1.063 GB, free: 292 kB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.772e-05/0.3414, allocations: 21.59 kB / 1.063 GB, free: 264 kB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 0.0001258/0.3416, allocations: 326.8 kB / 1.064 GB, free: 15.93 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001445/0.3417, allocations: 35.97 kB / 1.064 GB, free: 15.89 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001289/0.3418, allocations: 31.98 kB / 1.064 GB, free: 15.86 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002704/0.3421, allocations: 92.08 kB / 1.064 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-06/0.3421, allocations: 0 / 1.064 GB, free: 15.77 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003281/0.3425, allocations: 117.7 kB / 1.064 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.549e-05/0.3425, allocations: 4 kB / 1.064 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.191e-06/0.3425, allocations: 0 / 1.064 GB, free: 15.65 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.3425, allocations: 4 kB / 1.064 GB, free: 15.64 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001582/0.3427, allocations: 31.92 kB / 1.064 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.445e-06/0.3427, allocations: 3.984 kB / 1.064 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.163e-05/0.3428, allocations: 11.94 kB / 1.064 GB, free: 15.6 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.073e-05/0.3428, allocations: 4 kB / 1.064 GB, free: 15.59 MB / 0.8262 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 (13): * Single equations (assignments): 13 * 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 8.107e-05/0.3429, allocations: 115.4 kB / 1.064 GB, free: 15.47 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.104e-05/0.3429, allocations: 7.906 kB / 1.064 GB, free: 15.46 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003865/0.3433, allocations: 141.5 kB / 1.064 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.24e-06/0.3433, allocations: 4 kB / 1.064 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.91e-06/0.3433, allocations: 0 / 1.064 GB, free: 15.32 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.711e-06/0.3434, allocations: 3.938 kB / 1.064 GB, free: 15.31 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005859/0.3439, allocations: 386.5 kB / 1.065 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.344, allocations: 0 / 1.065 GB, free: 14.88 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000159/0.3441, allocations: 35.92 kB / 1.065 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.208e-06/0.3441, allocations: 3.938 kB / 1.065 GB, free: 14.84 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.519e-05/0.3442, allocations: 11.94 kB / 1.065 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.963e-06/0.3442, allocations: 0 / 1.065 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.3442, allocations: 0 / 1.065 GB, free: 14.83 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005642/0.3447, allocations: 255.4 kB / 1.065 GB, free: 14.56 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.35e-05/0.3448, allocations: 85.02 kB / 1.065 GB, free: 14.46 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.474e-05/0.3448, allocations: 16.02 kB / 1.065 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001218/0.345, allocations: 4 kB / 1.065 GB, free: 14.44 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.418e-05/0.345, allocations: 7.984 kB / 1.065 GB, free: 14.43 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.214e-05/0.345, allocations: 11.94 kB / 1.065 GB, free: 14.42 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 4.921e-05/0.3451, allocations: 87.39 kB / 1.065 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.435e-06/0.3451, allocations: 0 / 1.065 GB, free: 14.34 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0003099/0.3454, allocations: 47.86 kB / 1.065 GB, free: 14.29 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (dp_comp,der_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 (11): * Single equations (assignments): 11 * 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.0002493/0.3456, allocations: 139.2 kB / 1.065 GB, free: 14.14 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003766/0.346, allocations: 83.94 kB / 1.065 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 4.559e-06/0.346, allocations: 4 kB / 1.065 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001746/0.3462, allocations: 43.92 kB / 1.065 GB, free: 14.02 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003859/0.3466, allocations: 13.97 kB / 1.066 GB, free: 14 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001003/0.3476, allocations: 389.2 kB / 1.066 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003437/0.348, allocations: 0.6926 MB / 1.067 GB, free: 12.88 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.599e-05/0.3481, allocations: 8.672 kB / 1.067 GB, free: 12.87 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.478e-05/0.3481, allocations: 19.42 kB / 1.067 GB, free: 12.85 MB / 0.8262 GB Notification: Performance of SimCode: time 5.11e-07/0.3481, allocations: 0 / 1.067 GB, free: 12.85 MB / 0.8262 GB Notification: Performance of Templates: time 0.004286/0.3524, allocations: 1.097 MB / 1.068 GB, free: 11.79 MB / 0.8262 GB make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.makefile (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches