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.001438/0.001438, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.001591/0.001591, allocations: 218.6 kB / 22.26 MB, free: 5.121 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.493/1.493, allocations: 230.6 MB / 256 MB, free: 7.988 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.8746/0.8746, allocations: 134 MB / 446.4 MB, free: 10.26 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.002148/0.002148, allocations: 64.72 kB / 0.6186 GB, free: 7.324 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1672/0.1693, allocations: 85.91 MB / 0.7025 GB, free: 1.504 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001955/0.1713, allocations: 0.5721 MB / 0.703 GB, free: 0.9336 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.0002846/0.1716, allocations: 60.12 kB / 0.7031 GB, free: 0.875 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.629e-05/0.1716, allocations: 0 / 0.7031 GB, free: 0.875 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 1.241e-05/0.1716, allocations: 0 / 0.7031 GB, free: 0.875 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 5.73e-06/0.1716, allocations: 4 kB / 0.7031 GB, free: 0.8711 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002458/0.1719, allocations: 8 kB / 0.7031 GB, free: 0.8633 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 4.74e-05/0.1719, allocations: 4 kB / 0.7031 GB, free: 0.8594 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 4.433e-05/0.172, allocations: 3.938 kB / 0.7031 GB, free: 0.8555 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 1.99e-05/0.172, allocations: 11.97 kB / 0.7031 GB, free: 0.8438 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 2.159e-05/0.172, allocations: 4 kB / 0.7031 GB, free: 0.8398 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 9.127e-06/0.172, allocations: 0 / 0.7031 GB, free: 0.8398 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 8.221e-05/0.1721, allocations: 8 kB / 0.7031 GB, free: 0.832 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 8.546e-06/0.1721, allocations: 0 / 0.7031 GB, free: 0.832 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 2.319e-05/0.1721, allocations: 7.938 kB / 0.7031 GB, free: 0.8242 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 9.11e-05/0.1722, allocations: 7.969 kB / 0.7032 GB, free: 0.8164 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.1722, allocations: 8 kB / 0.7032 GB, free: 0.8086 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.263e-06/0.1722, allocations: 0 / 0.7032 GB, free: 0.8086 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 5.31e-06/0.1722, allocations: 0 / 0.7032 GB, free: 0.8086 MB / 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.0002912/0.1725, allocations: 246.7 kB / 0.7034 GB, free: 0.5352 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.109e-05/0.1726, allocations: 11.97 kB / 0.7034 GB, free: 0.5234 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.297e-05/0.1726, allocations: 34.75 kB / 0.7034 GB, free: 492 kB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.553e-05/0.1726, allocations: 4.891 kB / 0.7034 GB, free: 488 kB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.976e-05/0.1727, allocations: 102.5 kB / 0.7035 GB, free: 360 kB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.035e-05/0.1727, allocations: 384 / 0.7035 GB, free: 360 kB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 5.981e-06/0.1727, allocations: 4.375 kB / 0.7035 GB, free: 356 kB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.798e-05/0.1728, allocations: 42.23 kB / 0.7036 GB, free: 308 kB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.799e-06/0.1728, allocations: 3.938 kB / 0.7036 GB, free: 304 kB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.784e-06/0.1728, allocations: 0 / 0.7036 GB, free: 304 kB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.001e-06/0.1728, allocations: 7.938 kB / 0.7036 GB, free: 296 kB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.315e-05/0.1729, allocations: 0 / 0.7036 GB, free: 296 kB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000158/0.173, allocations: 120.8 kB / 0.7037 GB, free: 132 kB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 5.52e-05/0.1731, allocations: 26.59 kB / 0.7037 GB, free: 96 kB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.035e-05/0.1731, allocations: 8.922 kB / 0.7037 GB, free: 84 kB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001322/0.1732, allocations: 4 kB / 0.7038 GB, free: 80 kB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.084e-05/0.1733, allocations: 34.56 kB / 0.7038 GB, free: 36 kB / 0.5137 GB Notification: Performance of pre-optimization done (n=2): time 8.51e-07/0.1733, allocations: 0 / 0.7038 GB, free: 36 kB / 0.5137 GB Notification: Performance of matching and sorting (n=2): time 0.0001671/0.1734, allocations: 45.56 kB / 0.7038 GB, free: 15.98 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.668e-05/0.1735, allocations: 55.41 kB / 0.7039 GB, free: 15.92 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.29e-05/0.1735, allocations: 89.86 kB / 0.704 GB, free: 15.82 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 7.908e-05/0.1736, allocations: 33.77 kB / 0.704 GB, free: 15.78 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 3.612e-05/0.1737, allocations: 80.14 kB / 0.7041 GB, free: 15.7 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 1.934e-05/0.1737, allocations: 4 kB / 0.7041 GB, free: 15.7 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.021e-05/0.1737, allocations: 13.7 kB / 0.7041 GB, free: 15.68 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001368/0.1738, allocations: 318.8 kB / 0.7044 GB, free: 15.36 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.036e-05/0.1738, allocations: 0 / 0.7044 GB, free: 15.36 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.044e-06/0.1739, allocations: 0 / 0.7044 GB, free: 15.36 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.815e-05/0.1739, allocations: 20.86 kB / 0.7044 GB, free: 15.33 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.1739, allocations: 0 / 0.7044 GB, free: 15.33 MB / 0.5294 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.181e-05/0.174, allocations: 41.69 kB / 0.7045 GB, free: 15.29 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.174, allocations: 4 kB / 0.7045 GB, free: 15.28 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.012e-06/0.174, allocations: 3.938 kB / 0.7045 GB, free: 15.28 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.3e-05/0.174, allocations: 0 / 0.7045 GB, free: 15.28 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.733e-05/0.1741, allocations: 4 kB / 0.7045 GB, free: 15.27 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.819e-06/0.1741, allocations: 0 / 0.7045 GB, free: 15.27 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.256e-05/0.1741, allocations: 0 / 0.7045 GB, free: 15.27 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.242e-06/0.1741, allocations: 4 kB / 0.7045 GB, free: 15.27 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.352e-05/0.1742, allocations: 113.9 kB / 0.7046 GB, free: 15.15 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.075e-05/0.1742, allocations: 7.938 kB / 0.7046 GB, free: 15.14 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.417e-05/0.1743, allocations: 48.73 kB / 0.7046 GB, free: 15.09 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.1743, allocations: 0 / 0.7046 GB, free: 15.09 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.1743, allocations: 0 / 0.7046 GB, free: 15.09 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.1743, allocations: 3.938 kB / 0.7046 GB, free: 15.09 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001035/0.1744, allocations: 124.8 kB / 0.7048 GB, free: 14.92 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.082e-06/0.1744, allocations: 0 / 0.7048 GB, free: 14.92 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.447e-05/0.1744, allocations: 4 kB / 0.7048 GB, free: 14.92 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.814e-06/0.1744, allocations: 4.031 kB / 0.7048 GB, free: 14.91 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.873e-06/0.1744, allocations: 3.938 kB / 0.7048 GB, free: 14.91 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.1744, allocations: 0 / 0.7048 GB, free: 14.91 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.1744, allocations: 0 / 0.7048 GB, free: 14.91 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.965e-05/0.1745, allocations: 69.06 kB / 0.7048 GB, free: 14.82 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 7.194e-06/0.1745, allocations: 4 kB / 0.7048 GB, free: 14.82 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.219e-05/0.1745, allocations: 3.938 kB / 0.7048 GB, free: 14.82 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.294e-05/0.1745, allocations: 8.016 kB / 0.7049 GB, free: 14.81 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.909e-05/0.1746, allocations: 0 / 0.7049 GB, free: 14.81 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.502e-06/0.1746, allocations: 4 kB / 0.7049 GB, free: 14.8 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 3.422e-05/0.1746, allocations: 83.22 kB / 0.7049 GB, free: 14.72 MB / 0.5294 GB Notification: Performance of sort global known variables: time 8.1e-08/0.1746, allocations: 0 / 0.7049 GB, free: 14.72 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0001863/0.1748, allocations: 7.938 kB / 0.7049 GB, free: 14.71 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.000429/0.1752, allocations: 0.5968 MB / 0.7055 GB, free: 14.09 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 8.483e-05/0.1753, allocations: 15.92 kB / 0.7055 GB, free: 14.07 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.1753, allocations: 0 / 0.7055 GB, free: 14.07 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 1.97e-05/0.1753, allocations: 8 kB / 0.7055 GB, free: 14.06 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001412/0.1755, allocations: 1.203 kB / 0.7055 GB, free: 14.06 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003197/0.1758, allocations: 110.7 kB / 0.7057 GB, free: 13.91 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002975/0.1761, allocations: 0.6768 MB / 0.7063 GB, free: 13.21 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 1.353e-05/0.1761, allocations: 4 kB / 0.7063 GB, free: 13.21 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.962e-05/0.1761, allocations: 7.438 kB / 0.7063 GB, free: 13.2 MB / 0.5294 GB Notification: Performance of SimCode: time 2.71e-07/0.1761, allocations: 0 / 0.7063 GB, free: 13.2 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02872/0.2048, allocations: 1.181 MB / 0.7075 GB, free: 12.16 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.84/11.05, allocations: 2.812 kB / 0.7075 GB, free: 12.16 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.684570925077423] Failed to read output from testmodel.py, exit status != 0: 11.158315920038149 11.183607354 11.007090552 Calling exit ...