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.001379/0.001379, allocations: 114.3 kB / 18.94 MB, free: 2.957 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.001601/0.001601, allocations: 216.4 kB / 22.25 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.439/1.439, allocations: 230.6 MB / 256 MB, free: 7.996 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.002441/0.002441, allocations: 290.7 kB / 312.7 MB, free: 2.797 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.284/1.284, allocations: 180.6 MB / 0.5369 GB, free: 13.09 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.002827/0.002827, allocations: 106.9 kB / 0.7396 GB, free: 28.46 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1998/0.2026, allocations: 95.39 MB / 0.8327 GB, free: 8.652 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Average): time 0.003273/0.2059, allocations: 1.573 MB / 0.8343 GB, free: 7.066 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0003706/0.2062, allocations: 116.5 kB / 0.8344 GB, free: 6.949 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.019e-05/0.2063, allocations: 0 / 0.8344 GB, free: 6.949 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001414/0.2064, allocations: 7.938 kB / 0.8344 GB, free: 6.941 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 2.652e-05/0.2065, allocations: 11.88 kB / 0.8344 GB, free: 6.93 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002636/0.2067, allocations: 31.95 kB / 0.8344 GB, free: 6.898 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0001245/0.2069, allocations: 55.78 kB / 0.8345 GB, free: 6.844 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000135/0.207, allocations: 15.98 kB / 0.8345 GB, free: 6.828 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 7.046e-05/0.2071, allocations: 27.91 kB / 0.8345 GB, free: 6.801 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001022/0.2072, allocations: 27.91 kB / 0.8346 GB, free: 6.773 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.906e-05/0.2072, allocations: 4 kB / 0.8346 GB, free: 6.77 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 6.452e-05/0.2072, allocations: 12 kB / 0.8346 GB, free: 6.758 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 5.378e-05/0.2073, allocations: 19.92 kB / 0.8346 GB, free: 6.738 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 4.379e-05/0.2073, allocations: 31.8 kB / 0.8346 GB, free: 6.707 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0001626/0.2075, allocations: 60.02 kB / 0.8347 GB, free: 6.648 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.729e-06/0.2075, allocations: 4 kB / 0.8347 GB, free: 6.645 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.893e-06/0.2075, allocations: 0 / 0.8347 GB, free: 6.645 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.55e-06/0.2075, allocations: 3.938 kB / 0.8347 GB, free: 6.641 MB / 0.5762 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.0005518/0.2081, allocations: 306 kB / 0.835 GB, free: 6.309 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.598e-05/0.2081, allocations: 13.34 kB / 0.835 GB, free: 6.297 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.293e-05/0.2082, allocations: 30.75 kB / 0.835 GB, free: 6.258 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.033e-05/0.2082, allocations: 8.891 kB / 0.835 GB, free: 6.25 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001637/0.2084, allocations: 122.5 kB / 0.8351 GB, free: 6.105 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.052e-05/0.2084, allocations: 4.375 kB / 0.8351 GB, free: 6.102 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.373e-05/0.2084, allocations: 8.375 kB / 0.8352 GB, free: 6.094 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002819/0.2087, allocations: 94.12 kB / 0.8352 GB, free: 5.996 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.179e-05/0.2087, allocations: 3.938 kB / 0.8352 GB, free: 5.992 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.977e-06/0.2087, allocations: 0 / 0.8352 GB, free: 5.992 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.949e-06/0.2087, allocations: 0 / 0.8352 GB, free: 5.992 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002856/0.209, allocations: 83.92 kB / 0.8353 GB, free: 5.91 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005374/0.2095, allocations: 299.7 kB / 0.8356 GB, free: 5.574 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002029/0.2097, allocations: 62.52 kB / 0.8357 GB, free: 5.504 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001495/0.2099, allocations: 46.58 kB / 0.8357 GB, free: 5.457 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.753e-05/0.2099, allocations: 0 / 0.8357 GB, free: 5.457 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.965e-05/0.2099, allocations: 30.56 kB / 0.8357 GB, free: 5.418 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=3): time 8.01e-07/0.2099, allocations: 0 / 0.8357 GB, free: 5.418 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3): time 0.0005563/0.2105, allocations: 145.6 kB / 0.8359 GB, free: 5.27 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.441e-05/0.2105, allocations: 51.41 kB / 0.8359 GB, free: 5.207 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001043/0.2106, allocations: 113.8 kB / 0.836 GB, free: 5.086 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.867e-05/0.2106, allocations: 25.7 kB / 0.8361 GB, free: 5.055 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 6.135e-05/0.2107, allocations: 100.1 kB / 0.8362 GB, free: 4.953 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 2.885e-05/0.2107, allocations: 15.83 kB / 0.8362 GB, free: 4.938 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.236e-05/0.2108, allocations: 17.72 kB / 0.8362 GB, free: 4.914 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001383/0.2109, allocations: 322.8 kB / 0.8365 GB, free: 4.59 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001371/0.2111, allocations: 31.97 kB / 0.8365 GB, free: 4.559 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001531/0.2112, allocations: 35.95 kB / 0.8366 GB, free: 4.523 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002657/0.2115, allocations: 76.78 kB / 0.8366 GB, free: 4.445 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.2115, allocations: 0 / 0.8366 GB, free: 4.445 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003073/0.2118, allocations: 105.5 kB / 0.8367 GB, free: 4.336 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.834e-05/0.2118, allocations: 9.969 kB / 0.8368 GB, free: 4.328 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.929e-06/0.2118, allocations: 0 / 0.8368 GB, free: 4.328 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.635e-05/0.2118, allocations: 4 kB / 0.8368 GB, free: 4.324 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001259/0.2119, allocations: 15.98 kB / 0.8368 GB, free: 4.309 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-06/0.212, allocations: 0 / 0.8368 GB, free: 4.309 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.612e-05/0.212, allocations: 19.97 kB / 0.8368 GB, free: 4.289 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.906e-05/0.2121, allocations: 0 / 0.8368 GB, free: 4.289 MB / 0.5762 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 9.579e-05/0.2121, allocations: 118.4 kB / 0.8369 GB, free: 4.164 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.939e-05/0.2122, allocations: 7.953 kB / 0.8369 GB, free: 4.156 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003789/0.2126, allocations: 125.5 kB / 0.837 GB, free: 4.02 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.996e-06/0.2126, allocations: 0 / 0.837 GB, free: 4.02 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.2126, allocations: 0 / 0.837 GB, free: 4.02 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.885e-06/0.2126, allocations: 0 / 0.837 GB, free: 4.02 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001868/0.2128, allocations: 152.7 kB / 0.8372 GB, free: 3.828 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.2128, allocations: 0 / 0.8372 GB, free: 3.828 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.225e-05/0.2128, allocations: 15.98 kB / 0.8372 GB, free: 3.812 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.2128, allocations: 0 / 0.8372 GB, free: 3.812 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.175e-06/0.2129, allocations: 0 / 0.8372 GB, free: 3.812 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.2129, allocations: 4 kB / 0.8372 GB, free: 3.809 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.2129, allocations: 0 / 0.8372 GB, free: 3.809 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003626/0.2132, allocations: 203.7 kB / 0.8374 GB, free: 3.594 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 9.578e-06/0.2132, allocations: 7.938 kB / 0.8374 GB, free: 3.586 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.44e-05/0.2132, allocations: 0 / 0.8374 GB, free: 3.586 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001045/0.2133, allocations: 23.91 kB / 0.8374 GB, free: 3.562 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.91e-05/0.2134, allocations: 8.031 kB / 0.8374 GB, free: 3.555 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.217e-05/0.2134, allocations: 8 kB / 0.8374 GB, free: 3.547 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 5.991e-05/0.2135, allocations: 91.7 kB / 0.8375 GB, free: 3.457 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8e-08/0.2135, allocations: 0 / 0.8375 GB, free: 3.457 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002306/0.2137, allocations: 15.89 kB / 0.8375 GB, free: 3.441 MB / 0.5762 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.0007206/0.2144, allocations: 0.7281 MB / 0.8382 GB, free: 2.688 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0003447/0.2148, allocations: 83.84 kB / 0.8383 GB, free: 2.605 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.2148, allocations: 0 / 0.8383 GB, free: 2.605 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001447/0.2149, allocations: 39.95 kB / 0.8384 GB, free: 2.566 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000368/0.2153, allocations: 4 kB / 0.8384 GB, free: 2.562 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00185/0.2171, allocations: 1.423 MB / 0.8398 GB, free: 1.062 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003057/0.2174, allocations: 0.6965 MB / 0.8404 GB, free: 348 kB / 0.5762 GB Notification: Performance of simCode: alias equations: time 3.837e-05/0.2175, allocations: 4 kB / 0.8404 GB, free: 344 kB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.288e-05/0.2175, allocations: 19.42 kB / 0.8405 GB, free: 324 kB / 0.5762 GB Notification: Performance of SimCode: time 3.21e-07/0.2175, allocations: 4 kB / 0.8405 GB, free: 320 kB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02717/0.2447, allocations: 1.952 MB / 0.8424 GB, free: 14.5 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.47/10.71, allocations: 7.031 kB / 0.8424 GB, free: 14.49 MB / 0.5919 GB " [Timeout remaining time 649] (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: 15.160528543998225] Failed to read output from testmodel.py, exit status != 0: 10.811951045998285 10.828570569 10.617614306 Calling exit ...