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.0009459/0.0009459, allocations: 80.75 kB / 19.94 MB, free: 4.547 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.0009875/0.0009875, allocations: 181 kB / 23.36 MB, free: 1.129 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.9544/0.9544, allocations: 177.1 MB / 203.8 MB, free: 5.504 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.237/2.237, allocations: 438.8 MB / 0.6826 GB, free: 13.61 MB / 0.6511 GB " [Timeout remaining time 178] Using package Buildings with version 14.1.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.463e-06/1.463e-06, allocations: 0 / 0.8386 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.509e-05/1.655e-05, allocations: 2.312 kB / 0.8386 GB, free: 14.21 MB / 0.8073 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.BaseClasses.FlowModels.Validation.BasicFlowFunction_m_flow_DerivativeCheck2): time 0.001888/0.001905, allocations: 1.532 MB / 0.8401 GB, free: 12.66 MB / 0.8073 GB Notification: Performance of NFInst.instExpressions: time 0.0007549/0.00266, allocations: 0.5992 MB / 0.8407 GB, free: 12.06 MB / 0.8073 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.689e-05/0.002686, allocations: 0 / 0.8407 GB, free: 12.06 MB / 0.8073 GB Notification: Performance of NFTyping.typeComponents: time 3.121e-05/0.002718, allocations: 3.938 kB / 0.8407 GB, free: 12.06 MB / 0.8073 GB Notification: Performance of NFTyping.typeBindings: time 5.079e-05/0.002768, allocations: 11.92 kB / 0.8407 GB, free: 12.05 MB / 0.8073 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004122/0.003181, allocations: 159.2 kB / 0.8409 GB, free: 11.89 MB / 0.8073 GB Notification: Performance of NFFlatten.flatten: time 6.815e-05/0.003249, allocations: 55.77 kB / 0.8409 GB, free: 11.84 MB / 0.8073 GB Notification: Performance of NFFlatten.resolveConnections: time 3.458e-05/0.003283, allocations: 7.984 kB / 0.8409 GB, free: 11.83 MB / 0.8073 GB Notification: Performance of NFEvalConstants.evaluate: time 7.177e-05/0.003355, allocations: 27.97 kB / 0.8409 GB, free: 11.8 MB / 0.8073 GB Notification: Performance of NFSimplifyModel.simplify: time 3.528e-05/0.00339, allocations: 23.91 kB / 0.841 GB, free: 11.78 MB / 0.8073 GB Notification: Performance of NFPackage.collectConstants: time 1.321e-05/0.003404, allocations: 4 kB / 0.841 GB, free: 11.77 MB / 0.8073 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002669/0.003671, allocations: 279.4 kB / 0.8412 GB, free: 11.5 MB / 0.8073 GB Notification: Performance of NFScalarize.scalarize: time 1.918e-05/0.00369, allocations: 15.97 kB / 0.8413 GB, free: 11.48 MB / 0.8073 GB Notification: Performance of NFVerifyModel.verify: time 2.13e-05/0.003711, allocations: 15.94 kB / 0.8413 GB, free: 11.47 MB / 0.8073 GB Notification: Performance of NFConvertDAE.convert: time 0.0001991/0.00391, allocations: 187.4 kB / 0.8414 GB, free: 11.29 MB / 0.8073 GB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.003913, allocations: 0 / 0.8414 GB, free: 11.29 MB / 0.8073 GB Notification: Performance of FrontEnd: time 6.21e-07/0.003913, allocations: 0 / 0.8414 GB, free: 11.29 MB / 0.8073 GB Notification: Performance of Transformations before backend: time 2.855e-06/0.003916, allocations: 0 / 0.8414 GB, free: 11.29 MB / 0.8073 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.0003515/0.004268, allocations: 296.4 kB / 0.8417 GB, free: 10.97 MB / 0.8073 GB Notification: Performance of prepare preOptimizeDAE: time 3.223e-05/0.0043, allocations: 8.625 kB / 0.8417 GB, free: 10.96 MB / 0.8073 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.86e-05/0.004329, allocations: 16.86 kB / 0.8418 GB, free: 10.95 MB / 0.8073 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.43e-05/0.004403, allocations: 113.8 kB / 0.8419 GB, free: 10.81 MB / 0.8073 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.038e-05/0.004423, allocations: 4.375 kB / 0.8419 GB, free: 10.8 MB / 0.8073 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.075e-05/0.004444, allocations: 8.375 kB / 0.8419 GB, free: 10.8 MB / 0.8073 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000133/0.004577, allocations: 126.3 kB / 0.842 GB, free: 10.65 MB / 0.8073 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.649e-06/0.004587, allocations: 4.188 kB / 0.842 GB, free: 10.65 MB / 0.8073 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.005e-06/0.004595, allocations: 384 / 0.842 GB, free: 10.65 MB / 0.8073 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.402e-06/0.004601, allocations: 384 / 0.842 GB, free: 10.65 MB / 0.8073 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.304e-05/0.004634, allocations: 23.86 kB / 0.842 GB, free: 10.62 MB / 0.8073 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003014/0.004935, allocations: 204.1 kB / 0.8422 GB, free: 10.41 MB / 0.8073 GB Notification: Performance of preOpt comSubExp (simulation): time 9.728e-05/0.005033, allocations: 66.47 kB / 0.8423 GB, free: 10.34 MB / 0.8073 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.56e-05/0.005048, allocations: 12.86 kB / 0.8423 GB, free: 10.32 MB / 0.8073 GB Notification: Performance of preOpt evalFunc (simulation): time 1.305e-05/0.005061, allocations: 0 / 0.8423 GB, free: 10.32 MB / 0.8073 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.365e-05/0.005085, allocations: 38.5 kB / 0.8423 GB, free: 10.27 MB / 0.8073 GB Notification: Performance of pre-optimization done (n=7): time 7.42e-07/0.005086, allocations: 4 kB / 0.8423 GB, free: 10.27 MB / 0.8073 GB Notification: Performance of matching and sorting (n=11): time 0.000644/0.00573, allocations: 451.7 kB / 0.8428 GB, free: 9.773 MB / 0.8073 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.743e-05/0.005757, allocations: 59.34 kB / 0.8428 GB, free: 9.703 MB / 0.8073 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.375e-05/0.005801, allocations: 102.7 kB / 0.8429 GB, free: 9.59 MB / 0.8073 GB Notification: Performance of collectPreVariables (initialization): time 1.342e-05/0.005814, allocations: 29.7 kB / 0.8429 GB, free: 9.555 MB / 0.8073 GB Notification: Performance of collectInitialEqns (initialization): time 2.905e-05/0.005843, allocations: 92.08 kB / 0.843 GB, free: 9.461 MB / 0.8073 GB Notification: Performance of collectInitialBindings (initialization): time 2.529e-05/0.005869, allocations: 39.67 kB / 0.8431 GB, free: 9.422 MB / 0.8073 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.822e-05/0.005897, allocations: 21.72 kB / 0.8431 GB, free: 9.395 MB / 0.8073 GB Notification: Performance of setup shared object (initialization): time 6.551e-05/0.005962, allocations: 326.8 kB / 0.8434 GB, free: 9.066 MB / 0.8073 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.758e-05/0.00598, allocations: 12 kB / 0.8434 GB, free: 9.055 MB / 0.8073 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.628e-05/0.005996, allocations: 15.98 kB / 0.8434 GB, free: 9.039 MB / 0.8073 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.995e-05/0.006036, allocations: 36.83 kB / 0.8435 GB, free: 9 MB / 0.8073 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.01e-07/0.006037, allocations: 0 / 0.8435 GB, free: 9 MB / 0.8073 GB Notification: Performance of matching and sorting (n=13) (initialization): time 6.573e-05/0.006103, allocations: 80.92 kB / 0.8435 GB, free: 8.918 MB / 0.8073 GB Notification: Performance of prepare postOptimizeDAE: time 9.337e-06/0.006112, allocations: 4 kB / 0.8435 GB, free: 8.914 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.43e-06/0.006117, allocations: 4.172 kB / 0.8435 GB, free: 8.91 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.142e-05/0.006129, allocations: 4 kB / 0.8436 GB, free: 8.906 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.018e-05/0.006199, allocations: 19.98 kB / 0.8436 GB, free: 8.887 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.665e-06/0.006202, allocations: 4 kB / 0.8436 GB, free: 8.883 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.114e-05/0.006223, allocations: 11.98 kB / 0.8436 GB, free: 8.871 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.531e-06/0.006228, allocations: 4 kB / 0.8436 GB, free: 8.867 MB / 0.8073 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 5.269e-05/0.006281, allocations: 109.8 kB / 0.8437 GB, free: 8.75 MB / 0.8073 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.642e-05/0.006297, allocations: 11.92 kB / 0.8437 GB, free: 8.738 MB / 0.8073 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.768e-05/0.006395, allocations: 89.59 kB / 0.8438 GB, free: 8.648 MB / 0.8073 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.12e-07/0.006396, allocations: 0 / 0.8438 GB, free: 8.648 MB / 0.8073 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.004e-06/0.006398, allocations: 4 kB / 0.8438 GB, free: 8.645 MB / 0.8073 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.006401, allocations: 0 / 0.8438 GB, free: 8.645 MB / 0.8073 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001925/0.006593, allocations: 246.6 kB / 0.844 GB, free: 8.379 MB / 0.8073 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.11e-07/0.006594, allocations: 4 kB / 0.844 GB, free: 8.375 MB / 0.8073 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.63e-05/0.00666, allocations: 19.98 kB / 0.8441 GB, free: 8.355 MB / 0.8073 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.162e-06/0.006661, allocations: 0 / 0.8441 GB, free: 8.355 MB / 0.8073 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.591e-06/0.006667, allocations: 4 kB / 0.8441 GB, free: 8.352 MB / 0.8073 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.006669, allocations: 3.984 kB / 0.8441 GB, free: 8.348 MB / 0.8073 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.00667, allocations: 0 / 0.8441 GB, free: 8.348 MB / 0.8073 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001353/0.006805, allocations: 187.4 kB / 0.8442 GB, free: 8.148 MB / 0.8073 GB Notification: Performance of postOpt removeConstants (simulation): time 5.591e-06/0.006811, allocations: 3.953 kB / 0.8442 GB, free: 8.145 MB / 0.8073 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.109e-05/0.006822, allocations: 7.938 kB / 0.8443 GB, free: 8.137 MB / 0.8073 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.108e-05/0.006863, allocations: 3.984 kB / 0.8443 GB, free: 8.133 MB / 0.8073 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.914e-05/0.006882, allocations: 12.03 kB / 0.8443 GB, free: 8.121 MB / 0.8073 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.303e-06/0.006889, allocations: 7.984 kB / 0.8443 GB, free: 8.113 MB / 0.8073 GB Notification: Performance of sorting global known variables: time 9.979e-06/0.006899, allocations: 4.859 kB / 0.8443 GB, free: 8.105 MB / 0.8073 GB Notification: Performance of sort global known variables: time 5e-08/0.006899, allocations: 0 / 0.8443 GB, free: 8.105 MB / 0.8073 GB Notification: Performance of remove unused functions: time 0.0001555/0.007055, allocations: 39.88 kB / 0.8443 GB, free: 8.066 MB / 0.8073 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.0001676/0.007222, allocations: 112.2 kB / 0.8444 GB, free: 7.949 MB / 0.8073 GB Notification: Performance of simCode: created initialization part: time 9.371e-05/0.007316, allocations: 48.78 kB / 0.8445 GB, free: 7.898 MB / 0.8073 GB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.007319, allocations: 4 kB / 0.8445 GB, free: 7.895 MB / 0.8073 GB Notification: Performance of simCode: created simulation system equations: time 3.326e-05/0.007352, allocations: 32.77 kB / 0.8445 GB, free: 7.859 MB / 0.8073 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002119/0.007564, allocations: 23.92 kB / 0.8445 GB, free: 7.836 MB / 0.8073 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005413/0.008105, allocations: 236.9 kB / 0.8448 GB, free: 7.574 MB / 0.8073 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.472e-05/0.00814, allocations: 63.34 kB / 0.8448 GB, free: 7.492 MB / 0.8073 GB Notification: Performance of simCode: alias equations: time 3.507e-05/0.008175, allocations: 16.77 kB / 0.8448 GB, free: 7.477 MB / 0.8073 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.551e-05/0.008231, allocations: 71.36 kB / 0.8449 GB, free: 7.406 MB / 0.8073 GB Notification: Performance of SimCode: time 6.71e-07/0.008231, allocations: 0 / 0.8449 GB, free: 7.406 MB / 0.8073 GB Notification: Performance of Templates: time 0.002957/0.01119, allocations: 1.295 MB / 0.8462 GB, free: 6.16 MB / 0.8073 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: 4.957952277269214]