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.001274/0.001274, allocations: 102.1 kB / 19.7 MB, free: 2.254 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.001364/0.001364, allocations: 217 kB / 23.01 MB, free: 4.609 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.379/1.379, allocations: 230.6 MB / 256.8 MB, free: 8.047 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.002695/0.002695, allocations: 286.9 kB / 313.5 MB, free: 2.832 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.147/1.147, allocations: 180.6 MB / 0.5377 GB, free: 13.11 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.002788/0.002788, allocations: 99.11 kB / 0.7408 GB, free: 28.09 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1671/0.1699, allocations: 95.38 MB / 0.834 GB, free: 8.191 MB / 0.5763 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Average): time 0.002776/0.1727, allocations: 1.573 MB / 0.8355 GB, free: 6.605 MB / 0.5763 GB Notification: Performance of NFInst.instExpressions: time 0.0003407/0.173, allocations: 116.5 kB / 0.8356 GB, free: 6.488 MB / 0.5763 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.016e-05/0.1731, allocations: 0 / 0.8356 GB, free: 6.488 MB / 0.5763 GB Notification: Performance of NFTyping.typeComponents: time 0.0001219/0.1732, allocations: 7.922 kB / 0.8356 GB, free: 6.48 MB / 0.5763 GB Notification: Performance of NFTyping.typeBindings: time 2.625e-05/0.1732, allocations: 15.88 kB / 0.8356 GB, free: 6.465 MB / 0.5763 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002375/0.1735, allocations: 31.95 kB / 0.8357 GB, free: 6.434 MB / 0.5763 GB Notification: Performance of NFFlatten.flatten: time 0.0001085/0.1736, allocations: 47.84 kB / 0.8357 GB, free: 6.387 MB / 0.5763 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001179/0.1737, allocations: 23.92 kB / 0.8357 GB, free: 6.363 MB / 0.5763 GB Notification: Performance of NFEvalConstants.evaluate: time 6.699e-05/0.1738, allocations: 23.92 kB / 0.8357 GB, free: 6.34 MB / 0.5763 GB Notification: Performance of NFSimplifyModel.simplify: time 7.572e-05/0.1738, allocations: 27.91 kB / 0.8358 GB, free: 6.312 MB / 0.5763 GB Notification: Performance of NFPackage.collectConstants: time 1.672e-05/0.1739, allocations: 4 kB / 0.8358 GB, free: 6.309 MB / 0.5763 GB Notification: Performance of NFFlatten.collectFunctions: time 6.462e-05/0.1739, allocations: 15.98 kB / 0.8358 GB, free: 6.293 MB / 0.5763 GB Notification: Performance of NFScalarize.scalarize: time 4.495e-05/0.174, allocations: 19.91 kB / 0.8358 GB, free: 6.273 MB / 0.5763 GB Notification: Performance of NFVerifyModel.verify: time 3.937e-05/0.174, allocations: 23.88 kB / 0.8358 GB, free: 6.25 MB / 0.5763 GB Notification: Performance of NFConvertDAE.convert: time 0.0001455/0.1741, allocations: 67.67 kB / 0.8359 GB, free: 6.184 MB / 0.5763 GB Notification: Performance of FrontEnd - DAE generated: time 3.807e-06/0.1741, allocations: 0 / 0.8359 GB, free: 6.184 MB / 0.5763 GB Notification: Performance of FrontEnd: time 1.403e-06/0.1742, allocations: 0 / 0.8359 GB, free: 6.184 MB / 0.5763 GB Notification: Performance of Transformations before backend: time 4.749e-06/0.1742, allocations: 0 / 0.8359 GB, free: 6.184 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.0005422/0.1747, allocations: 314 kB / 0.8362 GB, free: 5.844 MB / 0.5763 GB Notification: Performance of prepare preOptimizeDAE: time 3.995e-05/0.1747, allocations: 13.34 kB / 0.8362 GB, free: 5.832 MB / 0.5763 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.248e-05/0.1748, allocations: 4.891 kB / 0.8362 GB, free: 5.828 MB / 0.5763 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001838/0.175, allocations: 126.4 kB / 0.8363 GB, free: 5.68 MB / 0.5763 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.412e-05/0.175, allocations: 12.38 kB / 0.8363 GB, free: 5.668 MB / 0.5763 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.421e-05/0.175, allocations: 384 / 0.8364 GB, free: 5.668 MB / 0.5763 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000279/0.1753, allocations: 86.2 kB / 0.8364 GB, free: 5.578 MB / 0.5763 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.063e-05/0.1753, allocations: 192 / 0.8364 GB, free: 5.578 MB / 0.5763 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.306e-05/0.1753, allocations: 3.938 kB / 0.8364 GB, free: 5.574 MB / 0.5763 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.1753, allocations: 7.938 kB / 0.8364 GB, free: 5.566 MB / 0.5763 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003097/0.1756, allocations: 83.91 kB / 0.8365 GB, free: 5.484 MB / 0.5763 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000555/0.1762, allocations: 291.8 kB / 0.8368 GB, free: 5.156 MB / 0.5763 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001971/0.1764, allocations: 62.48 kB / 0.8369 GB, free: 5.086 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001443/0.1765, allocations: 42.58 kB / 0.8369 GB, free: 5.043 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 3.692e-05/0.1765, allocations: 4 kB / 0.8369 GB, free: 5.039 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.65e-05/0.1766, allocations: 30.56 kB / 0.8369 GB, free: 5 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=3): time 9.92e-07/0.1766, allocations: 0 / 0.8369 GB, free: 5 MB / 0.5763 GB Notification: Performance of matching and sorting (n=3): time 0.0005363/0.1771, allocations: 145.5 kB / 0.8371 GB, free: 4.852 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.884e-05/0.1772, allocations: 55.39 kB / 0.8371 GB, free: 4.785 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.826e-05/0.1773, allocations: 117.8 kB / 0.8372 GB, free: 4.66 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 1.678e-05/0.1773, allocations: 25.7 kB / 0.8373 GB, free: 4.629 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 6.005e-05/0.1773, allocations: 88.09 kB / 0.8373 GB, free: 4.539 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 2.533e-05/0.1774, allocations: 19.83 kB / 0.8374 GB, free: 4.52 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.936e-05/0.1774, allocations: 21.72 kB / 0.8374 GB, free: 4.492 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.0001454/0.1775, allocations: 314.8 kB / 0.8377 GB, free: 4.176 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001421/0.1777, allocations: 39.89 kB / 0.8377 GB, free: 4.137 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001248/0.1778, allocations: 27.97 kB / 0.8378 GB, free: 4.109 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002793/0.1781, allocations: 84.77 kB / 0.8378 GB, free: 4.023 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.486e-06/0.1781, allocations: 4 kB / 0.8378 GB, free: 4.02 MB / 0.5763 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002967/0.1784, allocations: 97.56 kB / 0.8379 GB, free: 3.918 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 1.275e-05/0.1784, allocations: 8 kB / 0.8379 GB, free: 3.91 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.1784, allocations: 0 / 0.8379 GB, free: 3.91 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.273e-05/0.1784, allocations: 3.938 kB / 0.8379 GB, free: 3.906 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001233/0.1785, allocations: 23.97 kB / 0.838 GB, free: 3.883 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.381e-06/0.1785, allocations: 0 / 0.838 GB, free: 3.883 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.03e-05/0.1786, allocations: 7.984 kB / 0.838 GB, free: 3.875 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.848e-05/0.1786, allocations: 4 kB / 0.838 GB, free: 3.871 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.0001001/0.1787, allocations: 118.4 kB / 0.8381 GB, free: 3.746 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.616e-05/0.1788, allocations: 3.953 kB / 0.8381 GB, free: 3.742 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003713/0.1791, allocations: 125.5 kB / 0.8382 GB, free: 3.605 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.335e-06/0.1791, allocations: 0 / 0.8382 GB, free: 3.605 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.416e-06/0.1791, allocations: 0 / 0.8382 GB, free: 3.605 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.1791, allocations: 0 / 0.8382 GB, free: 3.605 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001834/0.1793, allocations: 156.7 kB / 0.8384 GB, free: 3.41 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.1793, allocations: 0 / 0.8384 GB, free: 3.41 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.931e-05/0.1794, allocations: 11.98 kB / 0.8384 GB, free: 3.398 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.589e-05/0.1794, allocations: 7.984 kB / 0.8384 GB, free: 3.391 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.414e-06/0.1794, allocations: 4 kB / 0.8384 GB, free: 3.387 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.1794, allocations: 0 / 0.8384 GB, free: 3.387 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.1794, allocations: 0 / 0.8384 GB, free: 3.387 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003684/0.1798, allocations: 203.4 kB / 0.8386 GB, free: 3.172 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 7.555e-06/0.1798, allocations: 0 / 0.8386 GB, free: 3.172 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.549e-05/0.1798, allocations: 8 kB / 0.8386 GB, free: 3.164 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001084/0.1799, allocations: 7.984 kB / 0.8386 GB, free: 3.156 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.276e-05/0.18, allocations: 11.98 kB / 0.8386 GB, free: 3.145 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.432e-06/0.18, allocations: 0 / 0.8386 GB, free: 3.145 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 5.081e-05/0.1801, allocations: 91.22 kB / 0.8387 GB, free: 3.055 MB / 0.5763 GB Notification: Performance of sort global known variables: time 8e-08/0.1801, allocations: 0 / 0.8387 GB, free: 3.055 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.0002244/0.1803, allocations: 23.88 kB / 0.8387 GB, free: 3.031 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.0001315/0.1804, allocations: 99.61 kB / 0.8388 GB, free: 2.926 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 0.0003341/0.1807, allocations: 75.92 kB / 0.8389 GB, free: 2.852 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.1807, allocations: 0 / 0.8389 GB, free: 2.852 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 0.0001436/0.1809, allocations: 40.05 kB / 0.8389 GB, free: 2.812 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002783/0.1812, allocations: 12.72 kB / 0.8389 GB, free: 2.805 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003685/0.1815, allocations: 191.2 kB / 0.8391 GB, free: 2.586 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000328/0.1819, allocations: 0.6885 MB / 0.8398 GB, free: 1.871 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.184e-05/0.1819, allocations: 7.438 kB / 0.8398 GB, free: 1.863 MB / 0.5763 GB Notification: Performance of SimCode: time 3e-07/0.1819, allocations: 0 / 0.8398 GB, free: 1.863 MB / 0.5763 GB Notification: Performance of Templates: time 0.002626/0.1845, allocations: 0.9407 MB / 0.8407 GB, free: 0.9258 MB / 0.5763 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.063668520888314] Failed to read output from testmodel.py, exit status != 0: 0.1915712298359722 0.20594372700000002 0.028905406 Calling exit ...