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.002114/0.002114, allocations: 97.88 kB / 19.73 MB, free: 2.117 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.002295/0.002295, allocations: 215.7 kB / 23.03 MB, free: 4.918 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.461/1.461, allocations: 230.6 MB / 256.8 MB, free: 7.816 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.002522/0.002522, allocations: 289 kB / 313.5 MB, free: 2.621 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.248/1.248, allocations: 180.6 MB / 0.5377 GB, free: 14.55 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Average,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average",fmuType="cs",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.002806/0.002806, allocations: 95.41 kB / 0.7403 GB, free: 28.15 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1765/0.1793, allocations: 95.38 MB / 0.8334 GB, free: 8.328 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Average): time 0.002952/0.1823, allocations: 1.553 MB / 0.8349 GB, free: 6.762 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0003436/0.1826, allocations: 108.5 kB / 0.835 GB, free: 6.652 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.102e-05/0.1827, allocations: 0 / 0.835 GB, free: 6.652 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001139/0.1828, allocations: 15.86 kB / 0.835 GB, free: 6.637 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 2.624e-05/0.1828, allocations: 11.92 kB / 0.8351 GB, free: 6.625 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.000231/0.183, allocations: 31.91 kB / 0.8351 GB, free: 6.594 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0001059/0.1831, allocations: 47.91 kB / 0.8351 GB, free: 6.547 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001069/0.1832, allocations: 15.98 kB / 0.8351 GB, free: 6.531 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 5.717e-05/0.1833, allocations: 23.92 kB / 0.8352 GB, free: 6.508 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 7.257e-05/0.1834, allocations: 35.83 kB / 0.8352 GB, free: 6.473 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.68e-05/0.1834, allocations: 4 kB / 0.8352 GB, free: 6.469 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 6.229e-05/0.1834, allocations: 15.98 kB / 0.8352 GB, free: 6.453 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 4.728e-05/0.1835, allocations: 15.92 kB / 0.8352 GB, free: 6.438 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 3.34e-05/0.1835, allocations: 23.94 kB / 0.8353 GB, free: 6.414 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0001411/0.1837, allocations: 63.95 kB / 0.8353 GB, free: 6.352 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.1837, allocations: 0 / 0.8353 GB, free: 6.352 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.152e-06/0.1837, allocations: 7.875 kB / 0.8353 GB, free: 6.344 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 1.032e-05/0.1837, allocations: 0 / 0.8353 GB, free: 6.344 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.0005748/0.1843, allocations: 306.1 kB / 0.8356 GB, free: 6.012 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.1843, allocations: 9.938 kB / 0.8356 GB, free: 6.004 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.694e-05/0.1843, allocations: 8.172 kB / 0.8356 GB, free: 5.996 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.909e-05/0.1844, allocations: 38.73 kB / 0.8357 GB, free: 5.949 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.069e-05/0.1844, allocations: 12.89 kB / 0.8357 GB, free: 5.938 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001669/0.1846, allocations: 118.5 kB / 0.8358 GB, free: 5.797 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.136e-05/0.1846, allocations: 4.375 kB / 0.8358 GB, free: 5.793 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.721e-05/0.1846, allocations: 8.359 kB / 0.8358 GB, free: 5.785 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002755/0.1849, allocations: 93.89 kB / 0.8359 GB, free: 5.688 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.404e-06/0.1849, allocations: 0 / 0.8359 GB, free: 5.688 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.767e-06/0.1849, allocations: 0 / 0.8359 GB, free: 5.688 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.118e-06/0.1849, allocations: 0 / 0.8359 GB, free: 5.688 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003155/0.1852, allocations: 83.91 kB / 0.836 GB, free: 5.605 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005173/0.1857, allocations: 291.7 kB / 0.8363 GB, free: 5.277 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002037/0.1859, allocations: 54.53 kB / 0.8363 GB, free: 5.215 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001543/0.1861, allocations: 46.59 kB / 0.8364 GB, free: 5.168 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.694e-05/0.1861, allocations: 3.984 kB / 0.8364 GB, free: 5.164 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.966e-05/0.1861, allocations: 38.59 kB / 0.8364 GB, free: 5.117 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.1861, allocations: 3.938 kB / 0.8364 GB, free: 5.113 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3): time 0.0005339/0.1867, allocations: 129.6 kB / 0.8365 GB, free: 4.98 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.582e-05/0.1867, allocations: 55.41 kB / 0.8366 GB, free: 4.914 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.726e-05/0.1868, allocations: 113.8 kB / 0.8367 GB, free: 4.793 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.762e-05/0.1868, allocations: 25.7 kB / 0.8367 GB, free: 4.762 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 5.957e-05/0.1869, allocations: 100.1 kB / 0.8368 GB, free: 4.66 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 2.314e-05/0.1869, allocations: 11.89 kB / 0.8368 GB, free: 4.648 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.858e-05/0.1869, allocations: 9.719 kB / 0.8368 GB, free: 4.633 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001426/0.1871, allocations: 326.8 kB / 0.8371 GB, free: 4.305 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001406/0.1872, allocations: 31.97 kB / 0.8372 GB, free: 4.273 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001331/0.1874, allocations: 35.95 kB / 0.8372 GB, free: 4.238 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002659/0.1876, allocations: 80.72 kB / 0.8373 GB, free: 4.156 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.1876, allocations: 0 / 0.8373 GB, free: 4.156 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003247/0.1879, allocations: 113.6 kB / 0.8374 GB, free: 4.039 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.363e-05/0.188, allocations: 4 kB / 0.8374 GB, free: 4.035 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.479e-06/0.188, allocations: 0 / 0.8374 GB, free: 4.035 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.326e-05/0.188, allocations: 3.938 kB / 0.8374 GB, free: 4.031 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001246/0.1881, allocations: 15.98 kB / 0.8374 GB, free: 4.016 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.979e-06/0.1881, allocations: 0 / 0.8374 GB, free: 4.016 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.571e-05/0.1882, allocations: 11.98 kB / 0.8374 GB, free: 4.004 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.103e-05/0.1882, allocations: 7.938 kB / 0.8374 GB, free: 3.996 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.552e-05/0.1883, allocations: 122.4 kB / 0.8375 GB, free: 3.867 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.967e-05/0.1883, allocations: 11.95 kB / 0.8376 GB, free: 3.855 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003593/0.1887, allocations: 105.6 kB / 0.8377 GB, free: 3.738 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.1887, allocations: 384 / 0.8377 GB, free: 3.738 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.735e-06/0.1887, allocations: 7.984 kB / 0.8377 GB, free: 3.73 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.1887, allocations: 0 / 0.8377 GB, free: 3.73 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001901/0.1889, allocations: 140.7 kB / 0.8378 GB, free: 3.551 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.1889, allocations: 0 / 0.8378 GB, free: 3.551 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001/0.189, allocations: 27.95 kB / 0.8378 GB, free: 3.523 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.445e-06/0.189, allocations: 0 / 0.8378 GB, free: 3.523 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.684e-06/0.189, allocations: 0 / 0.8378 GB, free: 3.523 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.189, allocations: 3.938 kB / 0.8378 GB, free: 3.52 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.189, allocations: 0 / 0.8378 GB, free: 3.52 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003669/0.1894, allocations: 207.3 kB / 0.838 GB, free: 3.301 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 1.088e-05/0.1894, allocations: 4 kB / 0.838 GB, free: 3.297 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.682e-05/0.1894, allocations: 8 kB / 0.838 GB, free: 3.289 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001038/0.1895, allocations: 11.98 kB / 0.8381 GB, free: 3.277 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.4e-05/0.1896, allocations: 3.984 kB / 0.8381 GB, free: 3.273 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.889e-06/0.1896, allocations: 4 kB / 0.8381 GB, free: 3.27 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 6.1e-05/0.1896, allocations: 95.2 kB / 0.8382 GB, free: 3.176 MB / 0.5762 GB Notification: Performance of sort global known variables: time 6.1e-08/0.1896, allocations: 0 / 0.8382 GB, free: 3.176 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002279/0.1898, allocations: 8 kB / 0.8382 GB, free: 3.168 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.0007047/0.1906, allocations: 0.7436 MB / 0.8389 GB, free: 2.398 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0003231/0.1909, allocations: 71.92 kB / 0.839 GB, free: 2.328 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.1909, allocations: 0 / 0.839 GB, free: 2.328 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001474/0.191, allocations: 39.95 kB / 0.839 GB, free: 2.289 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002972/0.1913, allocations: 8 kB / 0.839 GB, free: 2.281 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001878/0.1932, allocations: 1.428 MB / 0.8404 GB, free: 0.7773 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.152e-05/0.1933, allocations: 79.33 kB / 0.8405 GB, free: 0.6797 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 4.885e-05/0.1933, allocations: 7.984 kB / 0.8405 GB, free: 0.6719 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.76e-05/0.1934, allocations: 15.38 kB / 0.8405 GB, free: 0.6562 MB / 0.5762 GB Notification: Performance of SimCode: time 3.41e-07/0.1934, allocations: 0 / 0.8405 GB, free: 0.6562 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02303/0.2164, allocations: 2.042 MB / 0.8425 GB, free: 14.77 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.15/11.37, allocations: 11.42 kB / 0.8425 GB, free: 14.76 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_Average_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=50 --tolerance=1e-06 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.847058140090667] Failed to read output from testmodel.py, exit status != 0: 11.523926016991027 11.541668979 11.354778362 Calling exit ...