Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.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.001033/0.001033, allocations: 73.09 kB / 20.66 MB, free: 3.844 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.001381/0.001381, allocations: 169 kB / 24.06 MB, free: 456 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 1.059/1.059, allocations: 177.1 MB / 204.5 MB, free: 5.508 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.207/2.207, allocations: 429.5 MB / 0.6743 GB, free: 3.891 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.Sensors.Examples.HeatMeter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|senHeaFlo.Q_flow|heaFloRat.Q_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter") translateModel(Buildings.Fluid.Sensors.Examples.HeatMeter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|senHeaFlo.Q_flow|heaFloRat.Q_flow",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 2.464e-06/2.464e-06, allocations: 4 kB / 0.8794 GB, free: 6.031 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.16e-05/2.406e-05, allocations: 3.406 kB / 0.8794 GB, free: 6.027 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sensors.Examples.HeatMeter): time 0.01105/0.01108, allocations: 8.683 MB / 0.8879 GB, free: 13.33 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.005803/0.01688, allocations: 3.251 MB / 0.8911 GB, free: 10.08 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000855/0.01774, allocations: 39.62 kB / 0.8911 GB, free: 10.04 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 0.0009451/0.01868, allocations: 178.6 kB / 0.8913 GB, free: 9.863 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 0.001349/0.02003, allocations: 0.6641 MB / 0.8919 GB, free: 9.195 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.001091/0.02112, allocations: 0.6469 MB / 0.8926 GB, free: 8.547 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.00132/0.02244, allocations: 1.605 MB / 0.8941 GB, free: 6.938 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004111/0.02285, allocations: 393.6 kB / 0.8945 GB, free: 6.551 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0009056/0.02376, allocations: 0.749 MB / 0.8952 GB, free: 5.809 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003927/0.02415, allocations: 406.8 kB / 0.8956 GB, free: 5.41 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 5.226e-05/0.0242, allocations: 44 kB / 0.8957 GB, free: 5.367 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003909/0.02459, allocations: 263.4 kB / 0.8959 GB, free: 5.109 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 0.0001059/0.0247, allocations: 151.4 kB / 0.8961 GB, free: 4.961 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 0.0001539/0.02485, allocations: 211.5 kB / 0.8963 GB, free: 4.754 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0006601/0.02551, allocations: 0.6306 MB / 0.8969 GB, free: 4.121 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.02552, allocations: 4 kB / 0.8969 GB, free: 4.117 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.403e-06/0.02552, allocations: 0 / 0.8969 GB, free: 4.117 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 5.531e-06/0.02552, allocations: 0 / 0.8969 GB, free: 4.117 MB / 0.8542 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 94 * Number of variables: 94 Notification: Performance of Generate backend data structure: time 0.0008376/0.02636, allocations: 0.8961 MB / 0.8978 GB, free: 3.184 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.037e-05/0.02639, allocations: 11.97 kB / 0.8978 GB, free: 3.172 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001826/0.02657, allocations: 100.5 kB / 0.8979 GB, free: 3.074 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004765/0.02705, allocations: 477.7 kB / 0.8983 GB, free: 2.578 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.242e-05/0.02707, allocations: 29.38 kB / 0.8983 GB, free: 2.551 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.824e-05/0.02712, allocations: 44.33 kB / 0.8984 GB, free: 2.508 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003392/0.02746, allocations: 399.8 kB / 0.8988 GB, free: 2.066 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.362e-05/0.02747, allocations: 0 / 0.8988 GB, free: 2.066 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.458e-05/0.0275, allocations: 16 kB / 0.8988 GB, free: 2.051 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.306e-05/0.02752, allocations: 12 kB / 0.8988 GB, free: 2.039 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001605/0.02768, allocations: 130.8 kB / 0.8989 GB, free: 1.914 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001479/0.02916, allocations: 1.528 MB / 0.9004 GB, free: 348 kB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002512/0.02941, allocations: 151.3 kB / 0.9006 GB, free: 184 kB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.86e-05/0.02947, allocations: 59.66 kB / 0.9006 GB, free: 120 kB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001917/0.02966, allocations: 63.94 kB / 0.9007 GB, free: 56 kB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.162e-05/0.0297, allocations: 49.38 kB / 0.9007 GB, free: 16 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=26): time 1.824e-06/0.02971, allocations: 0 / 0.9007 GB, free: 16 MB / 0.8698 GB Notification: Performance of matching and sorting (n=26): time 0.001641/0.03135, allocations: 221.2 kB / 0.9009 GB, free: 15.77 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.35e-05/0.03139, allocations: 51.41 kB / 0.901 GB, free: 15.71 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004242/0.03182, allocations: 410.4 kB / 0.9014 GB, free: 15.29 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 3.389e-05/0.03185, allocations: 33.7 kB / 0.9014 GB, free: 15.25 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.000218/0.03207, allocations: 323.1 kB / 0.9017 GB, free: 14.93 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 8.338e-05/0.03215, allocations: 103.1 kB / 0.9018 GB, free: 14.83 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001159/0.03227, allocations: 79.59 kB / 0.9019 GB, free: 14.74 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001793/0.03245, allocations: 0.5312 MB / 0.9024 GB, free: 14.2 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.5e-05/0.03252, allocations: 32.62 kB / 0.9024 GB, free: 14.17 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001786/0.0327, allocations: 203.8 kB / 0.9026 GB, free: 13.92 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002416/0.03294, allocations: 178.1 kB / 0.9028 GB, free: 13.71 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.366e-06/0.03294, allocations: 3.938 kB / 0.9028 GB, free: 13.71 MB / 0.8698 GB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003948/0.03334, allocations: 249.7 kB / 0.903 GB, free: 13.46 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 2.313e-05/0.03336, allocations: 4 kB / 0.903 GB, free: 13.45 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.117e-05/0.03337, allocations: 4.219 kB / 0.903 GB, free: 13.45 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.331e-05/0.03339, allocations: 4 kB / 0.9031 GB, free: 13.45 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002495/0.03364, allocations: 79.89 kB / 0.9031 GB, free: 13.37 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.581e-06/0.03364, allocations: 0 / 0.9031 GB, free: 13.37 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002142/0.03386, allocations: 27.8 kB / 0.9032 GB, free: 13.34 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.288e-05/0.03389, allocations: 12 kB / 0.9032 GB, free: 13.33 MB / 0.8698 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * 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 (39): * Single equations (assignments): 39 * 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 0.0001773/0.03407, allocations: 188.3 kB / 0.9033 GB, free: 13.13 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.672e-05/0.03416, allocations: 51.77 kB / 0.9034 GB, free: 13.08 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000574/0.03474, allocations: 298.1 kB / 0.9037 GB, free: 12.78 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.232e-05/0.03475, allocations: 7.984 kB / 0.9037 GB, free: 12.77 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.03475, allocations: 0 / 0.9037 GB, free: 12.77 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0003328/0.03509, allocations: 416.3 kB / 0.9041 GB, free: 12.3 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001269/0.03635, allocations: 0.7669 MB / 0.9048 GB, free: 11.48 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.228e-06/0.03636, allocations: 0 / 0.9048 GB, free: 11.48 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000197/0.03656, allocations: 51.92 kB / 0.9049 GB, free: 11.43 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.821e-06/0.03656, allocations: 0 / 0.9049 GB, free: 11.43 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.871e-05/0.03659, allocations: 15.98 kB / 0.9049 GB, free: 11.41 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.838e-06/0.03659, allocations: 0 / 0.9049 GB, free: 11.41 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.465e-06/0.0366, allocations: 15.88 kB / 0.9049 GB, free: 11.39 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005566/0.03716, allocations: 479.5 kB / 0.9054 GB, free: 10.88 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001537/0.03731, allocations: 83.72 kB / 0.9054 GB, free: 10.8 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.887e-05/0.03736, allocations: 16 kB / 0.9055 GB, free: 10.79 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002051/0.03757, allocations: 8 kB / 0.9055 GB, free: 10.78 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.525e-05/0.03761, allocations: 31.83 kB / 0.9055 GB, free: 10.75 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.004e-05/0.03764, allocations: 15.98 kB / 0.9055 GB, free: 10.73 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.0002112/0.03785, allocations: 263 kB / 0.9058 GB, free: 10.48 MB / 0.8698 GB Notification: Performance of sort global known variables: time 2.2e-07/0.03785, allocations: 0 / 0.9058 GB, free: 10.48 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0006192/0.03847, allocations: 179.6 kB / 0.9059 GB, free: 10.3 MB / 0.8698 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 3 (vol.dynBal.U,senT.T,senHeaFlo.T) * 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 (31): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 5 * 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.0003689/0.03884, allocations: 214.9 kB / 0.9061 GB, free: 10.08 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0003045/0.03915, allocations: 159.6 kB / 0.9063 GB, free: 9.918 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.444e-06/0.03915, allocations: 0 / 0.9063 GB, free: 9.918 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.0001433/0.03929, allocations: 99.39 kB / 0.9064 GB, free: 9.816 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009851/0.04028, allocations: 261.1 kB / 0.9066 GB, free: 9.574 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001649/0.04193, allocations: 0.9085 MB / 0.9075 GB, free: 8.605 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001129/0.04204, allocations: 125.8 kB / 0.9076 GB, free: 8.457 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.0002776/0.04232, allocations: 88.11 kB / 0.9077 GB, free: 8.367 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005166/0.04283, allocations: 281.9 kB / 0.908 GB, free: 8.09 MB / 0.8698 GB Notification: Performance of SimCode: time 9.12e-07/0.04283, allocations: 0 / 0.908 GB, free: 8.09 MB / 0.8698 GB Notification: Performance of Templates: time 0.01838/0.06121, allocations: 10.83 MB / 0.9186 GB, free: 13.52 MB / 0.8855 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.sim & ./Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_latest_Buildings.Fluid.Sensors.Examples.HeatMeter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sensors_Examples_HeatMeter.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: 6.051469956990331]