Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.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.001382/0.001382, allocations: 87.58 kB / 20.45 MB, free: 4.113 MB / 18.57 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.00156/0.00156, allocations: 161 kB / 23.82 MB, free: 0.7461 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.9545/0.9545, allocations: 177.1 MB / 204.2 MB, free: 5.629 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/package.mo): time 1.789/1.789, allocations: 377.8 MB / 0.6236 GB, free: 8.551 MB / 0.5886 GB " [Timeout remaining time 178] Using package Buildings with version 12.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.2-maint.12.x/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_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|dp|dp_comp",fileNamePrefix="Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") translateModel(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|dp|dp_comp",fileNamePrefix="Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 0 / 0.8115 GB, free: 1.727 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.63e-05/2.794e-05, allocations: 3.625 kB / 0.8115 GB, free: 1.723 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck): time 0.001927/0.001955, allocations: 1.339 MB / 0.8128 GB, free: 404 kB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.0007924/0.002747, allocations: 0.583 MB / 0.8134 GB, free: 15.81 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.304e-05/0.00278, allocations: 0 / 0.8134 GB, free: 15.81 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 2.631e-05/0.002807, allocations: 9.875 kB / 0.8134 GB, free: 15.8 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 4.533e-05/0.002852, allocations: 0 / 0.8134 GB, free: 15.8 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005619/0.003414, allocations: 151.2 kB / 0.8136 GB, free: 15.66 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 5.868e-05/0.003473, allocations: 25.92 kB / 0.8136 GB, free: 15.63 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 3.54e-05/0.003508, allocations: 0 / 0.8136 GB, free: 15.63 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 6.594e-05/0.003574, allocations: 19.92 kB / 0.8136 GB, free: 15.61 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 4.753e-05/0.003621, allocations: 0 / 0.8136 GB, free: 15.61 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.685e-05/0.003638, allocations: 4 kB / 0.8136 GB, free: 15.61 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000337/0.003975, allocations: 275.3 kB / 0.8139 GB, free: 15.34 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 1.563e-05/0.003991, allocations: 0.5938 kB / 0.8139 GB, free: 15.34 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 2.224e-05/0.004013, allocations: 4.531 kB / 0.8139 GB, free: 15.34 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0002128/0.004226, allocations: 155.5 kB / 0.814 GB, free: 15.18 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.00423, allocations: 4.719 kB / 0.814 GB, free: 15.18 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.122e-06/0.004231, allocations: 4 kB / 0.814 GB, free: 15.18 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 5.56e-06/0.004236, allocations: 4.516 kB / 0.814 GB, free: 15.17 MB / 0.7761 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.0003742/0.004611, allocations: 381.5 kB / 0.8144 GB, free: 14.76 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.749e-05/0.004648, allocations: 8.031 kB / 0.8144 GB, free: 14.75 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.311e-05/0.004691, allocations: 9.234 kB / 0.8144 GB, free: 14.75 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.92e-05/0.00477, allocations: 104.6 kB / 0.8145 GB, free: 14.62 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.383e-05/0.004784, allocations: 4.906 kB / 0.8145 GB, free: 14.61 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.225e-05/0.004806, allocations: 5.734 kB / 0.8145 GB, free: 14.61 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.587e-05/0.004902, allocations: 63.97 kB / 0.8146 GB, free: 14.54 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.275e-06/0.004911, allocations: 4.125 kB / 0.8146 GB, free: 14.53 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.458e-06/0.00492, allocations: 4.359 kB / 0.8146 GB, free: 14.53 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.525e-06/0.004928, allocations: 1.531 kB / 0.8146 GB, free: 14.53 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.592e-05/0.004953, allocations: 7.938 kB / 0.8146 GB, free: 14.52 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001291/0.005083, allocations: 120.7 kB / 0.8147 GB, free: 14.37 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000179/0.005262, allocations: 52.41 kB / 0.8148 GB, free: 14.3 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.756e-05/0.005289, allocations: 19.62 kB / 0.8148 GB, free: 14.28 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.624e-05/0.005305, allocations: 0.9062 kB / 0.8148 GB, free: 14.28 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.372e-05/0.005329, allocations: 41.33 kB / 0.8148 GB, free: 14.23 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=4): time 1.112e-06/0.00533, allocations: 0.7812 kB / 0.8148 GB, free: 14.23 MB / 0.7761 GB Notification: Performance of matching and sorting (n=6): time 0.000516/0.005846, allocations: 237.7 kB / 0.8151 GB, free: 13.96 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.417e-05/0.00588, allocations: 56.53 kB / 0.8151 GB, free: 13.89 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.068e-05/0.005951, allocations: 157.9 kB / 0.8153 GB, free: 13.72 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.098e-05/0.005962, allocations: 25.7 kB / 0.8153 GB, free: 13.69 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 3.729e-05/0.005999, allocations: 131.7 kB / 0.8154 GB, free: 13.56 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.952e-05/0.006029, allocations: 23.78 kB / 0.8154 GB, free: 13.54 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.539e-05/0.006064, allocations: 28.75 kB / 0.8155 GB, free: 13.5 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001141/0.006178, allocations: 492.1 kB / 0.8159 GB, free: 13.01 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.183e-05/0.0062, allocations: 11.98 kB / 0.816 GB, free: 13 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.518e-05/0.006215, allocations: 8 kB / 0.816 GB, free: 12.99 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.547e-05/0.006261, allocations: 28.78 kB / 0.816 GB, free: 12.96 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.006262, allocations: 0 / 0.816 GB, free: 12.96 MB / 0.7761 GB Notification: Performance of matching and sorting (n=7) (initialization): time 8.433e-05/0.006346, allocations: 65.67 kB / 0.816 GB, free: 12.89 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.405e-05/0.006361, allocations: 5.906 kB / 0.8161 GB, free: 12.88 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.006367, allocations: 0 / 0.8161 GB, free: 12.88 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.742e-05/0.006385, allocations: 0 / 0.8161 GB, free: 12.88 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.971e-05/0.006444, allocations: 15.98 kB / 0.8161 GB, free: 12.87 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.805e-06/0.006452, allocations: 3.938 kB / 0.8161 GB, free: 12.86 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.197e-05/0.006464, allocations: 2.438 kB / 0.8161 GB, free: 12.86 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.692e-06/0.006471, allocations: 4 kB / 0.8161 GB, free: 12.86 MB / 0.7761 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.569e-05/0.006546, allocations: 160.5 kB / 0.8162 GB, free: 12.69 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.035e-05/0.006557, allocations: 4 kB / 0.8162 GB, free: 12.69 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001135/0.00667, allocations: 77.81 kB / 0.8163 GB, free: 12.61 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.006673, allocations: 4 kB / 0.8163 GB, free: 12.61 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.006678, allocations: 4.469 kB / 0.8163 GB, free: 12.6 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.326e-06/0.006681, allocations: 0 / 0.8163 GB, free: 12.6 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002376/0.006919, allocations: 310.5 kB / 0.8166 GB, free: 12.25 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.00692, allocations: 0 / 0.8166 GB, free: 12.25 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.695e-05/0.006967, allocations: 15.98 kB / 0.8166 GB, free: 12.24 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.00697, allocations: 0.75 kB / 0.8166 GB, free: 12.24 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.326e-06/0.006978, allocations: 3.938 kB / 0.8166 GB, free: 12.23 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.114e-06/0.00698, allocations: 0.6562 kB / 0.8166 GB, free: 12.23 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.006982, allocations: 8.594 kB / 0.8166 GB, free: 12.23 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001429/0.007125, allocations: 227.8 kB / 0.8169 GB, free: 11.98 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 1.622e-05/0.007141, allocations: 11.14 kB / 0.8169 GB, free: 11.97 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.235e-05/0.007153, allocations: 7.938 kB / 0.8169 GB, free: 11.96 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.852e-05/0.007192, allocations: 0 / 0.8169 GB, free: 11.96 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.852e-05/0.00721, allocations: 8.5 kB / 0.8169 GB, free: 11.96 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.759e-06/0.007215, allocations: 0 / 0.8169 GB, free: 11.96 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 3.163e-05/0.007247, allocations: 127.2 kB / 0.817 GB, free: 11.83 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.007247, allocations: 0 / 0.817 GB, free: 11.83 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.000167/0.007414, allocations: 23.94 kB / 0.817 GB, free: 11.81 MB / 0.7761 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (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 (6): * Single equations (assignments): 6 * 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.0001499/0.007564, allocations: 125.5 kB / 0.8172 GB, free: 11.68 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 9.331e-05/0.007657, allocations: 43.59 kB / 0.8172 GB, free: 11.63 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.007659, allocations: 0 / 0.8172 GB, free: 11.63 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 1.859e-05/0.007678, allocations: 19.69 kB / 0.8172 GB, free: 11.61 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001507/0.007828, allocations: 7.938 kB / 0.8172 GB, free: 11.6 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004722/0.008301, allocations: 184.2 kB / 0.8174 GB, free: 11.4 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.432e-05/0.008335, allocations: 59.34 kB / 0.8175 GB, free: 11.32 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 2.32e-05/0.008358, allocations: 4 kB / 0.8175 GB, free: 11.32 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.046e-05/0.008379, allocations: 12.5 kB / 0.8175 GB, free: 11.3 MB / 0.7761 GB Notification: Performance of SimCode: time 6.41e-07/0.008379, allocations: 0 / 0.8175 GB, free: 11.3 MB / 0.7761 GB Notification: Performance of Templates: time 0.002478/0.01086, allocations: 0.7262 MB / 0.8182 GB, free: 10.62 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; mkfifo Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe >> ../files/Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.sim & ./Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Fluid_BaseClasses_FlowModels_Validation_BasicFlowFunction_m_flow_DerivativeCheck.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: 4.881099548190832]