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.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_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.00148/0.00148, allocations: 107 kB / 16.36 MB, free: 6.336 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.001633/0.001633, allocations: 195.3 kB / 17.29 MB, free: 5.883 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.317/1.317, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.465/2.465, allocations: 442.6 MB / 0.7165 GB, free: 14.66 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001265/0.001265, allocations: 67.97 kB / 0.8773 GB, free: 10.95 MB / 0.6544 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2653/0.2666, allocations: 153 MB / 1.027 GB, free: 2.031 MB / 0.795 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002476/0.2691, allocations: 1.491 MB / 1.028 GB, free: 0.5352 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.0009858/0.2701, allocations: 0.6343 MB / 1.029 GB, free: 15.9 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.645e-05/0.2702, allocations: 0 / 1.029 GB, free: 15.9 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 2.496e-05/0.2702, allocations: 3.938 kB / 1.029 GB, free: 15.89 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 4.748e-05/0.2703, allocations: 11.91 kB / 1.029 GB, free: 15.88 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005043/0.2708, allocations: 159.4 kB / 1.029 GB, free: 15.73 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 7.654e-05/0.2709, allocations: 51.84 kB / 1.029 GB, free: 15.68 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 3.857e-05/0.2709, allocations: 8 kB / 1.029 GB, free: 15.67 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 5.377e-05/0.271, allocations: 19.92 kB / 1.029 GB, free: 15.65 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 5.059e-05/0.271, allocations: 31.84 kB / 1.029 GB, free: 15.62 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.31e-05/0.271, allocations: 4 kB / 1.029 GB, free: 15.61 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004702/0.2715, allocations: 343.3 kB / 1.029 GB, free: 15.28 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.944e-05/0.2715, allocations: 15.97 kB / 1.029 GB, free: 15.26 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 3.192e-05/0.2716, allocations: 23.88 kB / 1.029 GB, free: 15.24 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.0002637/0.2718, allocations: 179.5 kB / 1.03 GB, free: 15.06 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.376e-06/0.2719, allocations: 0 / 1.03 GB, free: 15.06 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.362e-06/0.2719, allocations: 0 / 1.03 GB, free: 15.06 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 4.248e-06/0.2719, allocations: 4 kB / 1.03 GB, free: 15.06 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.0005304/0.2724, allocations: 399.3 kB / 1.03 GB, free: 14.62 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.096e-05/0.2724, allocations: 8.031 kB / 1.03 GB, free: 14.61 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.654e-05/0.2725, allocations: 4.938 kB / 1.03 GB, free: 14.61 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001054/0.2726, allocations: 172.2 kB / 1.03 GB, free: 14.4 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.268e-05/0.2726, allocations: 4.375 kB / 1.03 GB, free: 14.39 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.105e-05/0.2726, allocations: 8.375 kB / 1.03 GB, free: 14.39 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002121/0.2729, allocations: 86.16 kB / 1.03 GB, free: 14.3 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.127e-05/0.2729, allocations: 4.172 kB / 1.03 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.408e-05/0.2729, allocations: 7.938 kB / 1.03 GB, free: 14.29 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.2e-06/0.2729, allocations: 4 kB / 1.03 GB, free: 14.28 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002266/0.2731, allocations: 47.95 kB / 1.03 GB, free: 14.23 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004994/0.2737, allocations: 332.6 kB / 1.031 GB, free: 13.86 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002615/0.2739, allocations: 78.53 kB / 1.031 GB, free: 13.77 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001168/0.2741, allocations: 32.83 kB / 1.031 GB, free: 13.74 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 1.729e-05/0.2741, allocations: 0 / 1.031 GB, free: 13.74 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.175e-05/0.2741, allocations: 30.56 kB / 1.031 GB, free: 13.7 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=7): time 2.164e-06/0.2741, allocations: 7.938 kB / 1.031 GB, free: 13.69 MB / 0.8106 GB Notification: Performance of matching and sorting (n=11): time 0.001516/0.2756, allocations: 0.6462 MB / 1.031 GB, free: 12.95 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.018e-05/0.2757, allocations: 55.41 kB / 1.031 GB, free: 12.89 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.001e-05/0.2758, allocations: 101.8 kB / 1.032 GB, free: 12.78 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.926e-05/0.2758, allocations: 33.7 kB / 1.032 GB, free: 12.74 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 3.587e-05/0.2758, allocations: 84.05 kB / 1.032 GB, free: 12.65 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 3.249e-05/0.2759, allocations: 39.45 kB / 1.032 GB, free: 12.61 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.9e-05/0.2759, allocations: 25.81 kB / 1.032 GB, free: 12.58 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.373e-05/0.276, allocations: 322.8 kB / 1.032 GB, free: 12.26 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001269/0.2761, allocations: 35.97 kB / 1.032 GB, free: 12.22 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001141/0.2763, allocations: 31.98 kB / 1.032 GB, free: 12.19 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002306/0.2765, allocations: 72.33 kB / 1.032 GB, free: 12.12 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.92e-07/0.2765, allocations: 0 / 1.032 GB, free: 12.12 MB / 0.8106 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002975/0.2768, allocations: 121.6 kB / 1.032 GB, free: 12 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.252e-05/0.2768, allocations: 8 kB / 1.032 GB, free: 11.99 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.978e-06/0.2768, allocations: 4 kB / 1.032 GB, free: 11.98 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.04e-05/0.2769, allocations: 0 / 1.032 GB, free: 11.98 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00014/0.277, allocations: 23.98 kB / 1.032 GB, free: 11.96 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.862e-06/0.277, allocations: 3.984 kB / 1.032 GB, free: 11.96 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.457e-05/0.2771, allocations: 11.94 kB / 1.032 GB, free: 11.95 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.808e-06/0.2771, allocations: 4 kB / 1.032 GB, free: 11.94 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 (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.088e-05/0.2772, allocations: 121.7 kB / 1.032 GB, free: 11.81 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.988e-05/0.2772, allocations: 0 / 1.032 GB, free: 11.81 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000355/0.2776, allocations: 133.5 kB / 1.033 GB, free: 11.68 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.2776, allocations: 0 / 1.033 GB, free: 11.68 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.697e-06/0.2776, allocations: 0 / 1.033 GB, free: 11.68 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.459e-06/0.2776, allocations: 3.938 kB / 1.033 GB, free: 11.67 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005254/0.2781, allocations: 386.4 kB / 1.033 GB, free: 11.24 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.2782, allocations: 0 / 1.033 GB, free: 11.24 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001456/0.2783, allocations: 27.98 kB / 1.033 GB, free: 11.21 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.2783, allocations: 4.188 kB / 1.033 GB, free: 11.21 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.262e-05/0.2783, allocations: 7.938 kB / 1.033 GB, free: 11.2 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.2783, allocations: 0 / 1.033 GB, free: 11.2 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.2784, allocations: 0 / 1.033 GB, free: 11.2 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004787/0.2788, allocations: 255.6 kB / 1.033 GB, free: 10.93 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.608e-05/0.2789, allocations: 85.05 kB / 1.033 GB, free: 10.83 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.198e-05/0.2789, allocations: 7.984 kB / 1.033 GB, free: 10.82 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001228/0.279, allocations: 19.94 kB / 1.033 GB, free: 10.8 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.794e-05/0.2791, allocations: 7.984 kB / 1.033 GB, free: 10.8 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.849e-06/0.2791, allocations: 4 kB / 1.033 GB, free: 10.79 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.324e-05/0.2791, allocations: 87.22 kB / 1.033 GB, free: 10.71 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.8e-07/0.2791, allocations: 0 / 1.033 GB, free: 10.71 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002714/0.2794, allocations: 35.92 kB / 1.033 GB, free: 10.67 MB / 0.8106 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.0001815/0.2796, allocations: 135.2 kB / 1.034 GB, free: 10.53 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.00031/0.2799, allocations: 91.88 kB / 1.034 GB, free: 10.44 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 1.913e-06/0.2799, allocations: 0 / 1.034 GB, free: 10.44 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001342/0.2801, allocations: 43.92 kB / 1.034 GB, free: 10.39 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002432/0.2803, allocations: 13.41 kB / 1.034 GB, free: 10.38 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000584/0.2809, allocations: 305.9 kB / 1.034 GB, free: 10.05 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002386/0.2812, allocations: 0.6962 MB / 1.035 GB, free: 9.332 MB / 0.8106 GB Notification: Performance of simCode: alias equations: time 5.543e-05/0.2812, allocations: 20.64 kB / 1.035 GB, free: 9.312 MB / 0.8106 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.442e-05/0.2813, allocations: 11.44 kB / 1.035 GB, free: 9.301 MB / 0.8106 GB Notification: Performance of SimCode: time 2.71e-07/0.2813, allocations: 3.938 kB / 1.035 GB, free: 9.297 MB / 0.8106 GB Notification: Performance of Templates: time 0.003407/0.2847, allocations: 1.124 MB / 1.036 GB, free: 8.215 MB / 0.8106 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 -s gbode -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/jenkins1/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