Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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.00154/0.00154, allocations: 107.6 kB / 18.95 MB, free: 2.805 MB / 14.72 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.002082/0.002082, allocations: 210.9 kB / 22.24 MB, free: 5.117 MB / 14.72 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.584/1.584, allocations: 230.6 MB / 256 MB, free: 7.828 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.002505/0.002505, allocations: 287.6 kB / 312.7 MB, free: 2.637 MB / 238.1 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 1.235/1.235, allocations: 180.6 MB / 0.5369 GB, free: 14.59 MB / 382.1 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 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: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Average,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Average,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: NcDataReader2 requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: BuildingSystems requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002992/0.002992, allocations: 105.7 kB / 0.7395 GB, free: 28.02 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1847/0.1877, allocations: 95.39 MB / 0.8327 GB, free: 8.367 MB / 0.5763 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Average): time 0.002895/0.1906, allocations: 1.552 MB / 0.8342 GB, free: 6.805 MB / 0.5763 GB Notification: Performance of NFInst.instExpressions: time 0.0003481/0.191, allocations: 112.5 kB / 0.8343 GB, free: 6.691 MB / 0.5763 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.073e-05/0.191, allocations: 0 / 0.8343 GB, free: 6.691 MB / 0.5763 GB Notification: Performance of NFTyping.typeComponents: time 0.0001206/0.1912, allocations: 7.875 kB / 0.8343 GB, free: 6.684 MB / 0.5763 GB Notification: Performance of NFTyping.typeBindings: time 2.564e-05/0.1912, allocations: 11.92 kB / 0.8343 GB, free: 6.672 MB / 0.5763 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002506/0.1914, allocations: 27.95 kB / 0.8343 GB, free: 6.645 MB / 0.5763 GB Notification: Performance of NFFlatten.flatten: time 0.0001392/0.1916, allocations: 59.78 kB / 0.8344 GB, free: 6.586 MB / 0.5763 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001191/0.1917, allocations: 11.98 kB / 0.8344 GB, free: 6.574 MB / 0.5763 GB Notification: Performance of NFEvalConstants.evaluate: time 6.063e-05/0.1917, allocations: 27.92 kB / 0.8344 GB, free: 6.547 MB / 0.5763 GB Notification: Performance of NFSimplifyModel.simplify: time 7.171e-05/0.1918, allocations: 31.84 kB / 0.8344 GB, free: 6.516 MB / 0.5763 GB Notification: Performance of NFPackage.collectConstants: time 1.66e-05/0.1918, allocations: 4 kB / 0.8345 GB, free: 6.512 MB / 0.5763 GB Notification: Performance of NFFlatten.collectFunctions: time 5.926e-05/0.1919, allocations: 11.98 kB / 0.8345 GB, free: 6.5 MB / 0.5763 GB Notification: Performance of NFScalarize.scalarize: time 4.302e-05/0.1919, allocations: 15.98 kB / 0.8345 GB, free: 6.484 MB / 0.5763 GB Notification: Performance of NFVerifyModel.verify: time 3.774e-05/0.192, allocations: 23.86 kB / 0.8345 GB, free: 6.461 MB / 0.5763 GB Notification: Performance of NFConvertDAE.convert: time 0.0001446/0.1921, allocations: 59.97 kB / 0.8346 GB, free: 6.402 MB / 0.5763 GB Notification: Performance of FrontEnd - DAE generated: time 4.157e-06/0.1921, allocations: 0 / 0.8346 GB, free: 6.402 MB / 0.5763 GB Notification: Performance of FrontEnd: time 1.413e-06/0.1921, allocations: 3.938 kB / 0.8346 GB, free: 6.398 MB / 0.5763 GB Notification: Performance of Transformations before backend: time 1.01e-05/0.1921, allocations: 0 / 0.8346 GB, free: 6.398 MB / 0.5763 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.0005335/0.1927, allocations: 311.1 kB / 0.8349 GB, free: 6.062 MB / 0.5763 GB Notification: Performance of prepare preOptimizeDAE: time 3.647e-05/0.1927, allocations: 9.344 kB / 0.8349 GB, free: 6.055 MB / 0.5763 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.033e-05/0.1927, allocations: 42.69 kB / 0.8349 GB, free: 6.004 MB / 0.5763 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.7e-05/0.1928, allocations: 4.891 kB / 0.8349 GB, free: 6 MB / 0.5763 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001758/0.1929, allocations: 130.5 kB / 0.835 GB, free: 5.848 MB / 0.5763 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.174e-05/0.193, allocations: 4.375 kB / 0.835 GB, free: 5.844 MB / 0.5763 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.299e-05/0.193, allocations: 384 / 0.835 GB, free: 5.844 MB / 0.5763 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002788/0.1933, allocations: 90.14 kB / 0.8351 GB, free: 5.75 MB / 0.5763 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.1933, allocations: 7.938 kB / 0.8351 GB, free: 5.742 MB / 0.5763 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.207e-06/0.1933, allocations: 0 / 0.8351 GB, free: 5.742 MB / 0.5763 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.308e-06/0.1933, allocations: 4 kB / 0.8351 GB, free: 5.738 MB / 0.5763 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003079/0.1936, allocations: 79.91 kB / 0.8352 GB, free: 5.66 MB / 0.5763 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005411/0.1941, allocations: 291.7 kB / 0.8355 GB, free: 5.332 MB / 0.5763 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002046/0.1943, allocations: 58.53 kB / 0.8355 GB, free: 5.266 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001559/0.1945, allocations: 42.59 kB / 0.8356 GB, free: 5.223 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 3.549e-05/0.1945, allocations: 4 kB / 0.8356 GB, free: 5.219 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.047e-05/0.1946, allocations: 30.56 kB / 0.8356 GB, free: 5.18 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=3): time 1.493e-06/0.1946, allocations: 0 / 0.8356 GB, free: 5.18 MB / 0.5763 GB Notification: Performance of matching and sorting (n=3): time 0.0005527/0.1951, allocations: 145.6 kB / 0.8358 GB, free: 5.031 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.638e-05/0.1952, allocations: 55.41 kB / 0.8358 GB, free: 4.965 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001013/0.1953, allocations: 113.8 kB / 0.8359 GB, free: 4.844 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 1.871e-05/0.1953, allocations: 25.7 kB / 0.8359 GB, free: 4.812 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 9.38e-05/0.1954, allocations: 100.1 kB / 0.836 GB, free: 4.711 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 2.022e-05/0.1954, allocations: 7.891 kB / 0.836 GB, free: 4.703 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.03e-05/0.1955, allocations: 13.72 kB / 0.8361 GB, free: 4.684 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.0001622/0.1956, allocations: 322.8 kB / 0.8364 GB, free: 4.359 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001483/0.1958, allocations: 35.95 kB / 0.8364 GB, free: 4.324 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001383/0.1959, allocations: 35.95 kB / 0.8364 GB, free: 4.289 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002704/0.1962, allocations: 76.66 kB / 0.8365 GB, free: 4.211 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.1962, allocations: 4 kB / 0.8365 GB, free: 4.207 MB / 0.5763 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003205/0.1965, allocations: 105.9 kB / 0.8366 GB, free: 4.098 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 1.603e-05/0.1965, allocations: 4 kB / 0.8366 GB, free: 4.094 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.903e-06/0.1965, allocations: 3.984 kB / 0.8366 GB, free: 4.09 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.565e-05/0.1966, allocations: 7.984 kB / 0.8366 GB, free: 4.082 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001207/0.1967, allocations: 15.92 kB / 0.8366 GB, free: 4.066 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.1967, allocations: 0 / 0.8366 GB, free: 4.066 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.151e-05/0.1968, allocations: 15.98 kB / 0.8367 GB, free: 4.051 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.12e-05/0.1968, allocations: 0 / 0.8367 GB, free: 4.051 MB / 0.5763 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.0001087/0.1969, allocations: 126.4 kB / 0.8368 GB, free: 3.918 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.636e-05/0.1969, allocations: 7.953 kB / 0.8368 GB, free: 3.91 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003906/0.1973, allocations: 113.5 kB / 0.8369 GB, free: 3.785 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.677e-06/0.1973, allocations: 0 / 0.8369 GB, free: 3.785 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.1973, allocations: 4 kB / 0.8369 GB, free: 3.781 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.256e-06/0.1973, allocations: 0 / 0.8369 GB, free: 3.781 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001893/0.1975, allocations: 144.7 kB / 0.837 GB, free: 3.598 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.1975, allocations: 4 kB / 0.837 GB, free: 3.594 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.663e-05/0.1976, allocations: 15.97 kB / 0.8371 GB, free: 3.578 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.963e-06/0.1976, allocations: 0 / 0.8371 GB, free: 3.578 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.788e-06/0.1976, allocations: 4 kB / 0.8371 GB, free: 3.574 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.1976, allocations: 4 kB / 0.8371 GB, free: 3.57 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.1976, allocations: 0 / 0.8371 GB, free: 3.57 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003839/0.198, allocations: 211.3 kB / 0.8373 GB, free: 3.348 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 9.698e-06/0.198, allocations: 0 / 0.8373 GB, free: 3.348 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.833e-05/0.198, allocations: 4 kB / 0.8373 GB, free: 3.344 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.99e-05/0.1981, allocations: 7.984 kB / 0.8373 GB, free: 3.336 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.973e-05/0.1982, allocations: 7.984 kB / 0.8373 GB, free: 3.328 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.834e-06/0.1982, allocations: 0 / 0.8373 GB, free: 3.328 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 6.407e-05/0.1983, allocations: 91.27 kB / 0.8374 GB, free: 3.238 MB / 0.5763 GB Notification: Performance of sort global known variables: time 9e-08/0.1983, allocations: 4 kB / 0.8374 GB, free: 3.234 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.0002343/0.1985, allocations: 19.94 kB / 0.8374 GB, free: 3.215 MB / 0.5763 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.0007447/0.1992, allocations: 0.728 MB / 0.8381 GB, free: 2.461 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.0003594/0.1996, allocations: 79.86 kB / 0.8382 GB, free: 2.383 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1996, allocations: 0 / 0.8382 GB, free: 2.383 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.0001496/0.1997, allocations: 39.95 kB / 0.8382 GB, free: 2.344 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000331/0.2001, allocations: 12 kB / 0.8382 GB, free: 2.332 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001938/0.202, allocations: 1.429 MB / 0.8396 GB, free: 0.8242 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.475e-05/0.2021, allocations: 75.33 kB / 0.8397 GB, free: 0.7305 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 4.597e-05/0.2021, allocations: 7.984 kB / 0.8397 GB, free: 0.7227 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.123e-05/0.2022, allocations: 15.44 kB / 0.8397 GB, free: 0.707 MB / 0.5763 GB Notification: Performance of SimCode: time 4.61e-07/0.2022, allocations: 7.875 kB / 0.8397 GB, free: 0.6992 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02987/0.232, allocations: 2.398 MB / 0.8421 GB, free: 14.44 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/11.58, allocations: 6.328 kB / 0.8421 GB, free: 14.43 MB / 0.5919 GB " [Timeout remaining time 648] (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 16.119896426796913] Failed to read output from testmodel.py, exit status != 0: 11.680397656746209 11.697205197 11.501849188 Calling exit ...