Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.Average.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|average.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.Average") translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|average.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.Average") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001019/0.001019, allocations: 91.92 kB / 16.02 MB, free: 80 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001208/0.001208, allocations: 179.9 kB / 16.92 MB, free: 6.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.415/1.415, allocations: 223.3 MB / 241 MB, free: 5.301 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.499/2.499, allocations: 390.9 MB / 0.667 GB, free: 2.309 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003635/0.0003635, allocations: 12 kB / 0.8166 GB, free: 13.21 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7509/0.7513, allocations: 142.4 MB / 0.9557 GB, free: 7.637 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.001564/0.7529, allocations: 1.253 MB / 0.9569 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0003507/0.7533, allocations: 113.2 kB / 0.957 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.486e-05/0.7533, allocations: 1.375 kB / 0.957 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001101/0.7534, allocations: 5 kB / 0.957 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 2.79e-05/0.7535, allocations: 5.031 kB / 0.957 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002038/0.7537, allocations: 23 kB / 0.9571 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 8.182e-05/0.7538, allocations: 51.16 kB / 0.9571 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001175/0.7539, allocations: 28.22 kB / 0.9571 GB, free: 6.488 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.265e-05/0.754, allocations: 23 kB / 0.9572 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.205e-05/0.754, allocations: 24.39 kB / 0.9572 GB, free: 6.457 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.454e-05/0.7541, allocations: 9.219 kB / 0.9572 GB, free: 6.449 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.109e-05/0.7541, allocations: 8.891 kB / 0.9572 GB, free: 6.445 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 3.778e-05/0.7542, allocations: 17.12 kB / 0.9572 GB, free: 6.434 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.126e-05/0.7542, allocations: 45.94 kB / 0.9573 GB, free: 6.387 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 9.485e-05/0.7543, allocations: 39.58 kB / 0.9573 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.919e-06/0.7543, allocations: 0.9688 kB / 0.9573 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.014e-06/0.7543, allocations: 0 / 0.9573 GB, free: 6.359 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.107e-06/0.7543, allocations: 0 / 0.9573 GB, free: 6.359 MB / 0.7169 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.000477/0.7548, allocations: 385.2 kB / 0.9577 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.7549, allocations: 8.844 kB / 0.9577 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.489e-05/0.7549, allocations: 8.094 kB / 0.9577 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001339/0.7551, allocations: 187.5 kB / 0.9579 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.023e-05/0.7551, allocations: 2.906 kB / 0.9579 GB, free: 5.75 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.638e-05/0.7551, allocations: 10.3 kB / 0.9579 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002999/0.7554, allocations: 103.2 kB / 0.958 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.436e-06/0.7554, allocations: 192 / 0.958 GB, free: 5.676 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.372e-05/0.7554, allocations: 9.047 kB / 0.958 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.523e-06/0.7555, allocations: 0.9375 kB / 0.958 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003353/0.7558, allocations: 100.5 kB / 0.9581 GB, free: 5.633 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004811/0.7563, allocations: 339.5 kB / 0.9584 GB, free: 5.305 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002116/0.7565, allocations: 72.19 kB / 0.9585 GB, free: 5.258 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000164/0.7567, allocations: 47.17 kB / 0.9585 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 3.452e-05/0.7567, allocations: 3.094 kB / 0.9585 GB, free: 5.238 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.47e-05/0.7567, allocations: 38.56 kB / 0.9586 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.7567, allocations: 0 / 0.9586 GB, free: 5.191 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0005691/0.7573, allocations: 178.4 kB / 0.9587 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.224e-05/0.7574, allocations: 52.56 kB / 0.9588 GB, free: 5.035 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.691e-05/0.7574, allocations: 119.1 kB / 0.9589 GB, free: 4.922 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.435e-06/0.7574, allocations: 25.7 kB / 0.9589 GB, free: 4.891 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.088e-05/0.7575, allocations: 100.1 kB / 0.959 GB, free: 4.793 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.943e-05/0.7575, allocations: 9.25 kB / 0.959 GB, free: 4.785 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.009e-05/0.7575, allocations: 9.719 kB / 0.959 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.345e-05/0.7576, allocations: 321.4 kB / 0.9593 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00016/0.7577, allocations: 47.61 kB / 0.9594 GB, free: 4.43 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001629/0.7579, allocations: 44.58 kB / 0.9594 GB, free: 4.414 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002913/0.7582, allocations: 97.56 kB / 0.9595 GB, free: 4.371 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.265e-06/0.7582, allocations: 3.938 kB / 0.9595 GB, free: 4.367 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003393/0.7586, allocations: 132.6 kB / 0.9597 GB, free: 4.293 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.389e-05/0.7586, allocations: 8.344 kB / 0.9597 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.047e-06/0.7586, allocations: 1.344 kB / 0.9597 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.174e-05/0.7586, allocations: 0 / 0.9597 GB, free: 4.289 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000128/0.7587, allocations: 23.31 kB / 0.9597 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.88e-06/0.7588, allocations: 0 / 0.9597 GB, free: 4.281 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.325e-05/0.7588, allocations: 16.48 kB / 0.9597 GB, free: 4.277 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.031e-05/0.7589, allocations: 5.656 kB / 0.9597 GB, free: 4.273 MB / 0.7169 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 6.078e-05/0.7589, allocations: 116.7 kB / 0.9598 GB, free: 4.152 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.596e-05/0.759, allocations: 6.453 kB / 0.9598 GB, free: 4.148 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003881/0.7594, allocations: 137 kB / 0.96 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.7594, allocations: 0 / 0.96 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.918e-06/0.7594, allocations: 0 / 0.96 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/0.7594, allocations: 0 / 0.96 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001345/0.7595, allocations: 187.9 kB / 0.9601 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.7595, allocations: 0 / 0.9601 GB, free: 3.844 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.775e-05/0.7596, allocations: 27.38 kB / 0.9602 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.874e-06/0.7597, allocations: 384 / 0.9602 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.927e-06/0.7597, allocations: 0 / 0.9602 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.192e-06/0.7597, allocations: 1.562 kB / 0.9602 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.7597, allocations: 0 / 0.9602 GB, free: 3.832 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003698/0.76, allocations: 234.4 kB / 0.9604 GB, free: 3.648 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.186e-05/0.7601, allocations: 82.39 kB / 0.9605 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.535e-05/0.7601, allocations: 5.375 kB / 0.9605 GB, free: 3.547 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001117/0.7602, allocations: 14.98 kB / 0.9605 GB, free: 3.543 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.02e-05/0.7603, allocations: 6.734 kB / 0.9605 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.733e-06/0.7603, allocations: 1.375 kB / 0.9605 GB, free: 3.539 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 3.212e-05/0.7603, allocations: 91.52 kB / 0.9606 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7603, allocations: 0 / 0.9606 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002315/0.7606, allocations: 13.62 kB / 0.9606 GB, free: 3.453 MB / 0.7169 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.0001251/0.7607, allocations: 103.7 kB / 0.9607 GB, free: 3.359 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0003633/0.7611, allocations: 95.17 kB / 0.9608 GB, free: 3.328 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.064e-06/0.7611, allocations: 3.938 kB / 0.9608 GB, free: 3.324 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001624/0.7612, allocations: 52.89 kB / 0.9608 GB, free: 3.305 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002751/0.7615, allocations: 12.58 kB / 0.9608 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003367/0.7619, allocations: 190.9 kB / 0.961 GB, free: 3.113 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001219/0.762, allocations: 0.6891 MB / 0.9617 GB, free: 2.41 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.757e-05/0.762, allocations: 12.81 kB / 0.9617 GB, free: 2.398 MB / 0.7169 GB Notification: Performance of SimCode: time 3.6e-07/0.762, allocations: 5.312 kB / 0.9617 GB, free: 2.395 MB / 0.7169 GB Notification: Performance of Templates: time 0.002483/0.7645, allocations: 0.9226 MB / 0.9626 GB, free: 1.926 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.Average.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.Average.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches