Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.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.001246/0.001246, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001402/0.001402, allocations: 214 kB / 22.25 MB, free: 4.855 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.39/1.39, allocations: 230.6 MB / 256 MB, free: 7.781 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.002453/0.002453, allocations: 292 kB / 312.7 MB, free: 2.586 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.154/1.154, allocations: 180.6 MB / 0.5369 GB, free: 14.56 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.Functions.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Factorial",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.002802/0.002802, allocations: 106.8 kB / 0.7395 GB, free: 27.93 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1738/0.1766, allocations: 95.38 MB / 0.8327 GB, free: 8.27 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.00174/0.1784, allocations: 0.5979 MB / 0.8333 GB, free: 7.672 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0002681/0.1786, allocations: 44.22 kB / 0.8333 GB, free: 7.629 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.514e-05/0.1786, allocations: 4 kB / 0.8333 GB, free: 7.625 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 1.217e-05/0.1787, allocations: 0 / 0.8333 GB, free: 7.625 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 5.74e-06/0.1787, allocations: 0 / 0.8333 GB, free: 7.625 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002322/0.1789, allocations: 11.98 kB / 0.8333 GB, free: 7.613 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 4.027e-05/0.1789, allocations: 11.92 kB / 0.8333 GB, free: 7.602 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 3.705e-05/0.179, allocations: 0 / 0.8333 GB, free: 7.602 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 1.693e-05/0.179, allocations: 4 kB / 0.8333 GB, free: 7.598 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 2.139e-05/0.179, allocations: 3.984 kB / 0.8333 GB, free: 7.594 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 1.018e-05/0.179, allocations: 0 / 0.8333 GB, free: 7.594 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 7.31e-05/0.1791, allocations: 8 kB / 0.8333 GB, free: 7.586 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 9.118e-06/0.1791, allocations: 0 / 0.8333 GB, free: 7.586 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 2.554e-05/0.1791, allocations: 11.94 kB / 0.8334 GB, free: 7.574 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 8.862e-05/0.1792, allocations: 15.97 kB / 0.8334 GB, free: 7.559 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.558e-06/0.1792, allocations: 0 / 0.8334 GB, free: 7.559 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.364e-06/0.1792, allocations: 0 / 0.8334 GB, free: 7.559 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.45e-06/0.1792, allocations: 0 / 0.8334 GB, free: 7.559 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003269/0.1796, allocations: 246.6 kB / 0.8336 GB, free: 7.285 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.1796, allocations: 9.938 kB / 0.8336 GB, free: 7.277 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.818e-05/0.1796, allocations: 34.75 kB / 0.8336 GB, free: 7.234 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.623e-05/0.1797, allocations: 0.9375 kB / 0.8337 GB, free: 7.234 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.235e-05/0.1797, allocations: 106.5 kB / 0.8338 GB, free: 7.105 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.199e-05/0.1798, allocations: 4.312 kB / 0.8338 GB, free: 7.102 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.656e-06/0.1798, allocations: 8.375 kB / 0.8338 GB, free: 7.094 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001024/0.1799, allocations: 30.25 kB / 0.8338 GB, free: 7.059 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.1799, allocations: 7.875 kB / 0.8338 GB, free: 7.051 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.653e-06/0.1799, allocations: 4 kB / 0.8338 GB, free: 7.047 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.928e-06/0.1799, allocations: 0 / 0.8338 GB, free: 7.047 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.112e-05/0.1799, allocations: 0 / 0.8338 GB, free: 7.047 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000142/0.1801, allocations: 120.8 kB / 0.8339 GB, free: 6.887 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 5.621e-05/0.1801, allocations: 22.59 kB / 0.8339 GB, free: 6.855 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.066e-05/0.1801, allocations: 12.92 kB / 0.834 GB, free: 6.84 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000124/0.1803, allocations: 12 kB / 0.834 GB, free: 6.828 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.926e-05/0.1803, allocations: 30.56 kB / 0.834 GB, free: 6.789 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=2): time 1.092e-06/0.1803, allocations: 0 / 0.834 GB, free: 6.789 MB / 0.5762 GB Notification: Performance of matching and sorting (n=2): time 0.0001324/0.1804, allocations: 49.56 kB / 0.834 GB, free: 6.734 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.308e-05/0.1805, allocations: 59.34 kB / 0.8341 GB, free: 6.664 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.654e-05/0.1805, allocations: 89.86 kB / 0.8342 GB, free: 6.566 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.586e-05/0.1805, allocations: 25.7 kB / 0.8342 GB, free: 6.535 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 3.252e-05/0.1806, allocations: 80.14 kB / 0.8343 GB, free: 6.453 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 1.343e-05/0.1806, allocations: 0 / 0.8343 GB, free: 6.453 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.218e-05/0.1806, allocations: 17.72 kB / 0.8343 GB, free: 6.43 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001467/0.1808, allocations: 315 kB / 0.8346 GB, free: 6.113 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.228e-05/0.1808, allocations: 8 kB / 0.8346 GB, free: 6.105 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.111e-06/0.1808, allocations: 0 / 0.8346 GB, free: 6.105 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.605e-05/0.1808, allocations: 20.8 kB / 0.8346 GB, free: 6.082 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.1808, allocations: 0 / 0.8346 GB, free: 6.082 MB / 0.5762 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.057e-05/0.1809, allocations: 41.64 kB / 0.8347 GB, free: 6.035 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.173e-05/0.1809, allocations: 4 kB / 0.8347 GB, free: 6.031 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.1809, allocations: 3.938 kB / 0.8347 GB, free: 6.027 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.143e-05/0.1809, allocations: 0 / 0.8347 GB, free: 6.027 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.152e-05/0.181, allocations: 8 kB / 0.8347 GB, free: 6.02 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.328e-06/0.181, allocations: 4.094 kB / 0.8347 GB, free: 6.016 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.202e-05/0.181, allocations: 0 / 0.8347 GB, free: 6.016 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.717e-06/0.181, allocations: 0 / 0.8347 GB, free: 6.016 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: 2 (n,fac) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 7.464e-05/0.1811, allocations: 114.5 kB / 0.8348 GB, free: 5.895 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.593e-06/0.1811, allocations: 0 / 0.8348 GB, free: 5.895 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001023/0.1812, allocations: 52.72 kB / 0.8348 GB, free: 5.832 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-06/0.1812, allocations: 0 / 0.8348 GB, free: 5.832 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.1812, allocations: 0 / 0.8348 GB, free: 5.832 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.944e-06/0.1812, allocations: 0 / 0.8348 GB, free: 5.832 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.324e-05/0.1813, allocations: 120.8 kB / 0.835 GB, free: 5.672 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.42e-07/0.1813, allocations: 4.031 kB / 0.835 GB, free: 5.668 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.131e-05/0.1813, allocations: 4 kB / 0.835 GB, free: 5.664 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.216e-06/0.1813, allocations: 7.922 kB / 0.835 GB, free: 5.656 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.446e-06/0.1813, allocations: 3.938 kB / 0.835 GB, free: 5.652 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.012e-06/0.1813, allocations: 0 / 0.835 GB, free: 5.652 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.1813, allocations: 0 / 0.835 GB, free: 5.652 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.815e-05/0.1814, allocations: 69.06 kB / 0.835 GB, free: 5.566 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 3.867e-06/0.1814, allocations: 0 / 0.835 GB, free: 5.566 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.293e-05/0.1814, allocations: 7.938 kB / 0.8351 GB, free: 5.559 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.022e-05/0.1814, allocations: 0 / 0.8351 GB, free: 5.559 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.487e-05/0.1814, allocations: 15.95 kB / 0.8351 GB, free: 5.543 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.004e-06/0.1814, allocations: 0 / 0.8351 GB, free: 5.543 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 3.388e-05/0.1815, allocations: 75.28 kB / 0.8351 GB, free: 5.469 MB / 0.5762 GB Notification: Performance of sort global known variables: time 8e-08/0.1815, allocations: 0 / 0.8351 GB, free: 5.469 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0001875/0.1817, allocations: 7.938 kB / 0.8351 GB, free: 5.461 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: 2 (fac,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0004236/0.1821, allocations: 0.5968 MB / 0.8357 GB, free: 4.832 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 7.284e-05/0.1822, allocations: 15.94 kB / 0.8357 GB, free: 4.816 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.292e-06/0.1822, allocations: 0 / 0.8357 GB, free: 4.816 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.543e-05/0.1822, allocations: 8.094 kB / 0.8358 GB, free: 4.809 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001198/0.1823, allocations: 4.766 kB / 0.8358 GB, free: 4.805 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003056/0.1826, allocations: 106.7 kB / 0.8359 GB, free: 4.66 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.851e-05/0.1826, allocations: 59.34 kB / 0.8359 GB, free: 4.582 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 1.122e-05/0.1827, allocations: 0 / 0.8359 GB, free: 4.582 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.43e-05/0.1827, allocations: 11.44 kB / 0.8359 GB, free: 4.57 MB / 0.5762 GB Notification: Performance of SimCode: time 3.1e-07/0.1827, allocations: 0 / 0.8359 GB, free: 4.57 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02819/0.2109, allocations: 1.587 MB / 0.8375 GB, free: 3.125 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.58/10.79, allocations: 7.094 kB / 0.8375 GB, free: 3.125 MB / 0.5762 GB " [Timeout remaining time 649] (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial_res.csv --start-time 0 --stop-time 12.9 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00516 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Factorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.775577265769243] Failed to read output from testmodel.py, exit status != 0: 10.89302040496841 10.909736484 10.727505608 Calling exit ...