Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_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_11_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_11_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.00157/0.00157, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001621/0.001621, allocations: 194.5 kB / 16.25 MB, free: 6.629 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.404/1.404, allocations: 222.9 MB / 239.9 MB, free: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.82/2.82, allocations: 469.8 MB / 0.742 GB, free: 7.656 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001915/0.001915, allocations: 63.73 kB / 0.908 GB, free: 34.55 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.325/0.327, allocations: 159.2 MB / 1.063 GB, free: 14.64 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002881/0.3299, allocations: 1.535 MB / 1.065 GB, free: 13.08 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001196/0.3311, allocations: 0.6422 MB / 1.066 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.073e-05/0.3311, allocations: 0 / 1.066 GB, free: 12.44 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 4.206e-05/0.3312, allocations: 3.984 kB / 1.066 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 5.946e-05/0.3313, allocations: 7.938 kB / 1.066 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005827/0.3319, allocations: 141.1 kB / 1.066 GB, free: 12.29 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 8.319e-05/0.332, allocations: 47.84 kB / 1.066 GB, free: 12.24 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.384e-05/0.332, allocations: 4 kB / 1.066 GB, free: 12.24 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 6.622e-05/0.3321, allocations: 27.92 kB / 1.066 GB, free: 12.21 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 4.734e-05/0.3321, allocations: 27.84 kB / 1.066 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.477e-05/0.3322, allocations: 4 kB / 1.066 GB, free: 12.18 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004982/0.3327, allocations: 347.3 kB / 1.066 GB, free: 11.84 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.912e-05/0.3327, allocations: 15.98 kB / 1.066 GB, free: 11.82 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.221e-05/0.3327, allocations: 19.88 kB / 1.066 GB, free: 11.8 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0003094/0.333, allocations: 183.8 kB / 1.066 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.038e-06/0.3331, allocations: 3.938 kB / 1.066 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.332e-06/0.3331, allocations: 0 / 1.066 GB, free: 11.62 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 5.05e-06/0.3331, allocations: 4 kB / 1.066 GB, free: 11.62 MB / 0.8262 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.0006529/0.3337, allocations: 395.3 kB / 1.067 GB, free: 11.18 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.52e-05/0.3338, allocations: 8.031 kB / 1.067 GB, free: 11.17 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.831e-05/0.3338, allocations: 8.844 kB / 1.067 GB, free: 11.16 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001402/0.334, allocations: 168.4 kB / 1.067 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.538e-05/0.334, allocations: 4.375 kB / 1.067 GB, free: 10.96 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.851e-05/0.334, allocations: 8.375 kB / 1.067 GB, free: 10.95 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002435/0.3343, allocations: 78.2 kB / 1.067 GB, free: 10.87 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.147e-05/0.3343, allocations: 192 / 1.067 GB, free: 10.87 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.462e-05/0.3343, allocations: 7.938 kB / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.172e-06/0.3343, allocations: 0 / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002356/0.3346, allocations: 47.91 kB / 1.067 GB, free: 10.81 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006243/0.3352, allocations: 336.5 kB / 1.067 GB, free: 10.43 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003065/0.3355, allocations: 86.47 kB / 1.067 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001114/0.3356, allocations: 28.84 kB / 1.068 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 2.083e-05/0.3357, allocations: 0 / 1.068 GB, free: 10.31 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.156e-05/0.3357, allocations: 38.56 kB / 1.068 GB, free: 10.26 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=7): time 8.81e-07/0.3357, allocations: 0 / 1.068 GB, free: 10.26 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.001861/0.3376, allocations: 0.6423 MB / 1.068 GB, free: 9.527 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.311e-05/0.3377, allocations: 59.34 kB / 1.068 GB, free: 9.457 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.972e-05/0.3378, allocations: 105.8 kB / 1.068 GB, free: 9.344 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 2.096e-05/0.3378, allocations: 25.7 kB / 1.068 GB, free: 9.312 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 5.755e-05/0.3378, allocations: 96.05 kB / 1.068 GB, free: 9.215 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 4.668e-05/0.3379, allocations: 35.45 kB / 1.068 GB, free: 9.18 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.32e-05/0.338, allocations: 29.7 kB / 1.069 GB, free: 9.145 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001454/0.3381, allocations: 318.8 kB / 1.069 GB, free: 8.824 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001323/0.3382, allocations: 31.91 kB / 1.069 GB, free: 8.793 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000127/0.3384, allocations: 32.98 kB / 1.069 GB, free: 8.762 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002617/0.3387, allocations: 77.83 kB / 1.069 GB, free: 8.684 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.42e-07/0.3387, allocations: 0 / 1.069 GB, free: 8.684 MB / 0.8262 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003258/0.339, allocations: 115.1 kB / 1.069 GB, free: 8.566 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/0.339, allocations: 4.094 kB / 1.069 GB, free: 8.562 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.639e-06/0.339, allocations: 3.938 kB / 1.069 GB, free: 8.559 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.698e-05/0.3391, allocations: 4 kB / 1.069 GB, free: 8.555 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001505/0.3392, allocations: 35.91 kB / 1.069 GB, free: 8.52 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.08e-06/0.3392, allocations: 0 / 1.069 GB, free: 8.52 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.53e-05/0.3393, allocations: 11.94 kB / 1.069 GB, free: 8.508 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.213e-05/0.3393, allocations: 4 kB / 1.069 GB, free: 8.504 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 0.0001032/0.3394, allocations: 113.8 kB / 1.069 GB, free: 8.383 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.219e-05/0.3395, allocations: 7.984 kB / 1.069 GB, free: 8.375 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003936/0.3399, allocations: 129.5 kB / 1.069 GB, free: 8.242 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.3399, allocations: 0 / 1.069 GB, free: 8.242 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.3399, allocations: 0 / 1.069 GB, free: 8.242 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.3399, allocations: 7.938 kB / 1.069 GB, free: 8.234 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006293/0.3405, allocations: 382.4 kB / 1.07 GB, free: 7.805 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.3405, allocations: 0 / 1.07 GB, free: 7.805 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001618/0.3407, allocations: 27.92 kB / 1.07 GB, free: 7.777 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.305e-06/0.3407, allocations: 3.938 kB / 1.07 GB, free: 7.773 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.514e-05/0.3407, allocations: 3.938 kB / 1.07 GB, free: 7.77 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.3407, allocations: 4 kB / 1.07 GB, free: 7.766 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.3407, allocations: 0 / 1.07 GB, free: 7.766 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005448/0.3413, allocations: 243.5 kB / 1.07 GB, free: 7.512 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.303e-05/0.3414, allocations: 85 kB / 1.07 GB, free: 7.41 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.405e-05/0.3414, allocations: 11.97 kB / 1.07 GB, free: 7.398 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001196/0.3415, allocations: 4 kB / 1.07 GB, free: 7.395 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.003e-05/0.3415, allocations: 7.984 kB / 1.07 GB, free: 7.387 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.138e-05/0.3416, allocations: 12.06 kB / 1.07 GB, free: 7.375 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 5.801e-05/0.3416, allocations: 83.27 kB / 1.07 GB, free: 7.293 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.084e-06/0.3416, allocations: 0 / 1.07 GB, free: 7.293 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002953/0.3419, allocations: 47.88 kB / 1.07 GB, free: 7.246 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.0002342/0.3422, allocations: 131.1 kB / 1.07 GB, free: 7.109 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0003479/0.3425, allocations: 87.88 kB / 1.07 GB, free: 7.023 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.3425, allocations: 0 / 1.07 GB, free: 7.023 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001444/0.3427, allocations: 51.97 kB / 1.071 GB, free: 6.973 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003231/0.343, allocations: 10.8 kB / 1.071 GB, free: 6.965 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007349/0.3438, allocations: 349.3 kB / 1.071 GB, free: 6.598 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003639/0.3441, allocations: 0.6924 MB / 1.072 GB, free: 5.879 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.32e-05/0.3442, allocations: 8.656 kB / 1.072 GB, free: 5.871 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.583e-05/0.3443, allocations: 27.42 kB / 1.072 GB, free: 5.844 MB / 0.8262 GB Notification: Performance of SimCode: time 3.3e-07/0.3443, allocations: 0 / 1.072 GB, free: 5.844 MB / 0.8262 GB Notification: Performance of Templates: time 0.004187/0.3485, allocations: 1.125 MB / 1.073 GB, free: 4.758 MB / 0.8262 GB make -j1 -f Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.makefile (rm -f Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & ./Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2 -abortSlowSimulation -alarm=400 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches