Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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.001275/0.001275, allocations: 101.9 kB / 20.48 MB, free: 1.383 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.001628/0.001628, allocations: 215.7 kB / 23.78 MB, free: 4.555 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.456/1.456, allocations: 230.6 MB / 257.5 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA master/package.mo): time 0.9588/0.9588, allocations: 150 MB / 463.9 MB, free: 10.23 MB / 366.1 MB " [Timeout remaining time 179] Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 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(IBPSA.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_Factorial",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_Factorial",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IBPSA 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.002123/0.002123, allocations: 66.25 kB / 0.642 GB, free: 9.859 MB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1872/0.1894, allocations: 89.18 MB / 0.7291 GB, free: 0.7617 MB / 0.545 GB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Functions.Examples.Factorial): time 0.001907/0.1913, allocations: 0.5837 MB / 0.7296 GB, free: 184 kB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.0002866/0.1916, allocations: 51.81 kB / 0.7297 GB, free: 132 kB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.656e-05/0.1916, allocations: 0 / 0.7297 GB, free: 132 kB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 1.555e-05/0.1916, allocations: 0 / 0.7297 GB, free: 132 kB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 5.7e-06/0.1916, allocations: 0 / 0.7297 GB, free: 132 kB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002028/0.1918, allocations: 15.97 kB / 0.7297 GB, free: 116 kB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 4.016e-05/0.1918, allocations: 4 kB / 0.7297 GB, free: 112 kB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 4.154e-05/0.1919, allocations: 4 kB / 0.7297 GB, free: 108 kB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 1.149e-05/0.1919, allocations: 0 / 0.7297 GB, free: 108 kB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 2.07e-05/0.1919, allocations: 3.984 kB / 0.7297 GB, free: 104 kB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 8.185e-06/0.1919, allocations: 3.938 kB / 0.7297 GB, free: 100 kB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 6.876e-05/0.192, allocations: 12 kB / 0.7297 GB, free: 88 kB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 8.596e-06/0.192, allocations: 4 kB / 0.7297 GB, free: 84 kB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 1.867e-05/0.192, allocations: 7.922 kB / 0.7298 GB, free: 76 kB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 8.009e-05/0.1921, allocations: 11.98 kB / 0.7298 GB, free: 64 kB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1921, allocations: 0 / 0.7298 GB, free: 64 kB / 0.545 GB Notification: Performance of FrontEnd: time 1.272e-06/0.1921, allocations: 0 / 0.7298 GB, free: 64 kB / 0.545 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.1921, allocations: 0 / 0.7298 GB, free: 64 kB / 0.545 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.0003008/0.1924, allocations: 238.7 kB / 0.73 GB, free: 15.8 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 3.776e-05/0.1925, allocations: 12.03 kB / 0.73 GB, free: 15.79 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.181e-05/0.1925, allocations: 192 / 0.73 GB, free: 15.79 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.816e-05/0.1925, allocations: 30.75 kB / 0.73 GB, free: 15.75 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.224e-05/0.1925, allocations: 4.938 kB / 0.73 GB, free: 15.74 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.44e-05/0.1926, allocations: 110.5 kB / 0.7301 GB, free: 15.61 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.951e-06/0.1926, allocations: 384 / 0.7301 GB, free: 15.61 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.799e-06/0.1926, allocations: 384 / 0.7301 GB, free: 15.61 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.814e-05/0.1927, allocations: 38 kB / 0.7302 GB, free: 15.57 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.023e-06/0.1927, allocations: 0 / 0.7302 GB, free: 15.57 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.505e-06/0.1927, allocations: 3.984 kB / 0.7302 GB, free: 15.56 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.787e-06/0.1927, allocations: 0 / 0.7302 GB, free: 15.56 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.096e-05/0.1928, allocations: 7.938 kB / 0.7302 GB, free: 15.55 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001435/0.1929, allocations: 120.8 kB / 0.7303 GB, free: 15.39 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 6.946e-05/0.193, allocations: 26.59 kB / 0.7303 GB, free: 15.36 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.988e-05/0.193, allocations: 8.859 kB / 0.7303 GB, free: 15.35 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001255/0.1931, allocations: 4.062 kB / 0.7303 GB, free: 15.34 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.202e-05/0.1932, allocations: 38.5 kB / 0.7304 GB, free: 15.3 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=2): time 1.132e-06/0.1932, allocations: 0 / 0.7304 GB, free: 15.3 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2): time 0.0001629/0.1933, allocations: 53.5 kB / 0.7304 GB, free: 15.24 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.28e-05/0.1934, allocations: 51.41 kB / 0.7305 GB, free: 15.18 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.618e-05/0.1934, allocations: 93.81 kB / 0.7306 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.462e-05/0.1934, allocations: 25.7 kB / 0.7306 GB, free: 15.04 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 3.296e-05/0.1935, allocations: 84.14 kB / 0.7307 GB, free: 14.96 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.931e-05/0.1935, allocations: 4.125 kB / 0.7307 GB, free: 14.95 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.156e-05/0.1935, allocations: 17.72 kB / 0.7307 GB, free: 14.93 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001423/0.1937, allocations: 314.8 kB / 0.731 GB, free: 14.61 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.076e-05/0.1937, allocations: 0 / 0.731 GB, free: 14.61 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.448e-06/0.1937, allocations: 4 kB / 0.731 GB, free: 14.61 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.585e-05/0.1937, allocations: 12.86 kB / 0.731 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1937, allocations: 3.938 kB / 0.731 GB, free: 14.59 MB / 0.5606 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.714e-05/0.1938, allocations: 37.69 kB / 0.7311 GB, free: 14.55 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.825e-05/0.1938, allocations: 11.94 kB / 0.7311 GB, free: 14.54 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.238e-06/0.1938, allocations: 4.094 kB / 0.7311 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.332e-05/0.1938, allocations: 0 / 0.7311 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.534e-05/0.1939, allocations: 0 / 0.7311 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.649e-06/0.1939, allocations: 4 kB / 0.7311 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.327e-05/0.1939, allocations: 0 / 0.7311 GB, free: 14.53 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.298e-06/0.1939, allocations: 0 / 0.7311 GB, free: 14.53 MB / 0.5606 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.829e-05/0.194, allocations: 109.8 kB / 0.7312 GB, free: 14.41 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.295e-05/0.194, allocations: 7.938 kB / 0.7312 GB, free: 14.4 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.032e-05/0.1941, allocations: 44.78 kB / 0.7312 GB, free: 14.35 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.1941, allocations: 4 kB / 0.7312 GB, free: 14.35 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.1941, allocations: 8.031 kB / 0.7312 GB, free: 14.34 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.1941, allocations: 0 / 0.7312 GB, free: 14.34 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.939e-05/0.1942, allocations: 116.8 kB / 0.7313 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.1942, allocations: 4 kB / 0.7314 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.137e-05/0.1942, allocations: 0 / 0.7314 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.519e-06/0.1942, allocations: 3.938 kB / 0.7314 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.854e-06/0.1942, allocations: 4 kB / 0.7314 GB, free: 14.17 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.1942, allocations: 0 / 0.7314 GB, free: 14.17 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.1942, allocations: 0 / 0.7314 GB, free: 14.17 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.558e-05/0.1943, allocations: 69.02 kB / 0.7314 GB, free: 14.09 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 6.021e-06/0.1943, allocations: 8.031 kB / 0.7314 GB, free: 14.08 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.41e-05/0.1943, allocations: 7.938 kB / 0.7314 GB, free: 14.07 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.11e-05/0.1943, allocations: 3.938 kB / 0.7314 GB, free: 14.07 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.661e-05/0.1944, allocations: 3.984 kB / 0.7314 GB, free: 14.06 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.335e-06/0.1944, allocations: 0 / 0.7314 GB, free: 14.06 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 3.486e-05/0.1944, allocations: 79.28 kB / 0.7315 GB, free: 13.98 MB / 0.5606 GB Notification: Performance of sort global known variables: time 6e-08/0.1944, allocations: 0 / 0.7315 GB, free: 13.98 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0001851/0.1946, allocations: 4 kB / 0.7315 GB, free: 13.98 MB / 0.5606 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.0004551/0.1951, allocations: 0.6084 MB / 0.7321 GB, free: 13.34 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 7.652e-05/0.1951, allocations: 15.97 kB / 0.7321 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.833e-06/0.1951, allocations: 0 / 0.7321 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 1.772e-05/0.1951, allocations: 7.984 kB / 0.7321 GB, free: 13.32 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001664/0.1953, allocations: 4 kB / 0.7321 GB, free: 13.31 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003748/0.1957, allocations: 110.6 kB / 0.7323 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.918e-05/0.1957, allocations: 55.34 kB / 0.7323 GB, free: 13.09 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 1.536e-05/0.1958, allocations: 4 kB / 0.7323 GB, free: 13.09 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.307e-05/0.1958, allocations: 7.438 kB / 0.7323 GB, free: 13.08 MB / 0.5606 GB Notification: Performance of SimCode: time 3.71e-07/0.1958, allocations: 128 / 0.7323 GB, free: 13.08 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02644/0.2222, allocations: 1.231 MB / 0.7335 GB, free: 12 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/11.56, allocations: 7 kB / 0.7335 GB, free: 12 MB / 0.5606 GB " [Timeout remaining time 648] (rm -f IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --stepSize=0.00516 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_Factorial.fmu > IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 15.353530655032955] Failed to read output from testmodel.py, exit status != 0: 11.726162314997055 11.748725057 11.551825683 Calling exit ...