Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_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.0009821/0.0009821, allocations: 83.59 kB / 20.45 MB, free: 4.121 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.001069/0.001069, allocations: 161 kB / 23.82 MB, free: 0.75 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.9524/0.9524, allocations: 177.1 MB / 204.2 MB, free: 5.184 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.808/1.808, allocations: 377.8 MB / 0.6236 GB, free: 8.57 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_DerivativeCheck2,tolerance=1e-08,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|dp|dp_comp|der.dp.|der.dp_comp.",fileNamePrefix="Buildings_12_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_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.893e-06/1.893e-06, allocations: 0 / 0.8115 GB, free: 1.719 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.828e-05/3.018e-05, allocations: 2.312 kB / 0.8115 GB, free: 1.715 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.003042/0.003072, allocations: 1.535 MB / 0.813 GB, free: 200 kB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.001196/0.004268, allocations: 0.5989 MB / 0.8136 GB, free: 15.6 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.301e-05/0.004311, allocations: 5.188 kB / 0.8136 GB, free: 15.59 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 4.051e-05/0.004352, allocations: 3.938 kB / 0.8136 GB, free: 15.59 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 6.175e-05/0.004413, allocations: 15.84 kB / 0.8136 GB, free: 15.57 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.000673/0.005086, allocations: 156.7 kB / 0.8138 GB, free: 15.42 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 9.807e-05/0.005185, allocations: 49.39 kB / 0.8138 GB, free: 15.38 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001018/0.005286, allocations: 7.969 kB / 0.8138 GB, free: 15.37 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000117/0.005403, allocations: 31.92 kB / 0.8139 GB, free: 15.34 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 4.614e-05/0.005449, allocations: 27.89 kB / 0.8139 GB, free: 15.31 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.919e-05/0.005469, allocations: 5.281 kB / 0.8139 GB, free: 15.3 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003712/0.00584, allocations: 267.4 kB / 0.8142 GB, free: 15.04 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 2.035e-05/0.00586, allocations: 11.97 kB / 0.8142 GB, free: 15.03 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 2.935e-05/0.00589, allocations: 21.77 kB / 0.8142 GB, free: 15.01 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0002644/0.006154, allocations: 183.3 kB / 0.8144 GB, free: 14.83 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 4.368e-06/0.006158, allocations: 0 / 0.8144 GB, free: 14.83 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.603e-06/0.00616, allocations: 0 / 0.8144 GB, free: 14.83 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 6.512e-06/0.006166, allocations: 0 / 0.8144 GB, free: 14.83 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0004605/0.006627, allocations: 421.5 kB / 0.8148 GB, free: 14.38 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.861e-05/0.006665, allocations: 12.03 kB / 0.8148 GB, free: 14.37 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.949e-05/0.006715, allocations: 8.891 kB / 0.8148 GB, free: 14.36 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.376e-05/0.006799, allocations: 121.1 kB / 0.8149 GB, free: 14.22 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.613e-05/0.006825, allocations: 9.688 kB / 0.8149 GB, free: 14.21 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.016e-05/0.006845, allocations: 4.375 kB / 0.8149 GB, free: 14.21 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001761/0.007021, allocations: 130.3 kB / 0.815 GB, free: 14.06 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.155e-05/0.007033, allocations: 8.75 kB / 0.8151 GB, free: 14.05 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.131e-05/0.007044, allocations: 4.375 kB / 0.8151 GB, free: 14.05 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.376e-06/0.007052, allocations: 0.9688 kB / 0.8151 GB, free: 14.05 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.815e-05/0.00711, allocations: 31.92 kB / 0.8151 GB, free: 14.02 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000419/0.007529, allocations: 305.6 kB / 0.8154 GB, free: 13.68 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001293/0.007659, allocations: 70.97 kB / 0.8154 GB, free: 13.6 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.963e-05/0.007688, allocations: 23.62 kB / 0.8155 GB, free: 13.57 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.794e-05/0.007706, allocations: 4.531 kB / 0.8155 GB, free: 13.57 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.552e-05/0.007732, allocations: 38.09 kB / 0.8155 GB, free: 13.52 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=7): time 1.152e-06/0.007733, allocations: 0 / 0.8155 GB, free: 13.52 MB / 0.7761 GB Notification: Performance of matching and sorting (n=11): time 0.0009866/0.00872, allocations: 466.7 kB / 0.816 GB, free: 13.01 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.55e-05/0.008755, allocations: 59.34 kB / 0.816 GB, free: 12.94 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.464e-05/0.00884, allocations: 159 kB / 0.8162 GB, free: 12.77 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.888e-05/0.008859, allocations: 29.7 kB / 0.8162 GB, free: 12.73 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 5.666e-05/0.008915, allocations: 130.9 kB / 0.8163 GB, free: 12.6 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 4.058e-05/0.008956, allocations: 44.39 kB / 0.8164 GB, free: 12.55 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.804e-05/0.009014, allocations: 35.36 kB / 0.8164 GB, free: 12.51 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001446/0.009159, allocations: 0.489 MB / 0.8169 GB, free: 12.01 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 4.615e-05/0.009205, allocations: 19.98 kB / 0.8169 GB, free: 11.99 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.006e-05/0.009245, allocations: 16.8 kB / 0.8169 GB, free: 11.98 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.03e-05/0.009335, allocations: 45.56 kB / 0.817 GB, free: 11.93 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.313e-06/0.009336, allocations: 0.9375 kB / 0.817 GB, free: 11.93 MB / 0.7761 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001608/0.009497, allocations: 101.7 kB / 0.817 GB, free: 11.82 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.009512, allocations: 5.344 kB / 0.8171 GB, free: 11.82 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.18e-06/0.009517, allocations: 0 / 0.8171 GB, free: 11.82 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.616e-05/0.009534, allocations: 4 kB / 0.8171 GB, free: 11.82 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000139/0.009673, allocations: 27.98 kB / 0.8171 GB, free: 11.79 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.444e-06/0.00968, allocations: 4.953 kB / 0.8171 GB, free: 11.79 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.664e-05/0.009717, allocations: 0 / 0.8171 GB, free: 11.79 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.101e-05/0.009728, allocations: 6.312 kB / 0.8171 GB, free: 11.78 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 (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 9.322e-05/0.009821, allocations: 172.4 kB / 0.8173 GB, free: 11.6 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.48e-05/0.009856, allocations: 8 kB / 0.8173 GB, free: 11.59 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001994/0.01006, allocations: 105.7 kB / 0.8174 GB, free: 11.49 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-06/0.01006, allocations: 0 / 0.8174 GB, free: 11.49 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.196e-06/0.01006, allocations: 3.438 kB / 0.8174 GB, free: 11.49 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.01006, allocations: 0 / 0.8174 GB, free: 11.49 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003707/0.01043, allocations: 357.3 kB / 0.8177 GB, free: 11.1 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.467e-06/0.01044, allocations: 4 kB / 0.8177 GB, free: 11.09 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000123/0.01056, allocations: 23.98 kB / 0.8177 GB, free: 11.07 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.01056, allocations: 0 / 0.8177 GB, free: 11.07 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.142e-05/0.01058, allocations: 3.984 kB / 0.8177 GB, free: 11.07 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.01058, allocations: 4 kB / 0.8177 GB, free: 11.06 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.01058, allocations: 0 / 0.8177 GB, free: 11.06 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002666/0.01085, allocations: 268.8 kB / 0.818 GB, free: 10.78 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 9.177e-06/0.01086, allocations: 7.922 kB / 0.818 GB, free: 10.77 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.743e-05/0.01087, allocations: 0.5 kB / 0.818 GB, free: 10.77 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.629e-05/0.01096, allocations: 8.562 kB / 0.818 GB, free: 10.77 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.442e-05/0.01098, allocations: 7.984 kB / 0.818 GB, free: 10.76 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.668e-06/0.01099, allocations: 5.5 kB / 0.818 GB, free: 10.75 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 4.265e-05/0.01104, allocations: 123.2 kB / 0.8181 GB, free: 10.63 MB / 0.7761 GB Notification: Performance of sort global known variables: time 1.01e-07/0.01104, allocations: 0 / 0.8181 GB, free: 10.63 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002916/0.01133, allocations: 43.8 kB / 0.8182 GB, free: 10.59 MB / 0.7761 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.0002094/0.01154, allocations: 136.4 kB / 0.8183 GB, free: 10.45 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.0001634/0.0117, allocations: 59.59 kB / 0.8184 GB, free: 10.38 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.305e-06/0.0117, allocations: 1.094 kB / 0.8184 GB, free: 10.38 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 6.053e-05/0.01176, allocations: 43.66 kB / 0.8184 GB, free: 10.34 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002895/0.01205, allocations: 8.828 kB / 0.8184 GB, free: 10.33 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007623/0.01282, allocations: 276.8 kB / 0.8187 GB, free: 10.05 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.54e-05/0.01286, allocations: 55.36 kB / 0.8187 GB, free: 9.973 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 5.664e-05/0.01292, allocations: 20.75 kB / 0.8188 GB, free: 9.949 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.367e-05/0.01295, allocations: 16.5 kB / 0.8188 GB, free: 9.934 MB / 0.7761 GB Notification: Performance of SimCode: time 8.61e-07/0.01295, allocations: 0 / 0.8188 GB, free: 9.934 MB / 0.7761 GB Notification: Performance of Templates: time 0.004078/0.01703, allocations: 1.266 MB / 0.82 GB, free: 8.723 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; mkfifo Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe ; head -c 1048576 < Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe >> ../files/Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.sim & ./Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/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: 4.998920566868037]