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.001346/0.001346, allocations: 109.5 kB / 17.12 MB, free: 5.926 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.001413/0.001413, allocations: 204 kB / 20.09 MB, free: 2.977 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.533/1.533, allocations: 230.6 MB / 253.5 MB, free: 15.11 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.047/1.047, allocations: 150 MB / 459.5 MB, free: 5.289 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial",fmuType="me",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.00196/0.00196, allocations: 68.59 kB / 0.6361 GB, free: 30.51 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1905/0.1925, allocations: 89.14 MB / 0.7232 GB, free: 4.027 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Factorial): time 0.003264/0.1958, allocations: 1.526 MB / 0.7247 GB, free: 2.492 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0004121/0.1962, allocations: 133.5 kB / 0.7248 GB, free: 2.363 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.983e-05/0.1962, allocations: 0 / 0.7248 GB, free: 2.363 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 3.507e-05/0.1963, allocations: 3.938 kB / 0.7248 GB, free: 2.359 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 3.966e-05/0.1963, allocations: 4 kB / 0.7248 GB, free: 2.355 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002397/0.1965, allocations: 27.91 kB / 0.7248 GB, free: 2.328 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 8.768e-05/0.1966, allocations: 31.91 kB / 0.7249 GB, free: 2.297 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 9.738e-05/0.1967, allocations: 4 kB / 0.7249 GB, free: 2.293 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 5.05e-05/0.1968, allocations: 19.92 kB / 0.7249 GB, free: 2.273 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 5.433e-05/0.1968, allocations: 15.92 kB / 0.7249 GB, free: 2.258 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.583e-05/0.1968, allocations: 4 kB / 0.7249 GB, free: 2.254 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 6.504e-05/0.1969, allocations: 8 kB / 0.7249 GB, free: 2.246 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.843e-05/0.1969, allocations: 11.97 kB / 0.7249 GB, free: 2.234 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 2.634e-05/0.1969, allocations: 11.94 kB / 0.7249 GB, free: 2.223 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001309/0.1971, allocations: 36.11 kB / 0.725 GB, free: 2.188 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 6.032e-06/0.1971, allocations: 8 kB / 0.725 GB, free: 2.18 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.363e-06/0.1971, allocations: 0 / 0.725 GB, free: 2.18 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.36e-06/0.1971, allocations: 0 / 0.725 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.0005384/0.1976, allocations: 343.4 kB / 0.7253 GB, free: 1.793 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.1977, allocations: 8.031 kB / 0.7253 GB, free: 1.785 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.901e-05/0.1977, allocations: 30.75 kB / 0.7253 GB, free: 1.746 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.697e-05/0.1977, allocations: 4.938 kB / 0.7253 GB, free: 1.742 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001521/0.1979, allocations: 180.2 kB / 0.7255 GB, free: 1.527 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.075e-05/0.1979, allocations: 4.375 kB / 0.7255 GB, free: 1.523 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.388e-05/0.1979, allocations: 8.375 kB / 0.7255 GB, free: 1.516 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002087/0.1981, allocations: 54.23 kB / 0.7256 GB, free: 1.457 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.217e-06/0.1981, allocations: 3.938 kB / 0.7256 GB, free: 1.453 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.347e-06/0.1982, allocations: 0 / 0.7256 GB, free: 1.453 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.24e-06/0.1982, allocations: 0 / 0.7256 GB, free: 1.453 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002066/0.1984, allocations: 43.95 kB / 0.7256 GB, free: 1.41 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004058/0.1988, allocations: 276.8 kB / 0.7259 GB, free: 1.09 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003328/0.1991, allocations: 50.55 kB / 0.7259 GB, free: 1.031 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001159/0.1992, allocations: 28.89 kB / 0.726 GB, free: 1 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001294/0.1993, allocations: 81.11 kB / 0.726 GB, free: 0.9023 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.645e-05/0.1994, allocations: 34.56 kB / 0.7261 GB, free: 0.8594 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.1994, allocations: 0 / 0.7261 GB, free: 0.8594 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3): time 0.0004172/0.1998, allocations: 93.56 kB / 0.7262 GB, free: 0.7617 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.044e-05/0.1998, allocations: 55.41 kB / 0.7262 GB, free: 0.6953 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.444e-05/0.1999, allocations: 105.8 kB / 0.7263 GB, free: 0.582 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.774e-05/0.1999, allocations: 25.7 kB / 0.7263 GB, free: 0.5508 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 6.439e-05/0.2, allocations: 92.08 kB / 0.7264 GB, free: 468 kB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 1.494e-05/0.2, allocations: 3.953 kB / 0.7264 GB, free: 464 kB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.476e-05/0.2001, allocations: 21.7 kB / 0.7264 GB, free: 436 kB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001444/0.2002, allocations: 314.8 kB / 0.7267 GB, free: 112 kB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.543e-05/0.2003, allocations: 15.98 kB / 0.7268 GB, free: 96 kB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.688e-05/0.2004, allocations: 19.97 kB / 0.7268 GB, free: 76 kB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001878/0.2006, allocations: 48.77 kB / 0.7268 GB, free: 24 kB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.2006, allocations: 0 / 0.7268 GB, free: 24 kB / 0.5294 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002571/0.2008, allocations: 82.2 kB / 0.7269 GB, free: 15.93 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.615e-05/0.2009, allocations: 4 kB / 0.7269 GB, free: 15.93 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.071e-06/0.2009, allocations: 0 / 0.7269 GB, free: 15.93 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.27e-05/0.2009, allocations: 4 kB / 0.7269 GB, free: 15.93 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.415e-05/0.201, allocations: 11.98 kB / 0.7269 GB, free: 15.91 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.722e-06/0.201, allocations: 0 / 0.7269 GB, free: 15.91 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.124e-05/0.201, allocations: 11.98 kB / 0.7269 GB, free: 15.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.102e-06/0.201, allocations: 0 / 0.7269 GB, free: 15.9 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.0001001/0.2011, allocations: 117.7 kB / 0.727 GB, free: 15.78 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.078e-05/0.2012, allocations: 11.94 kB / 0.7271 GB, free: 15.77 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002847/0.2015, allocations: 81.08 kB / 0.7271 GB, free: 15.68 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.984e-06/0.2015, allocations: 0 / 0.7271 GB, free: 15.68 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.2015, allocations: 4 kB / 0.7271 GB, free: 15.68 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.2015, allocations: 4 kB / 0.7271 GB, free: 15.67 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001951/0.2017, allocations: 165.6 kB / 0.7273 GB, free: 15.46 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.2017, allocations: 0 / 0.7273 GB, free: 15.46 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.268e-05/0.2017, allocations: 15.81 kB / 0.7273 GB, free: 15.45 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.2017, allocations: 0 / 0.7273 GB, free: 15.45 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.915e-06/0.2018, allocations: 0 / 0.7273 GB, free: 15.45 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.378e-06/0.2018, allocations: 4 kB / 0.7273 GB, free: 15.45 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2018, allocations: 0 / 0.7273 GB, free: 15.45 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003112/0.2021, allocations: 171.4 kB / 0.7275 GB, free: 15.26 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 4.959e-05/0.2021, allocations: 81.11 kB / 0.7276 GB, free: 15.16 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.59e-05/0.2021, allocations: 4 kB / 0.7276 GB, free: 15.16 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.751e-05/0.2022, allocations: 7.984 kB / 0.7276 GB, free: 15.15 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.219e-05/0.2023, allocations: 11.94 kB / 0.7276 GB, free: 15.14 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.258e-06/0.2023, allocations: 0 / 0.7276 GB, free: 15.14 MB / 0.545 GB Notification: Performance of sorting global known variables: time 5.742e-05/0.2023, allocations: 83.27 kB / 0.7277 GB, free: 15.06 MB / 0.545 GB Notification: Performance of sort global known variables: time 8e-08/0.2023, allocations: 4 kB / 0.7277 GB, free: 15.05 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002365/0.2026, allocations: 12 kB / 0.7277 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.0007061/0.2033, allocations: 0.7007 MB / 0.7284 GB, free: 14.31 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002539/0.2035, allocations: 51.89 kB / 0.7284 GB, free: 14.26 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.2035, allocations: 7.938 kB / 0.7284 GB, free: 14.25 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001056/0.2036, allocations: 19.98 kB / 0.7284 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.0002969/0.2039, allocations: 9.547 kB / 0.7284 GB, free: 14.23 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005002/0.2044, allocations: 143.1 kB / 0.7286 GB, free: 14.04 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003573/0.2048, allocations: 0.6807 MB / 0.7293 GB, free: 13.34 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.289e-05/0.2048, allocations: 4 kB / 0.7293 GB, free: 13.33 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.133e-05/0.2049, allocations: 11.42 kB / 0.7293 GB, free: 13.32 MB / 0.545 GB Notification: Performance of SimCode: time 3.3e-07/0.2049, allocations: 0 / 0.7293 GB, free: 13.32 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02617/0.231, allocations: 1.582 MB / 0.7308 GB, free: 11.82 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.078/8.309, allocations: 10.75 kB / 0.7308 GB, free: 11.82 MB / 0.545 GB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial_res.csv --start-time 0 --stop-time 13 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0052 IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial.fmu > IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 12.405570016941056] Failed to read output from testmodel.py, exit status != 0: 8.378666134085506 8.407083897 8.205175539 Calling exit ...