Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.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.001663/0.001663, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.002045/0.002045, allocations: 214 kB / 22.25 MB, free: 4.859 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.439/1.439, allocations: 230.6 MB / 256 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.847/0.847, allocations: 134 MB / 446.4 MB, free: 9.961 MB / 350.1 MB " [Timeout remaining time 179] Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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(IDEAS.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: IDEAS 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.002023/0.002023, allocations: 71.42 kB / 0.6185 GB, free: 6.852 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1637/0.1657, allocations: 85.91 MB / 0.7024 GB, free: 1.023 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001746/0.1674, allocations: 0.5682 MB / 0.703 GB, free: 468 kB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.0002543/0.1677, allocations: 60.2 kB / 0.703 GB, free: 408 kB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.531e-05/0.1677, allocations: 0 / 0.703 GB, free: 408 kB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 1.18e-05/0.1677, allocations: 0 / 0.703 GB, free: 408 kB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 5.31e-06/0.1677, allocations: 0 / 0.703 GB, free: 408 kB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002055/0.1679, allocations: 7.938 kB / 0.703 GB, free: 400 kB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 3.835e-05/0.168, allocations: 3.984 kB / 0.703 GB, free: 396 kB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 4.483e-05/0.168, allocations: 11.94 kB / 0.7031 GB, free: 384 kB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 1.334e-05/0.168, allocations: 3.984 kB / 0.7031 GB, free: 380 kB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 1.766e-05/0.168, allocations: 4 kB / 0.7031 GB, free: 376 kB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 8.055e-06/0.1681, allocations: 0 / 0.7031 GB, free: 376 kB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 6.978e-05/0.1681, allocations: 7.984 kB / 0.7031 GB, free: 368 kB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 9.748e-06/0.1681, allocations: 8 kB / 0.7031 GB, free: 360 kB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 1.355e-05/0.1681, allocations: 0 / 0.7031 GB, free: 360 kB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 7.711e-05/0.1682, allocations: 11.97 kB / 0.7031 GB, free: 348 kB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.028e-06/0.1682, allocations: 0 / 0.7031 GB, free: 348 kB / 0.5137 GB Notification: Performance of FrontEnd: time 1.433e-06/0.1682, allocations: 3.938 kB / 0.7031 GB, free: 344 kB / 0.5137 GB Notification: Performance of Transformations before backend: time 7.725e-06/0.1682, allocations: 3.938 kB / 0.7031 GB, free: 340 kB / 0.5137 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.0002738/0.1685, allocations: 246.7 kB / 0.7033 GB, free: 60 kB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 3.885e-05/0.1685, allocations: 16.03 kB / 0.7033 GB, free: 44 kB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.328e-05/0.1686, allocations: 30.75 kB / 0.7034 GB, free: 4 kB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.111e-05/0.1686, allocations: 4.891 kB / 0.7034 GB, free: 0 / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.928e-05/0.1687, allocations: 102.5 kB / 0.7035 GB, free: 15.88 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.264e-05/0.1687, allocations: 4.375 kB / 0.7035 GB, free: 15.87 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.017e-06/0.1687, allocations: 384 / 0.7035 GB, free: 15.87 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.708e-05/0.1688, allocations: 42.19 kB / 0.7035 GB, free: 15.82 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.476e-06/0.1688, allocations: 3.938 kB / 0.7035 GB, free: 15.82 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.853e-06/0.1688, allocations: 0 / 0.7035 GB, free: 15.82 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.1688, allocations: 0 / 0.7035 GB, free: 15.82 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.728e-05/0.1689, allocations: 4 kB / 0.7035 GB, free: 15.82 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001885/0.169, allocations: 124.8 kB / 0.7036 GB, free: 15.65 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 5.515e-05/0.1691, allocations: 22.61 kB / 0.7037 GB, free: 15.62 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.823e-05/0.1691, allocations: 4.859 kB / 0.7037 GB, free: 15.61 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001108/0.1692, allocations: 4.062 kB / 0.7037 GB, free: 15.61 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.771e-05/0.1693, allocations: 42.48 kB / 0.7037 GB, free: 15.56 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.1693, allocations: 4 kB / 0.7037 GB, free: 15.55 MB / 0.5294 GB Notification: Performance of matching and sorting (n=2): time 0.000128/0.1694, allocations: 37.64 kB / 0.7038 GB, free: 15.51 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.686e-05/0.1694, allocations: 51.41 kB / 0.7038 GB, free: 15.45 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.646e-05/0.1695, allocations: 93.86 kB / 0.7039 GB, free: 15.35 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.826e-05/0.1695, allocations: 29.83 kB / 0.7039 GB, free: 15.31 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 3.093e-05/0.1695, allocations: 80.14 kB / 0.704 GB, free: 15.23 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 1.657e-05/0.1696, allocations: 4 kB / 0.704 GB, free: 15.23 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.854e-05/0.1696, allocations: 13.7 kB / 0.704 GB, free: 15.21 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001438/0.1697, allocations: 314.8 kB / 0.7043 GB, free: 14.89 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.192e-05/0.1697, allocations: 4 kB / 0.7043 GB, free: 14.89 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.376e-06/0.1697, allocations: 4 kB / 0.7043 GB, free: 14.88 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.234e-05/0.1698, allocations: 12.8 kB / 0.7043 GB, free: 14.87 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.332e-06/0.1698, allocations: 0 / 0.7043 GB, free: 14.87 MB / 0.5294 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.069e-05/0.1699, allocations: 45.75 kB / 0.7044 GB, free: 14.82 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.148e-05/0.1699, allocations: 4 kB / 0.7044 GB, free: 14.81 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.1699, allocations: 7.938 kB / 0.7044 GB, free: 14.8 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.069e-05/0.1699, allocations: 3.938 kB / 0.7044 GB, free: 14.8 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.594e-05/0.1699, allocations: 4 kB / 0.7044 GB, free: 14.8 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.007e-06/0.1699, allocations: 0 / 0.7044 GB, free: 14.8 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.138e-05/0.1699, allocations: 0 / 0.7044 GB, free: 14.8 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.356e-06/0.1699, allocations: 4 kB / 0.7044 GB, free: 14.79 MB / 0.5294 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.593e-05/0.17, allocations: 109.8 kB / 0.7045 GB, free: 14.68 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.736e-06/0.17, allocations: 3.953 kB / 0.7045 GB, free: 14.67 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.507e-05/0.1701, allocations: 60.69 kB / 0.7046 GB, free: 14.61 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.152e-06/0.1701, allocations: 0 / 0.7046 GB, free: 14.61 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.1701, allocations: 3.984 kB / 0.7046 GB, free: 14.61 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.365e-06/0.1701, allocations: 4 kB / 0.7046 GB, free: 14.6 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.014e-05/0.1702, allocations: 116.8 kB / 0.7047 GB, free: 14.45 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-07/0.1702, allocations: 0 / 0.7047 GB, free: 14.45 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.108e-05/0.1702, allocations: 4 kB / 0.7047 GB, free: 14.44 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.1703, allocations: 0 / 0.7047 GB, free: 14.44 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.204e-06/0.1703, allocations: 3.938 kB / 0.7047 GB, free: 14.44 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.21e-07/0.1703, allocations: 0 / 0.7047 GB, free: 14.44 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.1703, allocations: 4 kB / 0.7047 GB, free: 14.43 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.547e-05/0.1703, allocations: 69.09 kB / 0.7048 GB, free: 14.35 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 6.543e-06/0.1704, allocations: 4 kB / 0.7048 GB, free: 14.34 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.281e-05/0.1704, allocations: 7.938 kB / 0.7048 GB, free: 14.34 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.187e-05/0.1704, allocations: 3.984 kB / 0.7048 GB, free: 14.33 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.379e-05/0.1704, allocations: 0 / 0.7048 GB, free: 14.33 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.864e-06/0.1704, allocations: 0 / 0.7048 GB, free: 14.33 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 3.35e-05/0.1704, allocations: 75.28 kB / 0.7049 GB, free: 14.26 MB / 0.5294 GB Notification: Performance of sort global known variables: time 7e-08/0.1704, allocations: 0 / 0.7049 GB, free: 14.26 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0001856/0.1706, allocations: 7.938 kB / 0.7049 GB, free: 14.25 MB / 0.5294 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.0004097/0.171, allocations: 0.6047 MB / 0.7055 GB, free: 13.61 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 6.943e-05/0.1711, allocations: 15.92 kB / 0.7055 GB, free: 13.6 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.433e-06/0.1711, allocations: 0 / 0.7055 GB, free: 13.6 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 1.413e-05/0.1711, allocations: 4 kB / 0.7055 GB, free: 13.59 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001207/0.1712, allocations: 6.344 kB / 0.7055 GB, free: 13.59 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002896/0.1715, allocations: 116.6 kB / 0.7056 GB, free: 13.44 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.238e-05/0.1716, allocations: 59.22 kB / 0.7056 GB, free: 13.36 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 1.121e-05/0.1716, allocations: 0 / 0.7056 GB, free: 13.36 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.527e-05/0.1716, allocations: 15.59 kB / 0.7057 GB, free: 13.34 MB / 0.5294 GB Notification: Performance of SimCode: time 2.9e-07/0.1716, allocations: 0 / 0.7057 GB, free: 13.34 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02727/0.1989, allocations: 1.554 MB / 0.7072 GB, free: 11.92 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.72/10.92, allocations: 17.55 kB / 0.7072 GB, free: 11.9 MB / 0.5294 GB " [Timeout remaining time 649] (rm -f IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --stepSize=0.00516 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Math_Functions_Examples_Factorial.fmu > IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 14.431458503007889] Failed to read output from testmodel.py, exit status != 0: 11.032552586868405 11.060412889 10.888175172 Calling exit ...