Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.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_dp_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|m_flow|m_flow_comp",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001182/0.001182, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.001285/0.001285, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.328/1.328, allocations: 223.2 MB / 239.9 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.532/2.532, allocations: 436.5 MB / 0.7104 GB, free: 7.832 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.000334/0.000334, allocations: 8 kB / 0.8708 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6283/0.6286, allocations: 153.6 MB / 1.021 GB, free: 1.109 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck): time 0.001196/0.6298, allocations: 0.9845 MB / 1.022 GB, free: 116 kB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0005916/0.6304, allocations: 351.1 kB / 1.022 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.994e-05/0.6305, allocations: 0 / 1.022 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.39e-05/0.6305, allocations: 0 / 1.022 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 4.066e-05/0.6305, allocations: 7.922 kB / 1.022 GB, free: 15.76 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003384/0.6309, allocations: 75.77 kB / 1.022 GB, free: 15.69 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 4.767e-05/0.6309, allocations: 11.98 kB / 1.022 GB, free: 15.68 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 4.499e-05/0.631, allocations: 3.984 kB / 1.022 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 3.439e-05/0.631, allocations: 4 kB / 1.022 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 5.403e-05/0.6311, allocations: 15.94 kB / 1.022 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.158e-05/0.6311, allocations: 0 / 1.022 GB, free: 15.65 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002816/0.6314, allocations: 183.7 kB / 1.022 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 7.794e-06/0.6314, allocations: 0 / 1.022 GB, free: 15.47 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 2.306e-05/0.6315, allocations: 25.7 kB / 1.022 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001414/0.6316, allocations: 61.83 kB / 1.022 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 2.604e-06/0.6316, allocations: 0 / 1.022 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.883e-06/0.6316, allocations: 0 / 1.022 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.948e-06/0.6316, allocations: 4 kB / 1.022 GB, free: 15.38 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: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0003551/0.632, allocations: 341.3 kB / 1.023 GB, free: 15 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/0.632, allocations: 11.98 kB / 1.023 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.318e-05/0.6321, allocations: 4 kB / 1.023 GB, free: 14.98 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001255/0.6322, allocations: 163.1 kB / 1.023 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.231e-05/0.6322, allocations: 0 / 1.023 GB, free: 14.79 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.007e-05/0.6323, allocations: 4 kB / 1.023 GB, free: 14.78 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001216/0.6324, allocations: 45.58 kB / 1.023 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.512e-06/0.6324, allocations: 0 / 1.023 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.054e-05/0.6324, allocations: 4 kB / 1.023 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.6324, allocations: 0 / 1.023 GB, free: 14.73 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.681e-05/0.6325, allocations: 12 kB / 1.023 GB, free: 14.71 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001615/0.6326, allocations: 161.6 kB / 1.023 GB, free: 14.51 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001795/0.6328, allocations: 38.61 kB / 1.023 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.335e-05/0.6329, allocations: 4 kB / 1.023 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.466e-05/0.6329, allocations: 38.58 kB / 1.023 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=4): time 1.272e-06/0.6329, allocations: 0 / 1.023 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6): time 0.0006332/0.6335, allocations: 318.4 kB / 1.024 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.171e-05/0.6336, allocations: 51.41 kB / 1.024 GB, free: 13.98 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.138e-05/0.6337, allocations: 101.8 kB / 1.024 GB, free: 13.88 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.392e-05/0.6337, allocations: 25.7 kB / 1.024 GB, free: 13.84 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.729e-05/0.6337, allocations: 84.14 kB / 1.024 GB, free: 13.76 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 2.852e-05/0.6338, allocations: 19.75 kB / 1.024 GB, free: 13.74 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.417e-06/0.6338, allocations: 3.938 kB / 1.024 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001174/0.6339, allocations: 318.8 kB / 1.024 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.902e-05/0.6339, allocations: 15.98 kB / 1.024 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.739e-05/0.634, allocations: 4 kB / 1.024 GB, free: 13.39 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.04e-05/0.634, allocations: 16 kB / 1.024 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.31e-07/0.634, allocations: 3.938 kB / 1.024 GB, free: 13.38 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001013/0.6341, allocations: 73.52 kB / 1.024 GB, free: 13.3 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.364e-05/0.6341, allocations: 7.953 kB / 1.024 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.568e-06/0.6341, allocations: 0 / 1.024 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.218e-06/0.6341, allocations: 0 / 1.024 GB, free: 13.29 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.612e-05/0.6342, allocations: 20.05 kB / 1.024 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.819e-06/0.6342, allocations: 4 kB / 1.024 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.706e-05/0.6342, allocations: 0 / 1.024 GB, free: 13.27 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.094e-06/0.6342, allocations: 8 kB / 1.024 GB, free: 13.26 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 (7): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.684e-05/0.6343, allocations: 105.8 kB / 1.024 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.839e-06/0.6343, allocations: 4 kB / 1.024 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001456/0.6345, allocations: 77.53 kB / 1.024 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.432e-06/0.6345, allocations: 0 / 1.024 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.6345, allocations: 0 / 1.024 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.6345, allocations: 0 / 1.024 GB, free: 13.05 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003184/0.6348, allocations: 315.4 kB / 1.025 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.6348, allocations: 0 / 1.025 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.469e-05/0.6349, allocations: 15.95 kB / 1.025 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.6349, allocations: 3.984 kB / 1.025 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.051e-06/0.6349, allocations: 0 / 1.025 GB, free: 12.67 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.707e-06/0.6349, allocations: 4 kB / 1.025 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.635, allocations: 0 / 1.025 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001745/0.6351, allocations: 194 kB / 1.025 GB, free: 12.45 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 8.895e-05/0.6352, allocations: 85.12 kB / 1.025 GB, free: 12.35 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.592e-05/0.6353, allocations: 4 kB / 1.025 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.931e-05/0.6353, allocations: 0 / 1.025 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.721e-05/0.6353, allocations: 7.984 kB / 1.025 GB, free: 12.34 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.482e-06/0.6354, allocations: 4 kB / 1.025 GB, free: 12.33 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.901e-05/0.6354, allocations: 75.34 kB / 1.025 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.21e-07/0.6354, allocations: 4 kB / 1.025 GB, free: 12.25 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002413/0.6356, allocations: 20 kB / 1.025 GB, free: 12.23 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (m_flow_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 (6): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000166/0.6358, allocations: 123.3 kB / 1.025 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 9.546e-05/0.6359, allocations: 40.16 kB / 1.025 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.6359, allocations: 0 / 1.025 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 2.47e-05/0.636, allocations: 19.94 kB / 1.025 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001392/0.6361, allocations: 11.94 kB / 1.025 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003679/0.6365, allocations: 217.7 kB / 1.026 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002415/0.6367, allocations: 0.6848 MB / 1.026 GB, free: 11.08 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.165e-05/0.6368, allocations: 12.12 kB / 1.026 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.794e-05/0.6368, allocations: 11.44 kB / 1.026 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of SimCode: time 2.4e-07/0.6368, allocations: 0 / 1.026 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of Templates: time 0.002524/0.6393, allocations: 0.5949 MB / 1.027 GB, free: 10.5 MB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.makefile (rm -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; mkfifo Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe >> ../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.sim & ./Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_dp_DerivativeCheck.csv","../files/Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_dp_DerivativeCheck.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches