Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.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_9_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_9_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.001392/0.001393, allocations: 106.3 kB / 16.36 MB, free: 5.875 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.001492/0.001492, allocations: 199.2 kB / 17.3 MB, free: 5.516 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.4/1.4, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.321/2.321, allocations: 390.3 MB / 0.6655 GB, free: 0.5977 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001461/0.001461, allocations: 68.42 kB / 0.814 GB, free: 32.69 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2781/0.2796, allocations: 140.4 MB / 0.9511 GB, free: 8.098 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002958/0.2826, allocations: 1.477 MB / 0.9526 GB, free: 6.613 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001182/0.2838, allocations: 0.6305 MB / 0.9532 GB, free: 5.98 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.26e-05/0.2838, allocations: 0 / 0.9532 GB, free: 5.98 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 3.79e-05/0.2839, allocations: 3.938 kB / 0.9532 GB, free: 5.977 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 5.88e-05/0.284, allocations: 7.922 kB / 0.9532 GB, free: 5.969 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006443/0.2846, allocations: 163.4 kB / 0.9533 GB, free: 5.809 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.000103/0.2847, allocations: 55.78 kB / 0.9534 GB, free: 5.754 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 5.138e-05/0.2848, allocations: 4 kB / 0.9534 GB, free: 5.75 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 7.31e-05/0.2849, allocations: 23.91 kB / 0.9534 GB, free: 5.727 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 5.933e-05/0.2849, allocations: 23.92 kB / 0.9534 GB, free: 5.703 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.643e-05/0.285, allocations: 4 kB / 0.9534 GB, free: 5.699 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004956/0.2855, allocations: 343.4 kB / 0.9538 GB, free: 5.363 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 2.127e-05/0.2855, allocations: 15.92 kB / 0.9538 GB, free: 5.348 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.68e-05/0.2855, allocations: 31.8 kB / 0.9538 GB, free: 5.316 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0002829/0.2858, allocations: 179.5 kB / 0.954 GB, free: 5.141 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.178e-06/0.2858, allocations: 0 / 0.954 GB, free: 5.141 MB / 0.7325 GB Notification: Performance of FrontEnd: time 4.058e-06/0.2858, allocations: 0 / 0.954 GB, free: 5.141 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.559e-06/0.2858, allocations: 7.875 kB / 0.954 GB, free: 5.133 MB / 0.7325 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.0005949/0.2864, allocations: 405.1 kB / 0.9544 GB, free: 4.688 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/0.2865, allocations: 8.031 kB / 0.9544 GB, free: 4.68 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.984e-05/0.2865, allocations: 4.938 kB / 0.9544 GB, free: 4.676 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001397/0.2867, allocations: 168.3 kB / 0.9546 GB, free: 4.473 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.17e-05/0.2867, allocations: 4.375 kB / 0.9546 GB, free: 4.469 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.133e-05/0.2868, allocations: 12.38 kB / 0.9546 GB, free: 4.457 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002308/0.287, allocations: 78.09 kB / 0.9546 GB, free: 4.379 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.287, allocations: 192 / 0.9546 GB, free: 4.379 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.381e-05/0.287, allocations: 3.938 kB / 0.9547 GB, free: 4.375 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.805e-06/0.287, allocations: 7.984 kB / 0.9547 GB, free: 4.367 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002447/0.2873, allocations: 51.91 kB / 0.9547 GB, free: 4.316 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005545/0.2879, allocations: 320.6 kB / 0.955 GB, free: 3.953 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002717/0.2881, allocations: 78.47 kB / 0.9551 GB, free: 3.867 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000109/0.2883, allocations: 40.81 kB / 0.9551 GB, free: 3.824 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.034e-05/0.2883, allocations: 0 / 0.9551 GB, free: 3.824 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.202e-05/0.2883, allocations: 34.56 kB / 0.9552 GB, free: 3.781 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=7): time 4.118e-06/0.2883, allocations: 0 / 0.9552 GB, free: 3.781 MB / 0.7325 GB Notification: Performance of matching and sorting (n=11): time 0.001591/0.2899, allocations: 0.6462 MB / 0.9558 GB, free: 3.043 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.774e-05/0.29, allocations: 51.41 kB / 0.9558 GB, free: 2.98 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.434e-05/0.2901, allocations: 105.8 kB / 0.9559 GB, free: 2.867 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.984e-05/0.2901, allocations: 29.7 kB / 0.956 GB, free: 2.832 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 5.176e-05/0.2901, allocations: 88.05 kB / 0.9561 GB, free: 2.742 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 3.651e-05/0.2902, allocations: 39.44 kB / 0.9561 GB, free: 2.703 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.723e-05/0.2902, allocations: 33.83 kB / 0.9561 GB, free: 2.664 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001211/0.2904, allocations: 322.8 kB / 0.9564 GB, free: 2.34 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001222/0.2905, allocations: 31.97 kB / 0.9565 GB, free: 2.309 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001105/0.2906, allocations: 35.92 kB / 0.9565 GB, free: 2.273 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002323/0.2909, allocations: 72.83 kB / 0.9566 GB, free: 2.199 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.42e-07/0.2909, allocations: 0 / 0.9566 GB, free: 2.199 MB / 0.7325 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003119/0.2912, allocations: 113.7 kB / 0.9567 GB, free: 2.082 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.843e-05/0.2912, allocations: 8 kB / 0.9567 GB, free: 2.074 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.675e-06/0.2912, allocations: 3.984 kB / 0.9567 GB, free: 2.07 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.076e-05/0.2913, allocations: 0 / 0.9567 GB, free: 2.07 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001606/0.2914, allocations: 31.91 kB / 0.9567 GB, free: 2.039 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.035e-06/0.2914, allocations: 4 kB / 0.9567 GB, free: 2.035 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.038e-05/0.2915, allocations: 7.938 kB / 0.9567 GB, free: 2.027 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.236e-05/0.2915, allocations: 8 kB / 0.9567 GB, free: 2.02 MB / 0.7325 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.000105/0.2916, allocations: 117.8 kB / 0.9568 GB, free: 1.895 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.091e-05/0.2917, allocations: 3.906 kB / 0.9569 GB, free: 1.891 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003858/0.2921, allocations: 141.5 kB / 0.957 GB, free: 1.738 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.344e-06/0.2921, allocations: 0 / 0.957 GB, free: 1.738 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.2921, allocations: 0 / 0.957 GB, free: 1.738 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.65e-06/0.2921, allocations: 3.938 kB / 0.957 GB, free: 1.734 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005486/0.2926, allocations: 374.5 kB / 0.9573 GB, free: 1.312 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.2927, allocations: 4 kB / 0.9574 GB, free: 1.309 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000153/0.2928, allocations: 27.92 kB / 0.9574 GB, free: 1.281 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.2928, allocations: 0 / 0.9574 GB, free: 1.281 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.331e-05/0.2929, allocations: 11.94 kB / 0.9574 GB, free: 1.27 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.2929, allocations: 0 / 0.9574 GB, free: 1.27 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.72e-07/0.2929, allocations: 0 / 0.9574 GB, free: 1.27 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004839/0.2934, allocations: 251.3 kB / 0.9576 GB, free: 1.008 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 4.665e-05/0.2934, allocations: 93.03 kB / 0.9577 GB, free: 0.8984 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.935e-05/0.2934, allocations: 3.938 kB / 0.9577 GB, free: 0.8945 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001114/0.2935, allocations: 4 kB / 0.9577 GB, free: 0.8906 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.61e-05/0.2936, allocations: 7.984 kB / 0.9577 GB, free: 0.8828 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.138e-05/0.2936, allocations: 8 kB / 0.9577 GB, free: 0.875 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 5.933e-05/0.2937, allocations: 79.47 kB / 0.9578 GB, free: 0.7969 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2937, allocations: 0 / 0.9578 GB, free: 0.7969 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002871/0.294, allocations: 39.92 kB / 0.9579 GB, free: 0.7578 MB / 0.7325 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.000235/0.2942, allocations: 147.3 kB / 0.958 GB, free: 0.6055 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.00032/0.2945, allocations: 87.88 kB / 0.9581 GB, free: 0.5195 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.2945, allocations: 0 / 0.9581 GB, free: 0.5195 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.0001285/0.2947, allocations: 43.92 kB / 0.9581 GB, free: 488 kB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002941/0.295, allocations: 13.81 kB / 0.9581 GB, free: 476 kB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000681/0.2957, allocations: 309.6 kB / 0.9584 GB, free: 140 kB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002994/0.296, allocations: 0.6922 MB / 0.9591 GB, free: 15.42 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 6.486e-05/0.296, allocations: 16.61 kB / 0.9591 GB, free: 15.4 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.109e-05/0.2961, allocations: 15.44 kB / 0.9591 GB, free: 15.39 MB / 0.7481 GB Notification: Performance of SimCode: time 2.9e-07/0.2961, allocations: 0 / 0.9591 GB, free: 15.39 MB / 0.7481 GB Notification: Performance of Templates: time 0.00382/0.2999, allocations: 1.137 MB / 0.9602 GB, free: 14.29 MB / 0.7481 GB make -j1 -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.makefile (rm -f Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & ./Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches