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.0009302/0.0009302, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 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.0009005/0.0009005, allocations: 165.9 kB / 22.46 MB, free: 2.105 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.928/0.928, allocations: 177.1 MB / 202.8 MB, free: 5.754 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.723/1.723, allocations: 377.8 MB / 0.6221 GB, free: 8.676 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: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Average,fileNamePrefix="Buildings_12_Buildings_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.302e-06/1.302e-06, allocations: 0 / 0.981 GB, free: 2.613 MB / 0.9323 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.676e-05/1.806e-05, allocations: 2.281 kB / 0.981 GB, free: 2.609 MB / 0.9323 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Average): time 0.001819/0.001837, allocations: 1.552 MB / 0.9825 GB, free: 1.051 MB / 0.9323 GB Notification: Performance of NFInst.instExpressions: time 0.0002569/0.002094, allocations: 115.5 kB / 0.9826 GB, free: 0.9375 MB / 0.9323 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.284e-05/0.002136, allocations: 0 / 0.9826 GB, free: 0.9375 MB / 0.9323 GB Notification: Performance of NFTyping.typeComponents: time 0.0001116/0.002248, allocations: 23.8 kB / 0.9826 GB, free: 0.9141 MB / 0.9323 GB Notification: Performance of NFTyping.typeBindings: time 1.746e-05/0.002265, allocations: 4 kB / 0.9826 GB, free: 0.9102 MB / 0.9323 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002327/0.002498, allocations: 27.91 kB / 0.9826 GB, free: 0.8828 MB / 0.9323 GB Notification: Performance of NFFlatten.flatten: time 8.568e-05/0.002584, allocations: 59.77 kB / 0.9827 GB, free: 0.8242 MB / 0.9323 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000103/0.002687, allocations: 19.92 kB / 0.9827 GB, free: 0.8047 MB / 0.9323 GB Notification: Performance of NFEvalConstants.evaluate: time 6.186e-05/0.002749, allocations: 31.97 kB / 0.9827 GB, free: 0.7734 MB / 0.9323 GB Notification: Performance of NFSimplifyModel.simplify: time 5.667e-05/0.002805, allocations: 23.91 kB / 0.9828 GB, free: 0.75 MB / 0.9323 GB Notification: Performance of NFPackage.collectConstants: time 1.564e-05/0.002821, allocations: 4 kB / 0.9828 GB, free: 0.7461 MB / 0.9323 GB Notification: Performance of NFFlatten.collectFunctions: time 5.846e-05/0.00288, allocations: 19.97 kB / 0.9828 GB, free: 0.7266 MB / 0.9323 GB Notification: Performance of NFScalarize.scalarize: time 3.7e-05/0.002917, allocations: 15.92 kB / 0.9828 GB, free: 0.7109 MB / 0.9323 GB Notification: Performance of NFVerifyModel.verify: time 2.297e-05/0.00294, allocations: 8 kB / 0.9828 GB, free: 0.7031 MB / 0.9323 GB Notification: Performance of NFConvertDAE.convert: time 0.0001187/0.003058, allocations: 71.78 kB / 0.9829 GB, free: 0.6328 MB / 0.9323 GB Notification: Performance of FrontEnd - DAE generated: time 2.074e-06/0.00306, allocations: 0 / 0.9829 GB, free: 0.6328 MB / 0.9323 GB Notification: Performance of FrontEnd: time 6.41e-07/0.003061, allocations: 0 / 0.9829 GB, free: 0.6328 MB / 0.9323 GB Notification: Performance of Transformations before backend: time 3.637e-06/0.003065, allocations: 0 / 0.9829 GB, free: 0.6328 MB / 0.9323 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.0003568/0.003421, allocations: 302.1 kB / 0.9832 GB, free: 312 kB / 0.9323 GB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.003457, allocations: 12.03 kB / 0.9832 GB, free: 300 kB / 0.9323 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.056e-05/0.003488, allocations: 34.75 kB / 0.9832 GB, free: 256 kB / 0.9323 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.449e-05/0.003512, allocations: 8.891 kB / 0.9832 GB, free: 248 kB / 0.9323 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001227/0.003635, allocations: 129.6 kB / 0.9833 GB, free: 92 kB / 0.9323 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.334e-06/0.003643, allocations: 4.375 kB / 0.9833 GB, free: 88 kB / 0.9323 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.699e-06/0.003652, allocations: 4.375 kB / 0.9834 GB, free: 84 kB / 0.9323 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001953/0.003848, allocations: 94.17 kB / 0.9834 GB, free: 15.98 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.492e-06/0.003854, allocations: 192 / 0.9834 GB, free: 15.98 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.085e-06/0.003862, allocations: 384 / 0.9834 GB, free: 15.98 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.003869, allocations: 4.125 kB / 0.9834 GB, free: 15.98 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001557/0.004025, allocations: 91.8 kB / 0.9835 GB, free: 15.89 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003337/0.004358, allocations: 279.8 kB / 0.9838 GB, free: 15.57 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001122/0.00447, allocations: 58.56 kB / 0.9839 GB, free: 15.51 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 7.499e-05/0.004545, allocations: 44.91 kB / 0.9839 GB, free: 15.46 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 2.768e-05/0.004573, allocations: 0 / 0.9839 GB, free: 15.46 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.697e-05/0.00459, allocations: 38.56 kB / 0.9839 GB, free: 15.41 MB / 0.948 GB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.004591, allocations: 0 / 0.9839 GB, free: 15.41 MB / 0.948 GB Notification: Performance of matching and sorting (n=3): time 0.0003023/0.004894, allocations: 129.6 kB / 0.9841 GB, free: 15.28 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.725e-05/0.004921, allocations: 51.41 kB / 0.9841 GB, free: 15.22 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.368e-05/0.004984, allocations: 125.8 kB / 0.9842 GB, free: 15.09 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 1.046e-05/0.004995, allocations: 29.7 kB / 0.9843 GB, free: 15.05 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001772/0.005172, allocations: 99.97 kB / 0.9844 GB, free: 14.95 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 1.789e-05/0.00519, allocations: 15.88 kB / 0.9844 GB, free: 14.93 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.659e-05/0.005217, allocations: 17.7 kB / 0.9844 GB, free: 14.91 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 7.015e-05/0.005287, allocations: 314.8 kB / 0.9847 GB, free: 14.59 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.364e-05/0.00536, allocations: 35.95 kB / 0.9847 GB, free: 14.56 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.538e-05/0.005426, allocations: 31.97 kB / 0.9848 GB, free: 14.53 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001345/0.00556, allocations: 76.72 kB / 0.9848 GB, free: 14.45 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.854e-06/0.005562, allocations: 0 / 0.9848 GB, free: 14.45 MB / 0.948 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001681/0.00573, allocations: 109.6 kB / 0.9849 GB, free: 14.34 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.2e-05/0.005742, allocations: 6.969 kB / 0.9849 GB, free: 14.33 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.005746, allocations: 0 / 0.9849 GB, free: 14.33 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 9.839e-06/0.005756, allocations: 4 kB / 0.9849 GB, free: 14.33 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.256e-05/0.005829, allocations: 27.91 kB / 0.985 GB, free: 14.3 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.117e-06/0.005833, allocations: 0 / 0.985 GB, free: 14.3 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.513e-05/0.005868, allocations: 11.98 kB / 0.985 GB, free: 14.29 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.544e-05/0.005884, allocations: 0 / 0.985 GB, free: 14.29 MB / 0.948 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.3e-05/0.005937, allocations: 117.8 kB / 0.9851 GB, free: 14.16 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.411e-05/0.005951, allocations: 7.953 kB / 0.9851 GB, free: 14.16 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001924/0.006143, allocations: 113.6 kB / 0.9852 GB, free: 14.04 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.006145, allocations: 4 kB / 0.9852 GB, free: 14.04 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.006149, allocations: 0 / 0.9852 GB, free: 14.04 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.474e-06/0.006152, allocations: 384 / 0.9852 GB, free: 14.04 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000105/0.006257, allocations: 144.7 kB / 0.9853 GB, free: 13.85 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.006258, allocations: 0 / 0.9853 GB, free: 13.85 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.839e-05/0.006296, allocations: 15.98 kB / 0.9854 GB, free: 13.84 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.022e-06/0.006297, allocations: 0 / 0.9854 GB, free: 13.84 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.791e-06/0.006303, allocations: 4 kB / 0.9854 GB, free: 13.83 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.51e-07/0.006303, allocations: 3.938 kB / 0.9854 GB, free: 13.83 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.773e-06/0.006305, allocations: 3.984 kB / 0.9854 GB, free: 13.82 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001922/0.006497, allocations: 207.4 kB / 0.9856 GB, free: 13.61 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 5.851e-06/0.006503, allocations: 3.938 kB / 0.9856 GB, free: 13.6 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.926e-06/0.006512, allocations: 0 / 0.9856 GB, free: 13.6 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.62e-05/0.006568, allocations: 19.97 kB / 0.9856 GB, free: 13.58 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.139e-05/0.0066, allocations: 4 kB / 0.9856 GB, free: 13.58 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.59e-06/0.006605, allocations: 4 kB / 0.9856 GB, free: 13.57 MB / 0.948 GB Notification: Performance of sorting global known variables: time 3.234e-05/0.006638, allocations: 95.2 kB / 0.9857 GB, free: 13.48 MB / 0.948 GB Notification: Performance of sort global known variables: time 5.1e-08/0.006638, allocations: 0 / 0.9857 GB, free: 13.48 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.000151/0.006789, allocations: 11.94 kB / 0.9857 GB, free: 13.47 MB / 0.948 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.0003805/0.007169, allocations: 0.7396 MB / 0.9864 GB, free: 12.7 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.0001835/0.007353, allocations: 79.92 kB / 0.9865 GB, free: 12.62 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.342e-06/0.007354, allocations: 0 / 0.9865 GB, free: 12.62 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 7.436e-05/0.007428, allocations: 43.89 kB / 0.9865 GB, free: 12.58 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001953/0.007624, allocations: 4 kB / 0.9865 GB, free: 12.57 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001065/0.008689, allocations: 1.424 MB / 0.9879 GB, free: 11.07 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.318e-05/0.008742, allocations: 79.33 kB / 0.988 GB, free: 10.97 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 3.093e-05/0.008773, allocations: 7.984 kB / 0.988 GB, free: 10.96 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.383e-05/0.008807, allocations: 16.5 kB / 0.988 GB, free: 10.95 MB / 0.948 GB Notification: Performance of SimCode: time 4.91e-07/0.008807, allocations: 0 / 0.988 GB, free: 10.95 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01465/0.02346, allocations: 2.521 MB / 0.9905 GB, free: 8.57 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate platform static: time 6.682/6.706, allocations: 12 kB / 0.9905 GB, free: 8.559 MB / 0.948 GB " [Timeout remaining time 293] (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 & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Utilities.Math.Examples.Average_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_12_Buildings_Utilities_Math_Examples_Average.fmu > Buildings_12_Buildings.Utilities.Math.Examples.Average.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.Math.Examples.Average_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_Math_Examples_Average.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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: 10.880498700775206]