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.001009/0.001009, allocations: 79.73 kB / 20.98 MB, free: 3.555 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.0009684/0.0009684, allocations: 165 kB / 24.28 MB, free: 264 kB / 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.9704/0.9704, allocations: 177.1 MB / 204.6 MB, free: 5.625 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.826/1.826, allocations: 377.8 MB / 0.6239 GB, free: 8.539 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.904e-06/1.904e-06, allocations: 0 / 0.8115 GB, free: 2.062 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.558e-05/2.748e-05, allocations: 6.25 kB / 0.8115 GB, free: 2.055 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.002296/0.002323, allocations: 1.523 MB / 0.813 GB, free: 0.5469 MB / 0.7605 GB Notification: Performance of NFInst.instExpressions: time 0.0009187/0.003242, allocations: 0.6021 MB / 0.8136 GB, free: 15.95 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.285e-05/0.003275, allocations: 3.938 kB / 0.8136 GB, free: 15.94 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 2.596e-05/0.003301, allocations: 2.25 kB / 0.8136 GB, free: 15.94 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 6.254e-05/0.003363, allocations: 7.922 kB / 0.8136 GB, free: 15.93 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005/0.003863, allocations: 163.9 kB / 0.8138 GB, free: 15.77 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 8.591e-05/0.003949, allocations: 51.84 kB / 0.8138 GB, free: 15.72 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 4.081e-05/0.00399, allocations: 4.531 kB / 0.8138 GB, free: 15.72 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 7.994e-05/0.00407, allocations: 37.55 kB / 0.8139 GB, free: 15.68 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 3.811e-05/0.004108, allocations: 19.97 kB / 0.8139 GB, free: 15.66 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.806e-05/0.004126, allocations: 4 kB / 0.8139 GB, free: 15.66 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003378/0.007504, allocations: 267.4 kB / 0.8141 GB, free: 15.4 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 2.564e-05/0.00753, allocations: 19.86 kB / 0.8142 GB, free: 15.38 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 3.23e-05/0.007562, allocations: 20.58 kB / 0.8142 GB, free: 15.36 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0002738/0.007836, allocations: 180.7 kB / 0.8144 GB, free: 15.18 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 2.835e-06/0.007839, allocations: 0 / 0.8144 GB, free: 15.18 MB / 0.7761 GB Notification: Performance of FrontEnd: time 1.202e-06/0.00784, allocations: 0 / 0.8144 GB, free: 15.18 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 5.07e-06/0.007845, allocations: 0 / 0.8144 GB, free: 15.18 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.0004922/0.008338, allocations: 425.2 kB / 0.8148 GB, free: 14.73 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.878e-05/0.008376, allocations: 8.031 kB / 0.8148 GB, free: 14.72 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.899e-05/0.008425, allocations: 14.27 kB / 0.8148 GB, free: 14.71 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.055e-05/0.008516, allocations: 112.6 kB / 0.8149 GB, free: 14.57 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.383e-05/0.00854, allocations: 4.375 kB / 0.8149 GB, free: 14.57 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.294e-05/0.008563, allocations: 8.375 kB / 0.8149 GB, free: 14.56 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001959/0.008759, allocations: 136 kB / 0.815 GB, free: 14.41 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.288e-06/0.008768, allocations: 192 / 0.815 GB, free: 14.41 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.239e-05/0.00878, allocations: 4.359 kB / 0.815 GB, free: 14.41 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.925e-06/0.008788, allocations: 384 / 0.815 GB, free: 14.41 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.995e-05/0.008848, allocations: 33.02 kB / 0.8151 GB, free: 14.38 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005431/0.009391, allocations: 315.6 kB / 0.8154 GB, free: 14.03 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001426/0.009534, allocations: 72.55 kB / 0.8154 GB, free: 13.95 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.131e-05/0.009565, allocations: 19.62 kB / 0.8155 GB, free: 13.93 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 1.698e-05/0.009582, allocations: 4.844 kB / 0.8155 GB, free: 13.92 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.554e-05/0.009608, allocations: 37.39 kB / 0.8155 GB, free: 13.88 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=7): time 1.062e-06/0.009609, allocations: 3.938 kB / 0.8155 GB, free: 13.87 MB / 0.7761 GB Notification: Performance of matching and sorting (n=11): time 0.003898/0.01351, allocations: 463.2 kB / 0.8159 GB, free: 13.36 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.155e-05/0.01354, allocations: 55.41 kB / 0.816 GB, free: 13.29 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.103e-05/0.01362, allocations: 157.9 kB / 0.8161 GB, free: 13.12 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.357e-05/0.01363, allocations: 27.86 kB / 0.8162 GB, free: 13.09 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 4.978e-05/0.01368, allocations: 138.9 kB / 0.8163 GB, free: 12.95 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 3.397e-05/0.01372, allocations: 39.64 kB / 0.8163 GB, free: 12.91 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.595e-05/0.01376, allocations: 31.38 kB / 0.8164 GB, free: 12.87 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 0.0001209/0.01388, allocations: 0.4961 MB / 0.8169 GB, free: 12.36 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.815e-05/0.01392, allocations: 15.98 kB / 0.8169 GB, free: 12.35 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.524e-05/0.01396, allocations: 20.94 kB / 0.8169 GB, free: 12.33 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 7.895e-05/0.01404, allocations: 51.61 kB / 0.8169 GB, free: 12.28 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.01404, allocations: 4 kB / 0.8169 GB, free: 12.27 MB / 0.7761 GB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001393/0.01418, allocations: 93.77 kB / 0.817 GB, free: 12.18 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.01419, allocations: 11.92 kB / 0.817 GB, free: 12.16 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.0142, allocations: 4.5 kB / 0.8171 GB, free: 12.16 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.339e-05/0.01421, allocations: 0 / 0.8171 GB, free: 12.16 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001114/0.01432, allocations: 24.52 kB / 0.8171 GB, free: 12.14 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.791e-06/0.01433, allocations: 5.922 kB / 0.8171 GB, free: 12.13 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.335e-05/0.01436, allocations: 8 kB / 0.8171 GB, free: 12.12 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.123e-06/0.01437, allocations: 0 / 0.8171 GB, free: 12.12 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 7.456e-05/0.01444, allocations: 168.5 kB / 0.8172 GB, free: 11.95 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.892e-05/0.01447, allocations: 4.531 kB / 0.8173 GB, free: 11.95 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001637/0.01464, allocations: 101.7 kB / 0.8174 GB, free: 11.84 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.01464, allocations: 0.6562 kB / 0.8174 GB, free: 11.84 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.01464, allocations: 0.625 kB / 0.8174 GB, free: 11.84 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.01464, allocations: 3.984 kB / 0.8174 GB, free: 11.84 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003179/0.01496, allocations: 360.7 kB / 0.8177 GB, free: 11.45 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.01496, allocations: 0 / 0.8177 GB, free: 11.45 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001006/0.01506, allocations: 27.98 kB / 0.8177 GB, free: 11.42 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.364e-06/0.01507, allocations: 0 / 0.8177 GB, free: 11.42 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.043e-05/0.01508, allocations: 4 kB / 0.8177 GB, free: 11.42 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.01508, allocations: 0 / 0.8177 GB, free: 11.42 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.01508, allocations: 0 / 0.8177 GB, free: 11.42 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002246/0.0153, allocations: 268 kB / 0.818 GB, free: 11.14 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 5.942e-06/0.01531, allocations: 0 / 0.818 GB, free: 11.14 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.699e-05/0.01533, allocations: 10.19 kB / 0.818 GB, free: 11.13 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.161e-05/0.0154, allocations: 3.984 kB / 0.818 GB, free: 11.12 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.355e-05/0.01542, allocations: 7.984 kB / 0.818 GB, free: 11.12 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.676e-06/0.01543, allocations: 8 kB / 0.818 GB, free: 11.11 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 3.619e-05/0.01547, allocations: 127.4 kB / 0.8181 GB, free: 10.98 MB / 0.7761 GB Notification: Performance of sort global known variables: time 7e-08/0.01547, allocations: 0 / 0.8181 GB, free: 10.98 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0002677/0.01574, allocations: 40.78 kB / 0.8182 GB, free: 10.95 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.0001882/0.01592, allocations: 136.1 kB / 0.8183 GB, free: 10.8 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 0.003153/0.01908, allocations: 68.27 kB / 0.8184 GB, free: 10.73 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.01908, allocations: 4 kB / 0.8184 GB, free: 10.73 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 4.881e-05/0.01913, allocations: 44.67 kB / 0.8184 GB, free: 10.68 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002663/0.01939, allocations: 12.08 kB / 0.8184 GB, free: 10.67 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009261/0.02032, allocations: 268.5 kB / 0.8187 GB, free: 10.39 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.307e-05/0.02036, allocations: 63.34 kB / 0.8187 GB, free: 10.31 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 5.05e-05/0.02041, allocations: 16.66 kB / 0.8188 GB, free: 10.29 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.007e-05/0.02044, allocations: 16.5 kB / 0.8188 GB, free: 10.27 MB / 0.7761 GB Notification: Performance of SimCode: time 9.02e-07/0.02044, allocations: 0 / 0.8188 GB, free: 10.27 MB / 0.7761 GB Notification: Performance of Templates: time 0.009939/0.03038, allocations: 1.16 MB / 0.8199 GB, free: 9.176 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: 5.03895455901511]