Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Math.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.001629/0.001629, allocations: 118.8 kB / 17.84 MB, free: 5.234 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.001893/0.001893, allocations: 202.3 kB / 20.79 MB, free: 2.297 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.57/1.57, allocations: 230.6 MB / 254.2 MB, free: 15.09 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 1.054/1.054, allocations: 150 MB / 460.2 MB, free: 5.305 MB / 350.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.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_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.002838/0.002838, allocations: 69.86 kB / 0.6368 GB, free: 30.48 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1841/0.187, allocations: 89.13 MB / 0.7239 GB, free: 4.023 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Factorial): time 0.003055/0.19, allocations: 1.523 MB / 0.7253 GB, free: 2.492 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0003942/0.1904, allocations: 125.6 kB / 0.7255 GB, free: 2.371 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.264e-05/0.1905, allocations: 4 kB / 0.7255 GB, free: 2.367 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 3.032e-05/0.1905, allocations: 3.938 kB / 0.7255 GB, free: 2.363 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 4.026e-05/0.1905, allocations: 11.86 kB / 0.7255 GB, free: 2.352 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002417/0.1908, allocations: 19.98 kB / 0.7255 GB, free: 2.332 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 7.961e-05/0.1909, allocations: 27.92 kB / 0.7255 GB, free: 2.305 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 9.885e-05/0.191, allocations: 11.98 kB / 0.7255 GB, free: 2.293 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 5.168e-05/0.191, allocations: 19.92 kB / 0.7256 GB, free: 2.273 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 5.021e-05/0.1911, allocations: 15.92 kB / 0.7256 GB, free: 2.258 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.298e-05/0.1911, allocations: 0 / 0.7256 GB, free: 2.258 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 6.253e-05/0.1911, allocations: 12 kB / 0.7256 GB, free: 2.246 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.71e-05/0.1912, allocations: 7.984 kB / 0.7256 GB, free: 2.238 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.919e-05/0.1912, allocations: 11.94 kB / 0.7256 GB, free: 2.227 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.000133/0.1913, allocations: 40.09 kB / 0.7256 GB, free: 2.188 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 3.818e-06/0.1913, allocations: 0 / 0.7256 GB, free: 2.188 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.773e-06/0.1913, allocations: 4 kB / 0.7256 GB, free: 2.184 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.931e-06/0.1913, allocations: 4 kB / 0.7256 GB, free: 2.18 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005495/0.1919, allocations: 347.3 kB / 0.726 GB, free: 1.789 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.003e-05/0.1919, allocations: 8.031 kB / 0.726 GB, free: 1.781 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.489e-05/0.192, allocations: 192 / 0.726 GB, free: 1.781 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.536e-05/0.192, allocations: 30.75 kB / 0.726 GB, free: 1.742 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.159e-05/0.192, allocations: 8.938 kB / 0.726 GB, free: 1.734 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001469/0.1922, allocations: 168.3 kB / 0.7262 GB, free: 1.531 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.414e-05/0.1922, allocations: 16.36 kB / 0.7262 GB, free: 1.516 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.041e-05/0.1922, allocations: 384 / 0.7262 GB, free: 1.516 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002159/0.1924, allocations: 57.98 kB / 0.7263 GB, free: 1.453 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/0.1924, allocations: 0 / 0.7263 GB, free: 1.453 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.273e-05/0.1924, allocations: 7.938 kB / 0.7263 GB, free: 1.445 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.079e-06/0.1925, allocations: 0 / 0.7263 GB, free: 1.445 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002126/0.1927, allocations: 43.89 kB / 0.7263 GB, free: 1.402 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004299/0.1931, allocations: 264.9 kB / 0.7266 GB, free: 1.094 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003689/0.1935, allocations: 58.59 kB / 0.7266 GB, free: 1.027 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001067/0.1936, allocations: 20.84 kB / 0.7266 GB, free: 1.004 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001322/0.1937, allocations: 81.11 kB / 0.7267 GB, free: 0.9062 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.333e-05/0.1937, allocations: 42.48 kB / 0.7268 GB, free: 0.8555 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 1.182e-06/0.1937, allocations: 0 / 0.7268 GB, free: 0.8555 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3): time 0.0004361/0.1942, allocations: 89.64 kB / 0.7268 GB, free: 0.7617 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.429e-05/0.1942, allocations: 55.41 kB / 0.7269 GB, free: 0.6953 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001046/0.1943, allocations: 105.8 kB / 0.727 GB, free: 0.582 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.054e-05/0.1944, allocations: 25.7 kB / 0.727 GB, free: 0.5508 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 6.378e-05/0.1944, allocations: 88.12 kB / 0.7271 GB, free: 472 kB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 1.85e-05/0.1944, allocations: 7.953 kB / 0.7271 GB, free: 464 kB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.972e-05/0.1945, allocations: 17.7 kB / 0.7271 GB, free: 440 kB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001347/0.1946, allocations: 318.8 kB / 0.7274 GB, free: 112 kB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000105/0.1947, allocations: 15.98 kB / 0.7274 GB, free: 96 kB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.499e-05/0.1948, allocations: 27.91 kB / 0.7275 GB, free: 68 kB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001927/0.195, allocations: 52.75 kB / 0.7275 GB, free: 12 kB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.195, allocations: 0 / 0.7275 GB, free: 12 kB / 0.5294 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002616/0.1953, allocations: 69.66 kB / 0.7276 GB, free: 15.94 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.611e-05/0.1953, allocations: 4 kB / 0.7276 GB, free: 15.93 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.1953, allocations: 4 kB / 0.7276 GB, free: 15.93 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.1953, allocations: 0 / 0.7276 GB, free: 15.93 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.951e-05/0.1954, allocations: 11.98 kB / 0.7276 GB, free: 15.92 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.57e-06/0.1954, allocations: 0 / 0.7276 GB, free: 15.92 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.268e-05/0.1955, allocations: 11.98 kB / 0.7276 GB, free: 15.91 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.284e-06/0.1955, allocations: 0.5156 kB / 0.7276 GB, free: 15.91 MB / 0.545 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 (rea2Int.y,fac.y) * 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.0001007/0.1956, allocations: 121.7 kB / 0.7277 GB, free: 15.78 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.864e-05/0.1956, allocations: 7.891 kB / 0.7277 GB, free: 15.77 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002948/0.1959, allocations: 81.12 kB / 0.7278 GB, free: 15.68 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.1959, allocations: 0 / 0.7278 GB, free: 15.68 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.02e-06/0.1959, allocations: 0 / 0.7278 GB, free: 15.68 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.705e-06/0.1959, allocations: 11.94 kB / 0.7278 GB, free: 15.67 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001925/0.1961, allocations: 165.6 kB / 0.728 GB, free: 15.46 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.267e-06/0.1961, allocations: 4 kB / 0.728 GB, free: 15.46 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.897e-05/0.1962, allocations: 11.98 kB / 0.728 GB, free: 15.45 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.1962, allocations: 0 / 0.728 GB, free: 15.45 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.764e-06/0.1962, allocations: 0 / 0.728 GB, free: 15.45 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.412e-06/0.1962, allocations: 4 kB / 0.728 GB, free: 15.44 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.1962, allocations: 0 / 0.728 GB, free: 15.44 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003134/0.1965, allocations: 179.4 kB / 0.7282 GB, free: 15.25 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.685e-05/0.1966, allocations: 77.11 kB / 0.7283 GB, free: 15.16 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.383e-05/0.1966, allocations: 0 / 0.7283 GB, free: 15.16 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.188e-05/0.1967, allocations: 11.98 kB / 0.7283 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.206e-05/0.1967, allocations: 4 kB / 0.7283 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.438e-06/0.1967, allocations: 0 / 0.7283 GB, free: 15.14 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.819e-05/0.1968, allocations: 87.27 kB / 0.7283 GB, free: 15.05 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.01e-07/0.1968, allocations: 4 kB / 0.7284 GB, free: 15.05 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002358/0.197, allocations: 8 kB / 0.7284 GB, free: 15.04 MB / 0.545 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.y,rea2Int.y) * 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.000674/0.1977, allocations: 0.7045 MB / 0.729 GB, free: 14.31 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002496/0.1979, allocations: 51.95 kB / 0.7291 GB, free: 14.26 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.198, allocations: 0 / 0.7291 GB, free: 14.26 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001082/0.1981, allocations: 23.97 kB / 0.7291 GB, free: 14.23 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002925/0.1984, allocations: 4 kB / 0.7291 GB, free: 14.23 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005295/0.1989, allocations: 151 kB / 0.7293 GB, free: 14.04 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004005/0.1993, allocations: 0.6768 MB / 0.7299 GB, free: 13.34 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.999e-05/0.1993, allocations: 8 kB / 0.7299 GB, free: 13.33 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.83e-05/0.1994, allocations: 19.42 kB / 0.73 GB, free: 13.31 MB / 0.545 GB Notification: Performance of SimCode: time 3.81e-07/0.1994, allocations: 0 / 0.73 GB, free: 13.31 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01867/0.218, allocations: 1.608 MB / 0.7315 GB, free: 11.81 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.237/8.455, allocations: 13.52 kB / 0.7315 GB, free: 11.8 MB / 0.545 GB " [Timeout remaining time 651] (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --stepSize=0.0052 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial.fmu > IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 12.600056904018857] Failed to read output from testmodel.py, exit status != 0: 8.582672378979623 8.597655354 8.403290303 Calling exit ...