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.001351/0.001351, allocations: 109.2 kB / 18.94 MB, free: 2.949 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.001865/0.001865, allocations: 220.7 kB / 22.26 MB, free: 5.121 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.424/1.424, allocations: 230.6 MB / 256 MB, free: 7.988 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.002494/0.002494, allocations: 274.8 kB / 312.7 MB, free: 2.805 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.23/1.23, allocations: 180.6 MB / 0.5369 GB, free: 13.01 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.002801/0.002801, allocations: 106.4 kB / 0.7396 GB, free: 28.15 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1692/0.172, allocations: 95.39 MB / 0.8328 GB, free: 8.59 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.001652/0.1737, allocations: 0.5883 MB / 0.8333 GB, free: 8 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0002396/0.1739, allocations: 56.19 kB / 0.8334 GB, free: 7.945 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.651e-05/0.1739, allocations: 0 / 0.8334 GB, free: 7.945 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 1.068e-05/0.174, allocations: 0 / 0.8334 GB, free: 7.945 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 5.06e-06/0.174, allocations: 0 / 0.8334 GB, free: 7.945 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001951/0.1742, allocations: 15.92 kB / 0.8334 GB, free: 7.93 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 3.856e-05/0.1742, allocations: 4 kB / 0.8334 GB, free: 7.926 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 3.476e-05/0.1742, allocations: 3.984 kB / 0.8334 GB, free: 7.922 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 1.225e-05/0.1742, allocations: 3.938 kB / 0.8334 GB, free: 7.918 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 1.933e-05/0.1743, allocations: 8 kB / 0.8334 GB, free: 7.91 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 8.235e-06/0.1743, allocations: 0 / 0.8334 GB, free: 7.91 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 6.798e-05/0.1743, allocations: 12 kB / 0.8334 GB, free: 7.898 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 8.797e-06/0.1743, allocations: 3.984 kB / 0.8334 GB, free: 7.895 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 1.639e-05/0.1744, allocations: 3.984 kB / 0.8335 GB, free: 7.891 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 6.809e-05/0.1744, allocations: 4 kB / 0.8335 GB, free: 7.887 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.1744, allocations: 0 / 0.8335 GB, free: 7.887 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.142e-06/0.1744, allocations: 0 / 0.8335 GB, free: 7.887 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 4.158e-06/0.1744, allocations: 4 kB / 0.8335 GB, free: 7.883 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.000269/0.1747, allocations: 251.7 kB / 0.8337 GB, free: 7.605 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.268e-05/0.1747, allocations: 13.34 kB / 0.8337 GB, free: 7.594 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.261e-05/0.1748, allocations: 30.75 kB / 0.8337 GB, free: 7.555 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.869e-05/0.1748, allocations: 0.9375 kB / 0.8337 GB, free: 7.555 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.253e-05/0.1749, allocations: 106.5 kB / 0.8338 GB, free: 7.426 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.578e-06/0.1749, allocations: 384 / 0.8338 GB, free: 7.426 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.28e-06/0.1749, allocations: 4.312 kB / 0.8338 GB, free: 7.422 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.074e-05/0.175, allocations: 42.19 kB / 0.8339 GB, free: 7.375 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.326e-06/0.175, allocations: 3.938 kB / 0.8339 GB, free: 7.371 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.16e-06/0.175, allocations: 0 / 0.8339 GB, free: 7.371 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-06/0.175, allocations: 0 / 0.8339 GB, free: 7.371 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.621e-05/0.175, allocations: 8 kB / 0.8339 GB, free: 7.363 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001449/0.1752, allocations: 124.8 kB / 0.834 GB, free: 7.199 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 4.486e-05/0.1752, allocations: 18.61 kB / 0.834 GB, free: 7.172 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.515e-05/0.1752, allocations: 4.859 kB / 0.834 GB, free: 7.164 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001028/0.1753, allocations: 4.062 kB / 0.834 GB, free: 7.16 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.357e-05/0.1754, allocations: 42.48 kB / 0.8341 GB, free: 7.109 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=2): time 9.42e-07/0.1754, allocations: 8 kB / 0.8341 GB, free: 7.102 MB / 0.5762 GB Notification: Performance of matching and sorting (n=2): time 0.0001231/0.1755, allocations: 37.64 kB / 0.8341 GB, free: 7.059 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.227e-05/0.1755, allocations: 51.41 kB / 0.8342 GB, free: 6.996 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.754e-05/0.1756, allocations: 93.86 kB / 0.8343 GB, free: 6.895 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.457e-05/0.1756, allocations: 25.7 kB / 0.8343 GB, free: 6.863 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 2.945e-05/0.1756, allocations: 80.14 kB / 0.8344 GB, free: 6.781 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 1.63e-05/0.1756, allocations: 0 / 0.8344 GB, free: 6.781 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.193e-05/0.1756, allocations: 17.7 kB / 0.8344 GB, free: 6.758 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 0.0001238/0.1758, allocations: 319 kB / 0.8347 GB, free: 6.438 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.169e-05/0.1758, allocations: 4 kB / 0.8347 GB, free: 6.434 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.182e-06/0.1758, allocations: 0 / 0.8347 GB, free: 6.434 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.665e-05/0.1758, allocations: 12.8 kB / 0.8347 GB, free: 6.418 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.322e-06/0.1758, allocations: 4 kB / 0.8347 GB, free: 6.414 MB / 0.5762 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.285e-05/0.1759, allocations: 45.64 kB / 0.8348 GB, free: 6.363 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 9.899e-06/0.1759, allocations: 4 kB / 0.8348 GB, free: 6.359 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.05e-06/0.1759, allocations: 4.031 kB / 0.8348 GB, free: 6.355 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.279e-05/0.1759, allocations: 4 kB / 0.8348 GB, free: 6.352 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.748e-05/0.176, allocations: 4 kB / 0.8348 GB, free: 6.348 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.278e-06/0.176, allocations: 0 / 0.8348 GB, free: 6.348 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.35e-05/0.176, allocations: 7.938 kB / 0.8348 GB, free: 6.34 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.066e-06/0.176, allocations: 0 / 0.8348 GB, free: 6.34 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 6.929e-05/0.176, allocations: 114.5 kB / 0.8349 GB, free: 6.219 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.543e-06/0.1761, allocations: 0 / 0.8349 GB, free: 6.219 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.479e-05/0.1761, allocations: 48.73 kB / 0.8349 GB, free: 6.16 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.313e-06/0.1761, allocations: 4.031 kB / 0.8349 GB, free: 6.156 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.569e-06/0.1761, allocations: 3.984 kB / 0.8349 GB, free: 6.152 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.345e-06/0.1761, allocations: 0 / 0.8349 GB, free: 6.152 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.96e-05/0.1762, allocations: 120.8 kB / 0.8351 GB, free: 5.992 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.61e-07/0.1762, allocations: 0 / 0.8351 GB, free: 5.992 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.192e-05/0.1763, allocations: 4 kB / 0.8351 GB, free: 5.988 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.323e-06/0.1763, allocations: 0 / 0.8351 GB, free: 5.988 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.705e-06/0.1763, allocations: 7.875 kB / 0.8351 GB, free: 5.98 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.1763, allocations: 3.984 kB / 0.8351 GB, free: 5.977 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.1763, allocations: 0 / 0.8351 GB, free: 5.977 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.765e-05/0.1763, allocations: 65.08 kB / 0.8351 GB, free: 5.895 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 7.464e-06/0.1764, allocations: 7.984 kB / 0.8351 GB, free: 5.887 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.365e-05/0.1764, allocations: 7.922 kB / 0.8351 GB, free: 5.879 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.046e-05/0.1764, allocations: 0 / 0.8351 GB, free: 5.879 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.314e-05/0.1764, allocations: 0 / 0.8351 GB, free: 5.879 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.124e-06/0.1764, allocations: 0 / 0.8351 GB, free: 5.879 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 3.128e-05/0.1764, allocations: 79.28 kB / 0.8352 GB, free: 5.801 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7e-08/0.1764, allocations: 32 / 0.8352 GB, free: 5.801 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0001933/0.1766, allocations: 15.94 kB / 0.8352 GB, free: 5.785 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.000404/0.177, allocations: 0.6006 MB / 0.8358 GB, free: 5.152 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 6.891e-05/0.1771, allocations: 11.98 kB / 0.8358 GB, free: 5.141 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.1771, allocations: 4.094 kB / 0.8358 GB, free: 5.137 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 1.615e-05/0.1771, allocations: 8 kB / 0.8358 GB, free: 5.129 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001199/0.1772, allocations: 2.188 kB / 0.8358 GB, free: 5.129 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002918/0.1775, allocations: 114.7 kB / 0.836 GB, free: 4.977 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002742/0.1778, allocations: 0.669 MB / 0.8366 GB, free: 4.281 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 1.993e-05/0.1778, allocations: 11.92 kB / 0.8366 GB, free: 4.27 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.981e-05/0.1778, allocations: 7.438 kB / 0.8366 GB, free: 4.262 MB / 0.5762 GB Notification: Performance of SimCode: time 2.9e-07/0.1778, allocations: 0 / 0.8366 GB, free: 4.262 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0262/0.204, allocations: 1.183 MB / 0.8378 GB, free: 3.219 MB / 0.5762 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.5/10.71, allocations: 14.7 kB / 0.8378 GB, free: 3.207 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.976022386003024] Failed to read output from testmodel.py, exit status != 0: 10.809385822998593 10.840372792 10.660722053 Calling exit ...