Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001785/0.001785, allocations: 88.72 kB / 19.44 MB, free: 356 kB / 13.93 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.002225/0.002225, allocations: 161.7 kB / 22.76 MB, free: 1.68 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 1.539/1.539, allocations: 177.1 MB / 203.1 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 178] 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 3.191/3.191, allocations: 429.6 MB / 0.673 GB, free: 3.879 MB / 0.6355 GB " [Timeout remaining time 176] 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.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|average.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Average") translateModel(Buildings.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2500,variableFilter="time|average.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Average") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 5.801e-06/5.801e-06, allocations: 4 kB / 0.8776 GB, free: 6.5 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.971e-05/3.551e-05, allocations: 2.312 kB / 0.8776 GB, free: 6.496 MB / 0.8386 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.003399/0.003434, allocations: 1.545 MB / 0.8791 GB, free: 4.965 MB / 0.8386 GB Notification: Performance of NFInst.instExpressions: time 0.0003802/0.003814, allocations: 124.2 kB / 0.8792 GB, free: 4.844 MB / 0.8386 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.805e-05/0.003873, allocations: 4.844 kB / 0.8792 GB, free: 4.84 MB / 0.8386 GB Notification: Performance of NFTyping.typeComponents: time 0.0001318/0.004004, allocations: 8.578 kB / 0.8792 GB, free: 4.832 MB / 0.8386 GB Notification: Performance of NFTyping.typeBindings: time 3.068e-05/0.004035, allocations: 8.719 kB / 0.8792 GB, free: 4.824 MB / 0.8386 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002429/0.004278, allocations: 24.81 kB / 0.8793 GB, free: 4.801 MB / 0.8386 GB Notification: Performance of NFFlatten.flatten: time 0.0001152/0.004393, allocations: 59.78 kB / 0.8793 GB, free: 4.742 MB / 0.8386 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001017/0.004495, allocations: 20.72 kB / 0.8793 GB, free: 4.723 MB / 0.8386 GB Notification: Performance of NFEvalConstants.evaluate: time 7.764e-05/0.004572, allocations: 27.97 kB / 0.8794 GB, free: 4.695 MB / 0.8386 GB Notification: Performance of NFSimplifyModel.simplify: time 7.084e-05/0.004643, allocations: 24.66 kB / 0.8794 GB, free: 4.672 MB / 0.8386 GB Notification: Performance of NFPackage.collectConstants: time 1.989e-05/0.004663, allocations: 4 kB / 0.8794 GB, free: 4.668 MB / 0.8386 GB Notification: Performance of NFFlatten.collectFunctions: time 7.956e-05/0.004743, allocations: 16.55 kB / 0.8794 GB, free: 4.652 MB / 0.8386 GB Notification: Performance of NFScalarize.scalarize: time 4.703e-05/0.00479, allocations: 16.67 kB / 0.8794 GB, free: 4.637 MB / 0.8386 GB Notification: Performance of NFVerifyModel.verify: time 3.692e-05/0.004827, allocations: 15.98 kB / 0.8794 GB, free: 4.621 MB / 0.8386 GB Notification: Performance of NFConvertDAE.convert: time 0.0001537/0.00498, allocations: 69.06 kB / 0.8795 GB, free: 4.555 MB / 0.8386 GB Notification: Performance of FrontEnd - DAE generated: time 1.994e-06/0.004982, allocations: 0 / 0.8795 GB, free: 4.555 MB / 0.8386 GB Notification: Performance of FrontEnd: time 6.11e-07/0.004983, allocations: 0 / 0.8795 GB, free: 4.555 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 3.987e-06/0.004987, allocations: 0 / 0.8795 GB, free: 4.555 MB / 0.8386 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.0005824/0.005569, allocations: 311 kB / 0.8798 GB, free: 4.219 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.552e-05/0.005605, allocations: 9.125 kB / 0.8798 GB, free: 4.211 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.425e-05/0.005659, allocations: 12.89 kB / 0.8798 GB, free: 4.199 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000196/0.005855, allocations: 125.7 kB / 0.88 GB, free: 4.051 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.106e-05/0.005866, allocations: 5.438 kB / 0.88 GB, free: 4.047 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.393e-05/0.00588, allocations: 4.375 kB / 0.88 GB, free: 4.043 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003073/0.006187, allocations: 87.27 kB / 0.88 GB, free: 3.953 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.666e-06/0.006196, allocations: 192 / 0.88 GB, free: 3.953 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.316e-05/0.006209, allocations: 5.156 kB / 0.88 GB, free: 3.949 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.117e-06/0.006213, allocations: 384 / 0.88 GB, free: 3.949 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003473/0.006561, allocations: 85.97 kB / 0.8801 GB, free: 3.867 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005558/0.007116, allocations: 257.6 kB / 0.8804 GB, free: 3.586 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002285/0.007345, allocations: 60.38 kB / 0.8804 GB, free: 3.52 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001669/0.007512, allocations: 41.52 kB / 0.8805 GB, free: 3.477 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 3.607e-05/0.007548, allocations: 4 kB / 0.8805 GB, free: 3.473 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.726e-05/0.007595, allocations: 40.14 kB / 0.8805 GB, free: 3.426 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 9.31e-07/0.007596, allocations: 0 / 0.8805 GB, free: 3.426 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3): time 0.0006264/0.008222, allocations: 140.5 kB / 0.8806 GB, free: 3.285 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.01e-05/0.008273, allocations: 55.41 kB / 0.8807 GB, free: 3.219 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001145/0.008387, allocations: 113.8 kB / 0.8808 GB, free: 3.098 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 2.28e-05/0.00841, allocations: 25.7 kB / 0.8808 GB, free: 3.066 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 7.486e-05/0.008485, allocations: 100 kB / 0.8809 GB, free: 2.965 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 2.098e-05/0.008506, allocations: 9.516 kB / 0.8809 GB, free: 2.957 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.841e-05/0.008554, allocations: 13.72 kB / 0.881 GB, free: 2.938 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001765/0.008731, allocations: 322.8 kB / 0.8813 GB, free: 2.613 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001608/0.008891, allocations: 32.58 kB / 0.8813 GB, free: 2.582 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001575/0.009049, allocations: 41.61 kB / 0.8813 GB, free: 2.543 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000303/0.009352, allocations: 77.89 kB / 0.8814 GB, free: 2.465 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.472e-06/0.009353, allocations: 0.625 kB / 0.8814 GB, free: 2.465 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003771/0.009731, allocations: 113.5 kB / 0.8815 GB, free: 2.348 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.591e-05/0.009746, allocations: 8 kB / 0.8815 GB, free: 2.34 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.009751, allocations: 0 / 0.8815 GB, free: 2.34 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.957e-05/0.009771, allocations: 3.984 kB / 0.8815 GB, free: 2.336 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001245/0.009895, allocations: 11.98 kB / 0.8815 GB, free: 2.324 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.689e-06/0.0099, allocations: 4 kB / 0.8815 GB, free: 2.32 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.423e-05/0.009984, allocations: 11.98 kB / 0.8816 GB, free: 2.309 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.957e-05/0.01, allocations: 4 kB / 0.8816 GB, free: 2.305 MB / 0.8386 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 0.0001025/0.01011, allocations: 117.8 kB / 0.8817 GB, free: 2.18 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.293e-05/0.01014, allocations: 3.938 kB / 0.8817 GB, free: 2.176 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004154/0.01055, allocations: 113.5 kB / 0.8818 GB, free: 2.059 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.926e-06/0.01056, allocations: 0 / 0.8818 GB, free: 2.059 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.307e-06/0.01056, allocations: 0 / 0.8818 GB, free: 2.059 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.374e-06/0.01056, allocations: 8 kB / 0.8818 GB, free: 2.051 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001825/0.01075, allocations: 129.2 kB / 0.8819 GB, free: 1.895 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.01075, allocations: 0 / 0.8819 GB, free: 1.895 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001078/0.01085, allocations: 15.98 kB / 0.8819 GB, free: 1.879 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.531e-06/0.01086, allocations: 3.938 kB / 0.8819 GB, free: 1.875 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.734e-06/0.01087, allocations: 0 / 0.8819 GB, free: 1.875 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.373e-06/0.01087, allocations: 0 / 0.8819 GB, free: 1.875 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.01087, allocations: 4 kB / 0.8819 GB, free: 1.871 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004309/0.0113, allocations: 203.4 kB / 0.8821 GB, free: 1.656 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 1.518e-05/0.01132, allocations: 7.891 kB / 0.8821 GB, free: 1.648 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.904e-05/0.01134, allocations: 7.984 kB / 0.8821 GB, free: 1.641 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001236/0.01146, allocations: 7.984 kB / 0.8822 GB, free: 1.633 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.556e-05/0.0115, allocations: 4 kB / 0.8822 GB, free: 1.629 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.021e-05/0.01151, allocations: 4 kB / 0.8822 GB, free: 1.625 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 7.338e-05/0.01159, allocations: 91.27 kB / 0.8822 GB, free: 1.535 MB / 0.8386 GB Notification: Performance of sort global known variables: time 9e-08/0.01159, allocations: 3.938 kB / 0.8822 GB, free: 1.531 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002433/0.01183, allocations: 16 kB / 0.8823 GB, free: 1.516 MB / 0.8386 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.0001461/0.01198, allocations: 95.23 kB / 0.8824 GB, free: 1.41 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 0.0003841/0.01236, allocations: 71.92 kB / 0.8824 GB, free: 1.34 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.493e-06/0.01236, allocations: 0 / 0.8824 GB, free: 1.34 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 0.0001816/0.01254, allocations: 51.89 kB / 0.8825 GB, free: 1.289 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002889/0.01283, allocations: 10.19 kB / 0.8825 GB, free: 1.281 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003833/0.01322, allocations: 156.3 kB / 0.8826 GB, free: 1.102 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001002/0.01332, allocations: 75.33 kB / 0.8827 GB, free: 1.008 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 4.722e-05/0.01336, allocations: 7.984 kB / 0.8827 GB, free: 1 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.978e-05/0.0134, allocations: 16.5 kB / 0.8827 GB, free: 0.9805 MB / 0.8386 GB Notification: Performance of SimCode: time 5.21e-07/0.0134, allocations: 0 / 0.8827 GB, free: 0.9805 MB / 0.8386 GB Notification: Performance of Templates: time 0.003692/0.0171, allocations: 0.8285 MB / 0.8835 GB, free: 172 kB / 0.8386 GB " [Timeout remaining time 300] make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.Average.makefile [Timeout 300] (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Average.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=800 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) [Timeout 800] diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Average_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.Average.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 8.058044366072863]