Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Utilities.Math.Examples.Average.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.001351/0.001351, allocations: 82.64 kB / 20.68 MB, free: 3.816 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.001605/0.001605, allocations: 181 kB / 24.09 MB, free: 420 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.9619/0.9619, allocations: 177.1 MB / 204.5 MB, free: 5.504 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.829/1.829, allocations: 377.9 MB / 0.6239 GB, free: 8.414 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.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|average.y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Examples.Average") translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|average.y",fileNamePrefix="Buildings_12_Buildings.Utilities.Math.Examples.Average") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.513e-06/1.513e-06, allocations: 0.7656 kB / 0.812 GB, free: 1.445 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.42e-05/2.571e-05, allocations: 2.312 kB / 0.812 GB, free: 1.441 MB / 0.7605 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.002085/0.002111, allocations: 1.587 MB / 0.8136 GB, free: 15.86 MB / 0.7761 GB Notification: Performance of NFInst.instExpressions: time 0.0002873/0.002398, allocations: 119.6 kB / 0.8137 GB, free: 15.74 MB / 0.7761 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.259e-05/0.002451, allocations: 1.156 kB / 0.8137 GB, free: 15.74 MB / 0.7761 GB Notification: Performance of NFTyping.typeComponents: time 0.0001187/0.00257, allocations: 3.938 kB / 0.8137 GB, free: 15.74 MB / 0.7761 GB Notification: Performance of NFTyping.typeBindings: time 2.804e-05/0.002598, allocations: 16.55 kB / 0.8137 GB, free: 15.72 MB / 0.7761 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002574/0.002855, allocations: 23.97 kB / 0.8137 GB, free: 15.7 MB / 0.7761 GB Notification: Performance of NFFlatten.flatten: time 7.918e-05/0.002934, allocations: 52.72 kB / 0.8138 GB, free: 15.65 MB / 0.7761 GB Notification: Performance of NFFlatten.resolveConnections: time 9.76e-05/0.003032, allocations: 19.97 kB / 0.8138 GB, free: 15.63 MB / 0.7761 GB Notification: Performance of NFEvalConstants.evaluate: time 7.174e-05/0.003104, allocations: 32.69 kB / 0.8138 GB, free: 15.6 MB / 0.7761 GB Notification: Performance of NFSimplifyModel.simplify: time 6.089e-05/0.003165, allocations: 27.97 kB / 0.8138 GB, free: 15.57 MB / 0.7761 GB Notification: Performance of NFPackage.collectConstants: time 1.693e-05/0.003181, allocations: 5.688 kB / 0.8138 GB, free: 15.57 MB / 0.7761 GB Notification: Performance of NFFlatten.collectFunctions: time 6.516e-05/0.003247, allocations: 15.88 kB / 0.8139 GB, free: 15.55 MB / 0.7761 GB Notification: Performance of NFScalarize.scalarize: time 3.852e-05/0.003285, allocations: 19.91 kB / 0.8139 GB, free: 15.53 MB / 0.7761 GB Notification: Performance of NFVerifyModel.verify: time 2.294e-05/0.003308, allocations: 19.92 kB / 0.8139 GB, free: 15.51 MB / 0.7761 GB Notification: Performance of NFConvertDAE.convert: time 0.0001135/0.003422, allocations: 51.81 kB / 0.8139 GB, free: 15.46 MB / 0.7761 GB Notification: Performance of FrontEnd - DAE generated: time 3.197e-06/0.003425, allocations: 1.531 kB / 0.8139 GB, free: 15.46 MB / 0.7761 GB Notification: Performance of FrontEnd: time 8.51e-07/0.003426, allocations: 0 / 0.8139 GB, free: 15.46 MB / 0.7761 GB Notification: Performance of Transformations before backend: time 3.677e-06/0.003429, allocations: 0 / 0.8139 GB, free: 15.46 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0003592/0.003788, allocations: 389 kB / 0.8143 GB, free: 15.04 MB / 0.7761 GB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/0.003825, allocations: 8.938 kB / 0.8143 GB, free: 15.04 MB / 0.7761 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.115e-05/0.003856, allocations: 12.89 kB / 0.8143 GB, free: 15.02 MB / 0.7761 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001139/0.00397, allocations: 132.5 kB / 0.8145 GB, free: 14.87 MB / 0.7761 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.978e-06/0.00398, allocations: 4.938 kB / 0.8145 GB, free: 14.86 MB / 0.7761 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.919e-06/0.00399, allocations: 13.95 kB / 0.8145 GB, free: 14.85 MB / 0.7761 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001246/0.004115, allocations: 66.94 kB / 0.8145 GB, free: 14.78 MB / 0.7761 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.164e-06/0.004122, allocations: 192 / 0.8145 GB, free: 14.78 MB / 0.7761 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.883e-06/0.004129, allocations: 384 / 0.8145 GB, free: 14.78 MB / 0.7761 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.55e-06/0.004134, allocations: 0.9062 kB / 0.8145 GB, free: 14.78 MB / 0.7761 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.672e-05/0.004161, allocations: 19.86 kB / 0.8146 GB, free: 14.76 MB / 0.7761 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002812/0.004442, allocations: 277.5 kB / 0.8148 GB, free: 14.46 MB / 0.7761 GB Notification: Performance of preOpt comSubExp (simulation): time 6.152e-05/0.004504, allocations: 40.67 kB / 0.8149 GB, free: 14.41 MB / 0.7761 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.093e-05/0.004525, allocations: 11.72 kB / 0.8149 GB, free: 14.39 MB / 0.7761 GB Notification: Performance of preOpt evalFunc (simulation): time 3.578e-05/0.004561, allocations: 7.938 kB / 0.8149 GB, free: 14.39 MB / 0.7761 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.399e-05/0.004585, allocations: 45.41 kB / 0.8149 GB, free: 14.33 MB / 0.7761 GB Notification: Performance of pre-optimization done (n=3): time 1.322e-06/0.004586, allocations: 4.594 kB / 0.8149 GB, free: 14.33 MB / 0.7761 GB Notification: Performance of matching and sorting (n=3): time 0.0001257/0.004712, allocations: 37.7 kB / 0.815 GB, free: 14.29 MB / 0.7761 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002848/0.004996, allocations: 56.08 kB / 0.815 GB, free: 14.22 MB / 0.7761 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.69e-05/0.005063, allocations: 174.5 kB / 0.8152 GB, free: 14.03 MB / 0.7761 GB Notification: Performance of collectPreVariables (initialization): time 1.085e-05/0.005074, allocations: 29.7 kB / 0.8152 GB, free: 14 MB / 0.7761 GB Notification: Performance of collectInitialEqns (initialization): time 4.051e-05/0.005115, allocations: 139.8 kB / 0.8154 GB, free: 13.86 MB / 0.7761 GB Notification: Performance of collectInitialBindings (initialization): time 2.093e-05/0.005136, allocations: 19.83 kB / 0.8154 GB, free: 13.84 MB / 0.7761 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.65e-05/0.005162, allocations: 19.38 kB / 0.8154 GB, free: 13.81 MB / 0.7761 GB Notification: Performance of setup shared object (initialization): time 9.918e-05/0.005261, allocations: 493.5 kB / 0.8159 GB, free: 13.32 MB / 0.7761 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.55e-05/0.005277, allocations: 11.92 kB / 0.8159 GB, free: 13.3 MB / 0.7761 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.026e-05/0.005287, allocations: 0 / 0.8159 GB, free: 13.3 MB / 0.7761 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.869e-05/0.005316, allocations: 23.67 kB / 0.8159 GB, free: 13.28 MB / 0.7761 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.005317, allocations: 1.75 kB / 0.8159 GB, free: 13.28 MB / 0.7761 GB Notification: Performance of matching and sorting (n=3) (initialization): time 6.004e-05/0.005377, allocations: 45.62 kB / 0.8159 GB, free: 13.23 MB / 0.7761 GB Notification: Performance of prepare postOptimizeDAE: time 1.111e-05/0.005388, allocations: 4.625 kB / 0.8159 GB, free: 13.22 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.849e-06/0.005393, allocations: 0 / 0.8159 GB, free: 13.22 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.508e-06/0.005403, allocations: 2.219 kB / 0.8159 GB, free: 13.22 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.657e-05/0.005479, allocations: 11.98 kB / 0.816 GB, free: 13.21 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.144e-06/0.005481, allocations: 0 / 0.816 GB, free: 13.21 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.237e-05/0.005504, allocations: 7.938 kB / 0.816 GB, free: 13.2 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.368e-05/0.005517, allocations: 4 kB / 0.816 GB, free: 13.2 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 (3): * Single equations (assignments): 3 * 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.834e-05/0.005576, allocations: 159.5 kB / 0.8161 GB, free: 13.04 MB / 0.7761 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.043e-05/0.005596, allocations: 15.88 kB / 0.8161 GB, free: 13.02 MB / 0.7761 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.836e-05/0.005685, allocations: 45.69 kB / 0.8162 GB, free: 12.97 MB / 0.7761 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.096e-06/0.005688, allocations: 4.375 kB / 0.8162 GB, free: 12.96 MB / 0.7761 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.853e-06/0.00569, allocations: 0 / 0.8162 GB, free: 12.96 MB / 0.7761 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.005693, allocations: 4 kB / 0.8162 GB, free: 12.96 MB / 0.7761 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.296e-05/0.005786, allocations: 109.2 kB / 0.8163 GB, free: 12.83 MB / 0.7761 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.005788, allocations: 3.984 kB / 0.8163 GB, free: 12.82 MB / 0.7761 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.444e-05/0.005822, allocations: 17.36 kB / 0.8163 GB, free: 12.81 MB / 0.7761 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.005824, allocations: 0 / 0.8163 GB, free: 12.81 MB / 0.7761 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.168e-06/0.005828, allocations: 0 / 0.8163 GB, free: 12.81 MB / 0.7761 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.00583, allocations: 3.938 kB / 0.8163 GB, free: 12.8 MB / 0.7761 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.005831, allocations: 0.625 kB / 0.8163 GB, free: 12.8 MB / 0.7761 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.992e-05/0.005921, allocations: 200.4 kB / 0.8165 GB, free: 12.59 MB / 0.7761 GB Notification: Performance of postOpt removeConstants (simulation): time 6.392e-06/0.005928, allocations: 0 / 0.8165 GB, free: 12.59 MB / 0.7761 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.04e-05/0.005938, allocations: 4.547 kB / 0.8165 GB, free: 12.59 MB / 0.7761 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.721e-05/0.005975, allocations: 12.59 kB / 0.8165 GB, free: 12.57 MB / 0.7761 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.045e-05/0.006006, allocations: 3.984 kB / 0.8165 GB, free: 12.57 MB / 0.7761 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.841e-06/0.006011, allocations: 1.281 kB / 0.8165 GB, free: 12.57 MB / 0.7761 GB Notification: Performance of sorting global known variables: time 3.978e-05/0.006051, allocations: 131.2 kB / 0.8167 GB, free: 12.44 MB / 0.7761 GB Notification: Performance of sort global known variables: time 5e-08/0.006051, allocations: 0 / 0.8167 GB, free: 12.44 MB / 0.7761 GB Notification: Performance of remove unused functions: time 0.0001492/0.006201, allocations: 18.52 kB / 0.8167 GB, free: 12.43 MB / 0.7761 GB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (3): * Single equations (assignments): 3 * 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.0001256/0.006326, allocations: 99.19 kB / 0.8168 GB, free: 12.32 MB / 0.7761 GB Notification: Performance of simCode: created initialization part: time 7.96e-05/0.006406, allocations: 27.59 kB / 0.8168 GB, free: 12.29 MB / 0.7761 GB Notification: Performance of simCode: created event and clocks part: time 1.092e-06/0.006407, allocations: 0 / 0.8168 GB, free: 12.29 MB / 0.7761 GB Notification: Performance of simCode: created simulation system equations: time 2.022e-05/0.006427, allocations: 15.69 kB / 0.8168 GB, free: 12.27 MB / 0.7761 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001831/0.00661, allocations: 8.812 kB / 0.8168 GB, free: 12.26 MB / 0.7761 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002471/0.006857, allocations: 151 kB / 0.817 GB, free: 12.08 MB / 0.7761 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.905e-05/0.006896, allocations: 64.42 kB / 0.817 GB, free: 12 MB / 0.7761 GB Notification: Performance of simCode: alias equations: time 2.05e-05/0.006917, allocations: 4 kB / 0.817 GB, free: 12 MB / 0.7761 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.174e-05/0.006968, allocations: 75.03 kB / 0.8171 GB, free: 11.92 MB / 0.7761 GB Notification: Performance of SimCode: time 6.32e-07/0.006969, allocations: 0 / 0.8171 GB, free: 11.92 MB / 0.7761 GB Notification: Performance of Templates: time 0.00265/0.00962, allocations: 0.895 MB / 0.818 GB, free: 11.06 MB / 0.7761 GB " [Timeout remaining time 300] make -j1 -f Buildings_12_Buildings.Utilities.Math.Examples.Average.makefile [Timeout 300] (rm -f Buildings_12_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_12_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_12_Buildings.Utilities.Math.Examples.Average.sim & ./Buildings_12_Buildings.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Buildings_12_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) [Timeout 240] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_Average.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.934342643711716]