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.00142/0.00142, allocations: 101.9 kB / 20.48 MB, free: 1.379 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.001722/0.001722, allocations: 210.8 kB / 23.77 MB, free: 4.551 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.497/1.497, allocations: 230.6 MB / 257.6 MB, free: 7.797 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.9842/0.9842, allocations: 150 MB / 464 MB, free: 10.21 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.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.002123/0.002123, allocations: 69.91 kB / 0.642 GB, free: 9.93 MB / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1878/0.19, allocations: 89.18 MB / 0.729 GB, free: 0.8242 MB / 0.545 GB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.Math.Examples.Factorial): time 0.003262/0.1932, allocations: 1.537 MB / 0.7305 GB, free: 15.27 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.0003988/0.1936, allocations: 127.6 kB / 0.7307 GB, free: 15.15 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.008e-05/0.1937, allocations: 0 / 0.7307 GB, free: 15.15 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 2.658e-05/0.1937, allocations: 0 / 0.7307 GB, free: 15.15 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 4.99e-05/0.1937, allocations: 3.938 kB / 0.7307 GB, free: 15.14 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002791/0.194, allocations: 15.98 kB / 0.7307 GB, free: 15.13 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 8.36e-05/0.1941, allocations: 31.92 kB / 0.7307 GB, free: 15.1 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001233/0.1942, allocations: 15.97 kB / 0.7307 GB, free: 15.08 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 5.355e-05/0.1943, allocations: 11.94 kB / 0.7307 GB, free: 15.07 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 7.199e-05/0.1944, allocations: 19.92 kB / 0.7308 GB, free: 15.05 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 2.136e-05/0.1944, allocations: 4 kB / 0.7308 GB, free: 15.05 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 9.816e-05/0.1945, allocations: 15.98 kB / 0.7308 GB, free: 15.03 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 1.779e-05/0.1945, allocations: 0 / 0.7308 GB, free: 15.03 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 3.536e-05/0.1945, allocations: 11.94 kB / 0.7308 GB, free: 15.02 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.0001642/0.1947, allocations: 44.03 kB / 0.7308 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 5.15e-06/0.1947, allocations: 0 / 0.7308 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of FrontEnd: time 1.933e-06/0.1947, allocations: 0 / 0.7308 GB, free: 14.98 MB / 0.5606 GB Notification: Performance of Transformations before backend: time 7.333e-06/0.1947, allocations: 0 / 0.7308 GB, free: 14.98 MB / 0.5606 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.0005475/0.1953, allocations: 266.3 kB / 0.7311 GB, free: 14.68 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.944e-05/0.1953, allocations: 12.03 kB / 0.7311 GB, free: 14.67 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.589e-05/0.1953, allocations: 4.188 kB / 0.7311 GB, free: 14.67 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.082e-05/0.1954, allocations: 34.73 kB / 0.7311 GB, free: 14.62 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.471e-05/0.1954, allocations: 4.938 kB / 0.7311 GB, free: 14.62 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001564/0.1956, allocations: 110.4 kB / 0.7312 GB, free: 14.49 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.025e-05/0.1956, allocations: 4.375 kB / 0.7312 GB, free: 14.48 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.508e-05/0.1956, allocations: 4.375 kB / 0.7312 GB, free: 14.48 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002231/0.1958, allocations: 57.98 kB / 0.7313 GB, free: 14.42 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.969e-06/0.1958, allocations: 4 kB / 0.7313 GB, free: 14.41 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.105e-05/0.1959, allocations: 3.938 kB / 0.7313 GB, free: 14.41 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.1959, allocations: 7.922 kB / 0.7313 GB, free: 14.4 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002005/0.1961, allocations: 39.97 kB / 0.7314 GB, free: 14.36 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004335/0.1965, allocations: 228 kB / 0.7316 GB, free: 14.1 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003506/0.1969, allocations: 58.53 kB / 0.7316 GB, free: 14.03 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001006/0.197, allocations: 28.91 kB / 0.7317 GB, free: 14 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 9.01e-05/0.197, allocations: 7.938 kB / 0.7317 GB, free: 13.99 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.742e-05/0.1971, allocations: 38.48 kB / 0.7317 GB, free: 13.95 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.1971, allocations: 0 / 0.7317 GB, free: 13.95 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3): time 0.000396/0.1975, allocations: 89.62 kB / 0.7318 GB, free: 13.85 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.301e-05/0.1975, allocations: 51.41 kB / 0.7318 GB, free: 13.79 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.358e-05/0.1976, allocations: 109.8 kB / 0.7319 GB, free: 13.67 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 1.866e-05/0.1976, allocations: 25.7 kB / 0.732 GB, free: 13.64 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 5.461e-05/0.1977, allocations: 88.14 kB / 0.7321 GB, free: 13.55 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 1.796e-05/0.1977, allocations: 7.938 kB / 0.7321 GB, free: 13.54 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.008e-05/0.1977, allocations: 21.7 kB / 0.7321 GB, free: 13.52 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 0.0001438/0.1979, allocations: 318.8 kB / 0.7324 GB, free: 13.2 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.091e-05/0.198, allocations: 19.92 kB / 0.7324 GB, free: 13.18 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.141e-05/0.1981, allocations: 19.97 kB / 0.7324 GB, free: 13.16 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001635/0.1982, allocations: 48.81 kB / 0.7325 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.385e-06/0.1982, allocations: 0 / 0.7325 GB, free: 13.11 MB / 0.5606 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002124/0.1984, allocations: 73.66 kB / 0.7325 GB, free: 13.03 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 1.573e-05/0.1984, allocations: 8 kB / 0.7325 GB, free: 13.02 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.137e-06/0.1984, allocations: 0 / 0.7325 GB, free: 13.02 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.263e-05/0.1985, allocations: 0 / 0.7325 GB, free: 13.02 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.082e-05/0.1985, allocations: 11.98 kB / 0.7326 GB, free: 13.01 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.21e-06/0.1985, allocations: 0 / 0.7326 GB, free: 13.01 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.591e-05/0.1986, allocations: 7.984 kB / 0.7326 GB, free: 13 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.112e-05/0.1986, allocations: 7.938 kB / 0.7326 GB, free: 12.99 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 (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.0001021/0.1987, allocations: 121.8 kB / 0.7327 GB, free: 12.86 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.747e-05/0.1987, allocations: 3.953 kB / 0.7327 GB, free: 12.86 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002637/0.199, allocations: 77.33 kB / 0.7328 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.598e-06/0.199, allocations: 4 kB / 0.7328 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-06/0.199, allocations: 0 / 0.7328 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.199, allocations: 0 / 0.7328 GB, free: 12.77 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001745/0.1992, allocations: 136.6 kB / 0.7329 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.1992, allocations: 0 / 0.7329 GB, free: 12.59 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001002/0.1993, allocations: 15.98 kB / 0.7329 GB, free: 12.58 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.925e-06/0.1993, allocations: 0 / 0.7329 GB, free: 12.58 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.817e-06/0.1993, allocations: 0 / 0.7329 GB, free: 12.58 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.1993, allocations: 0 / 0.7329 GB, free: 12.58 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.459e-06/0.1993, allocations: 7.875 kB / 0.7329 GB, free: 12.57 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002793/0.1996, allocations: 179.9 kB / 0.7331 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 9.007e-06/0.1996, allocations: 4 kB / 0.7331 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.33e-05/0.1996, allocations: 0 / 0.7331 GB, free: 12.38 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.593e-05/0.1997, allocations: 11.98 kB / 0.7331 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.494e-05/0.1997, allocations: 7.984 kB / 0.7331 GB, free: 12.36 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.943e-06/0.1998, allocations: 4 kB / 0.7331 GB, free: 12.35 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 4.419e-05/0.1998, allocations: 79.31 kB / 0.7332 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/0.1998, allocations: 4 kB / 0.7332 GB, free: 12.27 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.0002233/0.2, allocations: 4 kB / 0.7332 GB, free: 12.27 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.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.0006874/0.2007, allocations: 0.7162 MB / 0.7339 GB, free: 11.52 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.0002324/0.2009, allocations: 43.95 kB / 0.7339 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.2009, allocations: 0 / 0.7339 GB, free: 11.48 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.000104/0.201, allocations: 27.97 kB / 0.734 GB, free: 11.45 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003336/0.2014, allocations: 4 kB / 0.734 GB, free: 11.45 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005516/0.2019, allocations: 151 kB / 0.7341 GB, free: 11.26 MB / 0.5606 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.655e-05/0.202, allocations: 59.36 kB / 0.7342 GB, free: 11.18 MB / 0.5606 GB Notification: Performance of simCode: alias equations: time 3.986e-05/0.202, allocations: 11.98 kB / 0.7342 GB, free: 11.17 MB / 0.5606 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.515e-05/0.2021, allocations: 11.44 kB / 0.7342 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of SimCode: time 3.51e-07/0.2021, allocations: 0 / 0.7342 GB, free: 11.16 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02266/0.2247, allocations: 1.766 MB / 0.7359 GB, free: 9.535 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.44/11.66, allocations: 24.91 kB / 0.7359 GB, free: 9.52 MB / 0.5606 GB " [Timeout remaining time 648] (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: 15.525556999025866] Failed to read output from testmodel.py, exit status != 0: 11.824221262009814 11.847222594 11.648012766999999 Calling exit ...