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.00179/0.00179, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.001414/0.001414, allocations: 214 kB / 23.04 MB, free: 5.074 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.452/1.452, allocations: 230.6 MB / 256.8 MB, free: 8.043 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.002455/0.002455, allocations: 293.5 kB / 313.5 MB, free: 2.82 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.211/1.211, allocations: 180.6 MB / 0.5377 GB, free: 12.98 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Factorial",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.002757/0.002757, allocations: 107.2 kB / 0.7404 GB, free: 27.94 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.187/0.1898, allocations: 95.38 MB / 0.8335 GB, free: 8.602 MB / 0.5763 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Functions.Examples.Factorial): time 0.001771/0.1915, allocations: 0.5921 MB / 0.8341 GB, free: 8.008 MB / 0.5763 GB Notification: Performance of NFInst.instExpressions: time 0.0002961/0.1918, allocations: 56.19 kB / 0.8342 GB, free: 7.953 MB / 0.5763 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.558e-05/0.1918, allocations: 0 / 0.8342 GB, free: 7.953 MB / 0.5763 GB Notification: Performance of NFTyping.typeComponents: time 1.284e-05/0.1919, allocations: 0 / 0.8342 GB, free: 7.953 MB / 0.5763 GB Notification: Performance of NFTyping.typeBindings: time 6.682e-06/0.1919, allocations: 0 / 0.8342 GB, free: 7.953 MB / 0.5763 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002403/0.1921, allocations: 11.92 kB / 0.8342 GB, free: 7.941 MB / 0.5763 GB Notification: Performance of NFFlatten.flatten: time 5.034e-05/0.1922, allocations: 8 kB / 0.8342 GB, free: 7.934 MB / 0.5763 GB Notification: Performance of NFFlatten.resolveConnections: time 4.846e-05/0.1922, allocations: 7.922 kB / 0.8342 GB, free: 7.926 MB / 0.5763 GB Notification: Performance of NFEvalConstants.evaluate: time 1.688e-05/0.1922, allocations: 3.938 kB / 0.8342 GB, free: 7.922 MB / 0.5763 GB Notification: Performance of NFSimplifyModel.simplify: time 2.22e-05/0.1922, allocations: 8 kB / 0.8342 GB, free: 7.914 MB / 0.5763 GB Notification: Performance of NFPackage.collectConstants: time 9.988e-06/0.1922, allocations: 0 / 0.8342 GB, free: 7.914 MB / 0.5763 GB Notification: Performance of NFFlatten.collectFunctions: time 8.421e-05/0.1923, allocations: 8 kB / 0.8342 GB, free: 7.906 MB / 0.5763 GB Notification: Performance of NFScalarize.scalarize: time 8.697e-06/0.1923, allocations: 0 / 0.8342 GB, free: 7.906 MB / 0.5763 GB Notification: Performance of NFVerifyModel.verify: time 2.311e-05/0.1924, allocations: 7.969 kB / 0.8342 GB, free: 7.898 MB / 0.5763 GB Notification: Performance of NFConvertDAE.convert: time 9.498e-05/0.1925, allocations: 8 kB / 0.8342 GB, free: 7.891 MB / 0.5763 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.1925, allocations: 0 / 0.8342 GB, free: 7.891 MB / 0.5763 GB Notification: Performance of FrontEnd: time 1.824e-06/0.1925, allocations: 0 / 0.8342 GB, free: 7.891 MB / 0.5763 GB Notification: Performance of Transformations before backend: time 5.38e-06/0.1925, allocations: 4 kB / 0.8342 GB, free: 7.887 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003177/0.1928, allocations: 246.6 kB / 0.8345 GB, free: 7.613 MB / 0.5763 GB Notification: Performance of prepare preOptimizeDAE: time 4.443e-05/0.1928, allocations: 13.34 kB / 0.8345 GB, free: 7.602 MB / 0.5763 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.315e-05/0.1928, allocations: 192 / 0.8345 GB, free: 7.602 MB / 0.5763 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.369e-05/0.1929, allocations: 38.75 kB / 0.8345 GB, free: 7.555 MB / 0.5763 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.58e-05/0.1929, allocations: 4.922 kB / 0.8345 GB, free: 7.551 MB / 0.5763 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.589e-05/0.193, allocations: 102.5 kB / 0.8346 GB, free: 7.426 MB / 0.5763 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.956e-06/0.193, allocations: 384 / 0.8346 GB, free: 7.426 MB / 0.5763 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.673e-06/0.193, allocations: 384 / 0.8346 GB, free: 7.426 MB / 0.5763 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001113/0.1931, allocations: 41.94 kB / 0.8347 GB, free: 7.379 MB / 0.5763 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.1931, allocations: 0 / 0.8347 GB, free: 7.379 MB / 0.5763 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.597e-06/0.1931, allocations: 4 kB / 0.8347 GB, free: 7.375 MB / 0.5763 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.1931, allocations: 4 kB / 0.8347 GB, free: 7.371 MB / 0.5763 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.637e-05/0.1932, allocations: 4 kB / 0.8347 GB, free: 7.367 MB / 0.5763 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001495/0.1933, allocations: 120.8 kB / 0.8348 GB, free: 7.207 MB / 0.5763 GB Notification: Performance of preOpt comSubExp (simulation): time 5.497e-05/0.1934, allocations: 22.61 kB / 0.8348 GB, free: 7.176 MB / 0.5763 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.024e-05/0.1934, allocations: 8.922 kB / 0.8348 GB, free: 7.164 MB / 0.5763 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001376/0.1935, allocations: 3.938 kB / 0.8348 GB, free: 7.16 MB / 0.5763 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.126e-05/0.1936, allocations: 46.48 kB / 0.8349 GB, free: 7.105 MB / 0.5763 GB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.1936, allocations: 0 / 0.8349 GB, free: 7.105 MB / 0.5763 GB Notification: Performance of matching and sorting (n=2): time 0.000154/0.1937, allocations: 37.7 kB / 0.8349 GB, free: 7.062 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.023e-05/0.1938, allocations: 51.41 kB / 0.8349 GB, free: 7 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.131e-05/0.1938, allocations: 89.86 kB / 0.835 GB, free: 6.902 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 1.927e-05/0.1938, allocations: 25.7 kB / 0.8351 GB, free: 6.871 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 4.72e-05/0.1939, allocations: 80.14 kB / 0.8351 GB, free: 6.789 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 2.076e-05/0.1939, allocations: 4.125 kB / 0.8351 GB, free: 6.785 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.409e-05/0.194, allocations: 21.7 kB / 0.8352 GB, free: 6.758 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.0001363/0.1941, allocations: 314.8 kB / 0.8355 GB, free: 6.441 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.099e-05/0.1941, allocations: 0 / 0.8355 GB, free: 6.441 MB / 0.5763 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.716e-06/0.1941, allocations: 3.938 kB / 0.8355 GB, free: 6.438 MB / 0.5763 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.338e-05/0.1941, allocations: 16.86 kB / 0.8355 GB, free: 6.418 MB / 0.5763 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.1941, allocations: 0 / 0.8355 GB, free: 6.418 MB / 0.5763 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.421e-05/0.1942, allocations: 45.58 kB / 0.8355 GB, free: 6.367 MB / 0.5763 GB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.1942, allocations: 12.03 kB / 0.8355 GB, free: 6.355 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.999e-06/0.1942, allocations: 0 / 0.8355 GB, free: 6.355 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.381e-05/0.1942, allocations: 0 / 0.8355 GB, free: 6.355 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.958e-05/0.1943, allocations: 12 kB / 0.8355 GB, free: 6.344 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.551e-06/0.1943, allocations: 3.938 kB / 0.8356 GB, free: 6.34 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.288e-05/0.1943, allocations: 0 / 0.8356 GB, free: 6.34 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.731e-06/0.1943, allocations: 4 kB / 0.8356 GB, free: 6.336 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: 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 9.077e-05/0.1944, allocations: 114.4 kB / 0.8357 GB, free: 6.215 MB / 0.5763 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.298e-06/0.1944, allocations: 3.938 kB / 0.8357 GB, free: 6.211 MB / 0.5763 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.909e-05/0.1945, allocations: 44.86 kB / 0.8357 GB, free: 6.156 MB / 0.5763 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.013e-06/0.1945, allocations: 3.984 kB / 0.8357 GB, free: 6.152 MB / 0.5763 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.508e-06/0.1945, allocations: 0 / 0.8357 GB, free: 6.152 MB / 0.5763 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.1945, allocations: 0 / 0.8357 GB, free: 6.152 MB / 0.5763 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001297/0.1947, allocations: 116.8 kB / 0.8358 GB, free: 5.996 MB / 0.5763 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.82e-07/0.1947, allocations: 0 / 0.8358 GB, free: 5.996 MB / 0.5763 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.205e-05/0.1947, allocations: 4 kB / 0.8358 GB, free: 5.992 MB / 0.5763 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.067e-06/0.1947, allocations: 3.938 kB / 0.8358 GB, free: 5.988 MB / 0.5763 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.678e-06/0.1947, allocations: 3.984 kB / 0.8358 GB, free: 5.984 MB / 0.5763 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.1947, allocations: 0 / 0.8358 GB, free: 5.984 MB / 0.5763 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.1947, allocations: 4.031 kB / 0.8358 GB, free: 5.98 MB / 0.5763 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.405e-05/0.1948, allocations: 69.08 kB / 0.8359 GB, free: 5.895 MB / 0.5763 GB Notification: Performance of postOpt removeConstants (simulation): time 4.068e-06/0.1948, allocations: 0 / 0.8359 GB, free: 5.895 MB / 0.5763 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.495e-05/0.1948, allocations: 7.922 kB / 0.8359 GB, free: 5.887 MB / 0.5763 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.043e-05/0.1948, allocations: 0 / 0.8359 GB, free: 5.887 MB / 0.5763 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.594e-05/0.1948, allocations: 0 / 0.8359 GB, free: 5.887 MB / 0.5763 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.184e-06/0.1948, allocations: 4 kB / 0.8359 GB, free: 5.883 MB / 0.5763 GB Notification: Performance of sorting global known variables: time 3.646e-05/0.1949, allocations: 79.31 kB / 0.836 GB, free: 5.805 MB / 0.5763 GB Notification: Performance of sort global known variables: time 6e-08/0.1949, allocations: 0 / 0.836 GB, free: 5.805 MB / 0.5763 GB Notification: Performance of remove unused functions: time 0.0002035/0.1951, allocations: 7.938 kB / 0.836 GB, free: 5.797 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: 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.000424/0.1955, allocations: 0.6069 MB / 0.8366 GB, free: 5.16 MB / 0.5763 GB Notification: Performance of simCode: created initialization part: time 7.686e-05/0.1956, allocations: 12.02 kB / 0.8366 GB, free: 5.148 MB / 0.5763 GB Notification: Performance of simCode: created event and clocks part: time 1.683e-06/0.1956, allocations: 0 / 0.8366 GB, free: 5.148 MB / 0.5763 GB Notification: Performance of simCode: created simulation system equations: time 1.532e-05/0.1956, allocations: 4 kB / 0.8366 GB, free: 5.145 MB / 0.5763 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001281/0.1957, allocations: 4 kB / 0.8366 GB, free: 5.141 MB / 0.5763 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00032/0.1961, allocations: 114.7 kB / 0.8367 GB, free: 4.988 MB / 0.5763 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003136/0.1964, allocations: 0.6767 MB / 0.8374 GB, free: 4.285 MB / 0.5763 GB Notification: Performance of simCode: alias equations: time 1.237e-05/0.1964, allocations: 0 / 0.8374 GB, free: 4.285 MB / 0.5763 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.336e-05/0.1964, allocations: 11.44 kB / 0.8374 GB, free: 4.273 MB / 0.5763 GB Notification: Performance of SimCode: time 3.1e-07/0.1964, allocations: 12 kB / 0.8374 GB, free: 4.262 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02073/0.2171, allocations: 1.206 MB / 0.8386 GB, free: 3.207 MB / 0.5763 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.87/11.09, allocations: 3.734 kB / 0.8386 GB, free: 3.207 MB / 0.5763 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --stepSize=0.00516 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Factorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.362900424050167] Failed to read output from testmodel.py, exit status != 0: 11.247085515002254 11.263836602 11.068103676 Calling exit ...