Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.0008613/0.0008612, allocations: 98.03 kB / 15.36 MB, free: 0.7344 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.006127/0.006127, allocations: 170.7 kB / 16.27 MB, free: 6.66 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.44/1.44, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.741/2.741, allocations: 437.8 MB / 0.7121 GB, free: 6.977 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004046/0.0004044, allocations: 8 kB / 0.8728 GB, free: 3.336 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7327/0.7331, allocations: 153.8 MB / 1.023 GB, free: 15.89 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.00182/0.735, allocations: 1.192 MB / 1.024 GB, free: 14.69 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001305/0.7363, allocations: 0.6424 MB / 1.025 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.724e-05/0.7364, allocations: 4 kB / 1.025 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 2.923e-05/0.7364, allocations: 3.938 kB / 1.025 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 5.155e-05/0.7365, allocations: 0 / 1.025 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0006788/0.7372, allocations: 139.5 kB / 1.025 GB, free: 13.9 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001039/0.7373, allocations: 47.91 kB / 1.025 GB, free: 13.85 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 6.384e-05/0.7374, allocations: 11.97 kB / 1.025 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 8.385e-05/0.7375, allocations: 19.92 kB / 1.025 GB, free: 13.82 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 5.5e-05/0.7375, allocations: 23.86 kB / 1.025 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.73e-05/0.7375, allocations: 4 kB / 1.025 GB, free: 13.79 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006126/0.7382, allocations: 351.3 kB / 1.025 GB, free: 13.45 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.539e-05/0.7382, allocations: 11.94 kB / 1.025 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 6.201e-05/0.7383, allocations: 61.55 kB / 1.025 GB, free: 13.37 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0003764/0.7387, allocations: 173.5 kB / 1.026 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.7387, allocations: 0 / 1.026 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.094e-06/0.7387, allocations: 0 / 1.026 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.651e-06/0.7387, allocations: 0 / 1.026 GB, free: 13.2 MB / 0.7794 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.0006686/0.7394, allocations: 387.4 kB / 1.026 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.783e-05/0.7394, allocations: 19.98 kB / 1.026 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.369e-05/0.7395, allocations: 4.844 kB / 1.026 GB, free: 12.75 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001349/0.7397, allocations: 176.2 kB / 1.026 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.072e-05/0.7397, allocations: 8.375 kB / 1.026 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.83e-05/0.7397, allocations: 8.281 kB / 1.026 GB, free: 12.52 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003083/0.74, allocations: 82.09 kB / 1.026 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/0.7401, allocations: 192 / 1.026 GB, free: 12.44 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.917e-05/0.7401, allocations: 7.938 kB / 1.026 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.943e-06/0.7401, allocations: 8 kB / 1.026 GB, free: 12.43 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002602/0.7404, allocations: 55.95 kB / 1.026 GB, free: 12.37 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006187/0.741, allocations: 324.6 kB / 1.027 GB, free: 12 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002922/0.7413, allocations: 86.53 kB / 1.027 GB, free: 11.91 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001262/0.7414, allocations: 36.84 kB / 1.027 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.115e-05/0.7415, allocations: 160 / 1.027 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.76e-05/0.7415, allocations: 34.56 kB / 1.027 GB, free: 11.83 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 2.485e-06/0.7415, allocations: 3.938 kB / 1.027 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of matching and sorting (n=11): time 0.001863/0.7434, allocations: 0.6812 MB / 1.027 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.5e-05/0.7434, allocations: 51.41 kB / 1.028 GB, free: 10.99 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.757e-05/0.7435, allocations: 101.8 kB / 1.028 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 3.038e-05/0.7436, allocations: 33.7 kB / 1.028 GB, free: 10.84 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.037e-05/0.7436, allocations: 84.08 kB / 1.028 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 4.482e-05/0.7437, allocations: 51.34 kB / 1.028 GB, free: 10.7 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.689e-05/0.7437, allocations: 25.64 kB / 1.028 GB, free: 10.67 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001379/0.7438, allocations: 314.8 kB / 1.028 GB, free: 10.36 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001407/0.744, allocations: 35.97 kB / 1.028 GB, free: 10.32 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001332/0.7441, allocations: 35.98 kB / 1.028 GB, free: 10.29 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002715/0.7444, allocations: 76.95 kB / 1.028 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.253e-06/0.7444, allocations: 0 / 1.028 GB, free: 10.21 MB / 0.7794 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003503/0.7448, allocations: 129.6 kB / 1.028 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 2.127e-05/0.7448, allocations: 9.875 kB / 1.028 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.7448, allocations: 0 / 1.028 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.217e-05/0.7448, allocations: 0 / 1.028 GB, free: 10.07 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001626/0.745, allocations: 31.97 kB / 1.028 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.745, allocations: 0 / 1.028 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.287e-05/0.7451, allocations: 11.94 kB / 1.028 GB, free: 10.02 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.108e-05/0.7451, allocations: 4 kB / 1.028 GB, free: 10.02 MB / 0.7794 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.0001002/0.7452, allocations: 122.3 kB / 1.029 GB, free: 9.891 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.248e-05/0.7453, allocations: 11.89 kB / 1.029 GB, free: 9.879 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003984/0.7457, allocations: 133.6 kB / 1.029 GB, free: 9.738 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.696e-06/0.7457, allocations: 0 / 1.029 GB, free: 9.738 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.379e-06/0.7457, allocations: 0 / 1.029 GB, free: 9.738 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.54e-06/0.7457, allocations: 7.938 kB / 1.029 GB, free: 9.73 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006048/0.7463, allocations: 386.5 kB / 1.029 GB, free: 9.297 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.415e-06/0.7463, allocations: 0 / 1.029 GB, free: 9.297 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001527/0.7465, allocations: 31.98 kB / 1.029 GB, free: 9.266 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.7465, allocations: 0 / 1.029 GB, free: 9.266 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.149e-05/0.7465, allocations: 3.938 kB / 1.029 GB, free: 9.262 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.7465, allocations: 4 kB / 1.029 GB, free: 9.258 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.505e-06/0.7465, allocations: 7.984 kB / 1.029 GB, free: 9.25 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000547/0.7471, allocations: 271.6 kB / 1.029 GB, free: 8.969 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.874e-05/0.7471, allocations: 77.11 kB / 1.029 GB, free: 8.875 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.777e-05/0.7472, allocations: 3.938 kB / 1.029 GB, free: 8.871 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001373/0.7473, allocations: 12 kB / 1.029 GB, free: 8.859 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.275e-05/0.7473, allocations: 7.984 kB / 1.029 GB, free: 8.852 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.077e-06/0.7473, allocations: 4 kB / 1.029 GB, free: 8.848 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.466e-05/0.7474, allocations: 83.27 kB / 1.03 GB, free: 8.766 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.7474, allocations: 0 / 1.03 GB, free: 8.766 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.000283/0.7477, allocations: 44 kB / 1.03 GB, free: 8.723 MB / 0.7794 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.0002397/0.7479, allocations: 131.2 kB / 1.03 GB, free: 8.582 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003458/0.7483, allocations: 95.81 kB / 1.03 GB, free: 8.488 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.7483, allocations: 0 / 1.03 GB, free: 8.488 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001461/0.7485, allocations: 51.92 kB / 1.03 GB, free: 8.438 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002761/0.7488, allocations: 11.98 kB / 1.03 GB, free: 8.426 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007023/0.7495, allocations: 381.4 kB / 1.03 GB, free: 8.027 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000265/0.7497, allocations: 0.6965 MB / 1.031 GB, free: 7.305 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.564e-05/0.7498, allocations: 20.59 kB / 1.031 GB, free: 7.285 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.023e-05/0.7498, allocations: 15.44 kB / 1.031 GB, free: 7.27 MB / 0.7794 GB Notification: Performance of SimCode: time 2.044e-06/0.7499, allocations: 0 / 1.031 GB, free: 7.27 MB / 0.7794 GB Notification: Performance of Templates: time 0.003865/0.7537, allocations: 1.089 MB / 1.032 GB, free: 6.223 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.makefile (rm -f Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & ./Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches