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.0015/0.0015, allocations: 100.3 kB / 19.7 MB, free: 2.012 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.001674/0.001674, allocations: 220.5 kB / 23 MB, free: 4.914 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.372/1.372, allocations: 230.6 MB / 256.8 MB, free: 7.812 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.002478/0.002478, allocations: 288.2 kB / 313.5 MB, free: 2.605 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.203/1.203, allocations: 180.6 MB / 0.5377 GB, free: 14.52 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: translateModel(BuildingSystems.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average") translateModel(BuildingSystems.Utilities.Math.Examples.Average,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average") [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.002894/0.002894, allocations: 105.3 kB / 0.7407 GB, free: 27.84 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1758/0.1786, allocations: 95.38 MB / 0.8339 GB, free: 7.82 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Average): time 0.003135/0.1818, allocations: 1.554 MB / 0.8354 GB, free: 6.254 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0003323/0.1821, allocations: 108.5 kB / 0.8355 GB, free: 6.145 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.867e-05/0.1822, allocations: 4 kB / 0.8355 GB, free: 6.141 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001126/0.1823, allocations: 11.86 kB / 0.8355 GB, free: 6.129 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 2.153e-05/0.1823, allocations: 7.938 kB / 0.8355 GB, free: 6.121 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002455/0.1825, allocations: 31.84 kB / 0.8355 GB, free: 6.09 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0001057/0.1826, allocations: 55.84 kB / 0.8356 GB, free: 6.035 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001211/0.1828, allocations: 23.88 kB / 0.8356 GB, free: 6.012 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 5.925e-05/0.1828, allocations: 23.92 kB / 0.8356 GB, free: 5.988 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 7.404e-05/0.1829, allocations: 27.91 kB / 0.8357 GB, free: 5.961 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.871e-05/0.1829, allocations: 4 kB / 0.8357 GB, free: 5.957 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 6.533e-05/0.183, allocations: 15.98 kB / 0.8357 GB, free: 5.941 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 4.629e-05/0.183, allocations: 15.92 kB / 0.8357 GB, free: 5.926 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 3.371e-05/0.1831, allocations: 15.88 kB / 0.8357 GB, free: 5.91 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0001373/0.1832, allocations: 71.67 kB / 0.8358 GB, free: 5.84 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 1.594e-05/0.1832, allocations: 7.984 kB / 0.8358 GB, free: 5.832 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.843e-06/0.1832, allocations: 0 / 0.8358 GB, free: 5.832 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.238e-06/0.1832, allocations: 0 / 0.8358 GB, free: 5.832 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.0005315/0.1838, allocations: 298.1 kB / 0.8361 GB, free: 5.508 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.559e-05/0.1838, allocations: 13.94 kB / 0.8361 GB, free: 5.496 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3e-05/0.1838, allocations: 4.891 kB / 0.8361 GB, free: 5.492 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00018/0.184, allocations: 126.5 kB / 0.8362 GB, free: 5.344 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.546e-06/0.184, allocations: 8.312 kB / 0.8362 GB, free: 5.336 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.379e-05/0.184, allocations: 4.375 kB / 0.8362 GB, free: 5.332 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002718/0.1843, allocations: 90.14 kB / 0.8363 GB, free: 5.238 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.566e-06/0.1843, allocations: 192 / 0.8363 GB, free: 5.238 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.163e-05/0.1843, allocations: 3.938 kB / 0.8363 GB, free: 5.234 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.701e-06/0.1843, allocations: 4 kB / 0.8363 GB, free: 5.23 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002989/0.1846, allocations: 79.91 kB / 0.8364 GB, free: 5.152 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005343/0.1852, allocations: 268.3 kB / 0.8367 GB, free: 4.859 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001973/0.1854, allocations: 58.53 kB / 0.8367 GB, free: 4.793 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001502/0.1855, allocations: 42.58 kB / 0.8367 GB, free: 4.75 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 3.311e-05/0.1855, allocations: 3.984 kB / 0.8368 GB, free: 4.746 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.624e-05/0.1856, allocations: 42.56 kB / 0.8368 GB, free: 4.695 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.1856, allocations: 0 / 0.8368 GB, free: 4.695 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3): time 0.000552/0.1861, allocations: 133.6 kB / 0.8369 GB, free: 4.559 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.98e-05/0.1862, allocations: 51.41 kB / 0.837 GB, free: 4.496 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001191/0.1863, allocations: 117.8 kB / 0.8371 GB, free: 4.371 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 2.08e-05/0.1863, allocations: 29.7 kB / 0.8371 GB, free: 4.336 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 5.593e-05/0.1864, allocations: 92.09 kB / 0.8372 GB, free: 4.242 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 2.527e-05/0.1864, allocations: 15.89 kB / 0.8372 GB, free: 4.227 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.772e-05/0.1864, allocations: 21.64 kB / 0.8372 GB, free: 4.199 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001621/0.1866, allocations: 318.8 kB / 0.8375 GB, free: 3.879 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001462/0.1867, allocations: 35.95 kB / 0.8376 GB, free: 3.844 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001296/0.1869, allocations: 27.97 kB / 0.8376 GB, free: 3.816 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002729/0.1871, allocations: 84.7 kB / 0.8377 GB, free: 3.73 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.1871, allocations: 0 / 0.8377 GB, free: 3.73 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003197/0.1874, allocations: 101.6 kB / 0.8378 GB, free: 3.625 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.305e-05/0.1875, allocations: 4 kB / 0.8378 GB, free: 3.621 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.907e-06/0.1875, allocations: 0 / 0.8378 GB, free: 3.621 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.367e-05/0.1875, allocations: 4 kB / 0.8378 GB, free: 3.617 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001191/0.1876, allocations: 27.97 kB / 0.8378 GB, free: 3.59 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.078e-06/0.1876, allocations: 0 / 0.8378 GB, free: 3.59 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.282e-05/0.1877, allocations: 11.98 kB / 0.8378 GB, free: 3.578 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.595e-05/0.1877, allocations: 3.938 kB / 0.8378 GB, free: 3.574 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.108e-05/0.1878, allocations: 118.4 kB / 0.8379 GB, free: 3.449 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.614e-05/0.1878, allocations: 7.953 kB / 0.8379 GB, free: 3.441 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000352/0.1882, allocations: 117.5 kB / 0.8381 GB, free: 3.312 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.1882, allocations: 0 / 0.8381 GB, free: 3.312 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.1882, allocations: 4 kB / 0.8381 GB, free: 3.309 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.1882, allocations: 0 / 0.8381 GB, free: 3.309 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001456/0.1883, allocations: 125.2 kB / 0.8382 GB, free: 3.156 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.81e-07/0.1883, allocations: 0 / 0.8382 GB, free: 3.156 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.655e-05/0.1884, allocations: 15.98 kB / 0.8382 GB, free: 3.141 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.1884, allocations: 0 / 0.8382 GB, free: 3.141 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.222e-06/0.1884, allocations: 4 kB / 0.8382 GB, free: 3.137 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.649e-06/0.1884, allocations: 4 kB / 0.8382 GB, free: 3.133 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.1884, allocations: 0 / 0.8382 GB, free: 3.133 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003606/0.1888, allocations: 207.3 kB / 0.8384 GB, free: 2.914 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 6.762e-06/0.1888, allocations: 0 / 0.8384 GB, free: 2.914 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.453e-05/0.1888, allocations: 4.422 kB / 0.8384 GB, free: 2.91 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.771e-05/0.1889, allocations: 7.984 kB / 0.8384 GB, free: 2.902 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.927e-05/0.1889, allocations: 11.98 kB / 0.8384 GB, free: 2.891 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.49e-06/0.1889, allocations: 0 / 0.8384 GB, free: 2.891 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 5.62e-05/0.189, allocations: 99.64 kB / 0.8385 GB, free: 2.793 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7e-08/0.189, allocations: 0 / 0.8385 GB, free: 2.793 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002172/0.1892, allocations: 12 kB / 0.8385 GB, free: 2.781 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.0001147/0.1893, allocations: 91.25 kB / 0.8386 GB, free: 2.684 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.000335/0.1897, allocations: 83.89 kB / 0.8387 GB, free: 2.602 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.1897, allocations: 0 / 0.8387 GB, free: 2.602 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001486/0.1898, allocations: 39.91 kB / 0.8387 GB, free: 2.562 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002743/0.1901, allocations: 19.86 kB / 0.8388 GB, free: 2.543 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003598/0.1904, allocations: 179.2 kB / 0.8389 GB, free: 2.336 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.814e-05/0.1905, allocations: 75.33 kB / 0.839 GB, free: 2.242 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.248e-05/0.1906, allocations: 15.44 kB / 0.839 GB, free: 2.227 MB / 0.5762 GB Notification: Performance of SimCode: time 3.41e-07/0.1906, allocations: 3.938 kB / 0.839 GB, free: 2.223 MB / 0.5762 GB Notification: Performance of Templates: time 0.002475/0.193, allocations: 0.9521 MB / 0.8399 GB, free: 1.277 MB / 0.5762 GB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.makefile [Timeout 660] (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 & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Average.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 8.13576732808724] Failed to read output from testmodel.py, exit status != 0: 0.20018118107691407 0.21495370900000002 0.028809885 Calling exit ...