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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009627/0.0009627, allocations: 92.22 kB / 19.65 MB, free: 276 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001006/0.001006, allocations: 173 kB / 23.03 MB, free: 1.539 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.977/0.977, allocations: 177.1 MB / 203.4 MB, free: 5.578 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 2.068/2.068, allocations: 429.5 MB / 0.6732 GB, free: 4.043 MB / 0.6355 GB " [Timeout remaining time 177] Using package Buildings with version 14.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|dp|dp_comp|der.dp.|der.dp_comp.",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=2500,variableFilter="time|dp|dp_comp|der.dp.|der.dp_comp.",fileNamePrefix="Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.623e-06/1.623e-06, allocations: 0 / 0.8782 GB, free: 6.277 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.651e-05/2.813e-05, allocations: 2.312 kB / 0.8782 GB, free: 6.273 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002068/0.002096, allocations: 1.545 MB / 0.8797 GB, free: 4.738 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0009722/0.003068, allocations: 0.6045 MB / 0.8803 GB, free: 4.137 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.289e-05/0.003101, allocations: 0 / 0.8803 GB, free: 4.137 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 2.997e-05/0.003131, allocations: 5.125 kB / 0.8803 GB, free: 4.133 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 5.449e-05/0.003186, allocations: 7.875 kB / 0.8803 GB, free: 4.125 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005663/0.003752, allocations: 165 kB / 0.8805 GB, free: 3.965 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 8.576e-05/0.003838, allocations: 55.77 kB / 0.8805 GB, free: 3.91 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 4.06e-05/0.003878, allocations: 4.969 kB / 0.8805 GB, free: 3.906 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 7.516e-05/0.003954, allocations: 35.89 kB / 0.8806 GB, free: 3.871 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 3.514e-05/0.003989, allocations: 15.98 kB / 0.8806 GB, free: 3.855 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.655e-05/0.004005, allocations: 4.75 kB / 0.8806 GB, free: 3.852 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003034/0.004309, allocations: 271.4 kB / 0.8808 GB, free: 3.586 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 2.026e-05/0.004329, allocations: 12.64 kB / 0.8808 GB, free: 3.574 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 3.181e-05/0.004361, allocations: 27.36 kB / 0.8809 GB, free: 3.551 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0002427/0.004603, allocations: 187.3 kB / 0.8811 GB, free: 3.367 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 2.956e-06/0.004606, allocations: 0 / 0.8811 GB, free: 3.367 MB / 0.8386 GB Notification: Performance of FrontEnd: time 8.72e-07/0.004607, allocations: 0 / 0.8811 GB, free: 3.367 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 4.559e-06/0.004612, allocations: 0 / 0.8811 GB, free: 3.367 MB / 0.8386 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.0004321/0.005044, allocations: 420.1 kB / 0.8815 GB, free: 2.918 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.005084, allocations: 8.031 kB / 0.8815 GB, free: 2.91 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.783e-05/0.005132, allocations: 16.89 kB / 0.8815 GB, free: 2.895 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.923e-05/0.005211, allocations: 116.5 kB / 0.8816 GB, free: 2.754 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.199e-05/0.005233, allocations: 0.9688 kB / 0.8816 GB, free: 2.754 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.358e-05/0.005257, allocations: 13.41 kB / 0.8816 GB, free: 2.742 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001784/0.005435, allocations: 138.1 kB / 0.8817 GB, free: 2.59 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.927e-06/0.005444, allocations: 192 / 0.8817 GB, free: 2.59 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.014e-05/0.005454, allocations: 1 kB / 0.8817 GB, free: 2.59 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.244e-06/0.005461, allocations: 5.906 kB / 0.8817 GB, free: 2.586 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.029e-05/0.005512, allocations: 31.91 kB / 0.8818 GB, free: 2.555 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003792/0.005891, allocations: 303.6 kB / 0.8821 GB, free: 2.223 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001262/0.006017, allocations: 78.97 kB / 0.8821 GB, free: 2.133 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.828e-05/0.006045, allocations: 27.61 kB / 0.8822 GB, free: 2.102 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.624e-05/0.006062, allocations: 0 / 0.8822 GB, free: 2.102 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.561e-05/0.006087, allocations: 41.39 kB / 0.8822 GB, free: 2.051 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=7): time 9.12e-07/0.006088, allocations: 0 / 0.8822 GB, free: 2.051 MB / 0.8386 GB Notification: Performance of matching and sorting (n=11): time 0.0008179/0.006906, allocations: 460.4 kB / 0.8826 GB, free: 1.539 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.224e-05/0.006938, allocations: 55.41 kB / 0.8827 GB, free: 1.473 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.485e-05/0.007013, allocations: 165.9 kB / 0.8828 GB, free: 1.293 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.137e-05/0.007024, allocations: 25.7 kB / 0.8829 GB, free: 1.262 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 5.304e-05/0.007078, allocations: 138.8 kB / 0.883 GB, free: 1.121 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.964e-05/0.007107, allocations: 43.8 kB / 0.883 GB, free: 1.078 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.923e-05/0.007146, allocations: 35.36 kB / 0.8831 GB, free: 1.035 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001125/0.007259, allocations: 0.4922 MB / 0.8836 GB, free: 0.5312 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.113e-05/0.00729, allocations: 12 kB / 0.8836 GB, free: 0.5195 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.934e-05/0.007319, allocations: 24.11 kB / 0.8836 GB, free: 0.4961 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.12e-05/0.007391, allocations: 51.67 kB / 0.8836 GB, free: 452 kB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.292e-06/0.007392, allocations: 0 / 0.8836 GB, free: 452 kB / 0.8386 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001139/0.007506, allocations: 93.62 kB / 0.8837 GB, free: 352 kB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.25e-05/0.007518, allocations: 4 kB / 0.8837 GB, free: 348 kB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.007524, allocations: 0 / 0.8837 GB, free: 348 kB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.007537, allocations: 3.984 kB / 0.8837 GB, free: 344 kB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.923e-05/0.007636, allocations: 23.98 kB / 0.8838 GB, free: 320 kB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.109e-06/0.007641, allocations: 0 / 0.8838 GB, free: 320 kB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.479e-05/0.007666, allocations: 8 kB / 0.8838 GB, free: 312 kB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.917e-06/0.007675, allocations: 4 kB / 0.8838 GB, free: 308 kB / 0.8386 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 6.836e-05/0.007743, allocations: 164.5 kB / 0.8839 GB, free: 132 kB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.167e-05/0.007765, allocations: 19.89 kB / 0.884 GB, free: 112 kB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001436/0.007908, allocations: 97.72 kB / 0.884 GB, free: 8 kB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.407e-06/0.007912, allocations: 4 kB / 0.884 GB, free: 4 kB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.007915, allocations: 0 / 0.884 GB, free: 4 kB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.117e-06/0.007919, allocations: 3.984 kB / 0.8841 GB, free: 0 / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002894/0.008209, allocations: 353.3 kB / 0.8844 GB, free: 15.61 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.294e-06/0.008211, allocations: 0 / 0.8844 GB, free: 15.61 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.075e-05/0.008302, allocations: 23.98 kB / 0.8844 GB, free: 15.59 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.008304, allocations: 4 kB / 0.8844 GB, free: 15.59 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.007e-06/0.008313, allocations: 0 / 0.8844 GB, free: 15.59 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.008315, allocations: 0 / 0.8844 GB, free: 15.59 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.008316, allocations: 4 kB / 0.8844 GB, free: 15.58 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001945/0.008511, allocations: 267.7 kB / 0.8847 GB, free: 15.3 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 9.327e-06/0.00852, allocations: 7.953 kB / 0.8847 GB, free: 15.29 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.389e-05/0.008534, allocations: 4 kB / 0.8847 GB, free: 15.29 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.852e-05/0.008582, allocations: 7.984 kB / 0.8847 GB, free: 15.28 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.914e-05/0.008601, allocations: 4 kB / 0.8847 GB, free: 15.28 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.404e-06/0.008609, allocations: 7.984 kB / 0.8847 GB, free: 15.27 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 3.615e-05/0.008645, allocations: 123.2 kB / 0.8848 GB, free: 15.15 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6e-08/0.008645, allocations: 0 / 0.8848 GB, free: 15.15 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0001998/0.008845, allocations: 43.81 kB / 0.8849 GB, free: 15.11 MB / 0.8542 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.0001783/0.009023, allocations: 135.1 kB / 0.885 GB, free: 14.96 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0001274/0.009151, allocations: 74.72 kB / 0.8851 GB, free: 14.89 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.009153, allocations: 0 / 0.8851 GB, free: 14.89 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 3.482e-05/0.009187, allocations: 35.67 kB / 0.8851 GB, free: 14.85 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002029/0.00939, allocations: 21.11 kB / 0.8851 GB, free: 14.83 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006255/0.01002, allocations: 263.5 kB / 0.8854 GB, free: 14.54 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.048e-05/0.01006, allocations: 63.34 kB / 0.8854 GB, free: 14.46 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 4.234e-05/0.0101, allocations: 16.66 kB / 0.8854 GB, free: 14.44 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.951e-05/0.01013, allocations: 12.5 kB / 0.8855 GB, free: 14.43 MB / 0.8542 GB Notification: Performance of SimCode: time 6.91e-07/0.01013, allocations: 0 / 0.8855 GB, free: 14.43 MB / 0.8542 GB Notification: Performance of Templates: time 0.003529/0.01366, allocations: 1.273 MB / 0.8867 GB, free: 13.21 MB / 0.8542 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.makefile [Timeout 300] (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=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 5.345056520309299]