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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001675/0.001675, allocations: 101.9 kB / 16.45 MB, free: 6.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001427/0.001427, allocations: 186.9 kB / 19.4 MB, free: 3.66 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.445/1.445, allocations: 225.6 MB / 247.8 MB, free: 13.96 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.8472/0.8472, allocations: 134 MB / 436.6 MB, free: 1.293 MB / 334.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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.001911/0.001911, allocations: 64.05 kB / 0.6052 GB, free: 15.79 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1647/0.1666, allocations: 84.67 MB / 0.6878 GB, free: 11.2 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.002005/0.1686, allocations: 0.578 MB / 0.6884 GB, free: 10.62 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.0002944/0.1689, allocations: 63.77 kB / 0.6885 GB, free: 10.56 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.676e-05/0.1689, allocations: 0 / 0.6885 GB, free: 10.56 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 1.302e-05/0.1689, allocations: 0 / 0.6885 GB, free: 10.56 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 7.975e-06/0.1689, allocations: 3.938 kB / 0.6885 GB, free: 10.56 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002337/0.1692, allocations: 11.94 kB / 0.6885 GB, free: 10.55 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 4.791e-05/0.1692, allocations: 4 kB / 0.6885 GB, free: 10.54 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 3.902e-05/0.1693, allocations: 3.984 kB / 0.6885 GB, free: 10.54 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 2.04e-05/0.1693, allocations: 4 kB / 0.6885 GB, free: 10.54 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 2.376e-05/0.1693, allocations: 4 kB / 0.6885 GB, free: 10.53 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 9.027e-06/0.1693, allocations: 0 / 0.6885 GB, free: 10.53 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 6.734e-05/0.1694, allocations: 4 kB / 0.6885 GB, free: 10.53 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 1.153e-05/0.1694, allocations: 7.984 kB / 0.6885 GB, free: 10.52 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 2.47e-05/0.1694, allocations: 8 kB / 0.6885 GB, free: 10.51 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 7.986e-05/0.1695, allocations: 7.922 kB / 0.6885 GB, free: 10.5 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.1695, allocations: 4 kB / 0.6885 GB, free: 10.5 MB / 0.5137 GB Notification: Performance of FrontEnd: time 1.232e-06/0.1695, allocations: 0 / 0.6885 GB, free: 10.5 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 4.939e-06/0.1695, allocations: 0 / 0.6885 GB, free: 10.5 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.0003555/0.1699, allocations: 319.8 kB / 0.6888 GB, free: 10.14 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.042e-05/0.1699, allocations: 8.031 kB / 0.6888 GB, free: 10.13 MB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.29e-05/0.1699, allocations: 30.75 kB / 0.6889 GB, free: 10.09 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.454e-05/0.17, allocations: 4.938 kB / 0.6889 GB, free: 10.09 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001128/0.1701, allocations: 164.4 kB / 0.689 GB, free: 9.887 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.913e-06/0.1701, allocations: 384 / 0.689 GB, free: 9.887 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.043e-05/0.1701, allocations: 384 / 0.689 GB, free: 9.887 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001076/0.1702, allocations: 38.19 kB / 0.6891 GB, free: 9.844 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-06/0.1702, allocations: 3.938 kB / 0.6891 GB, free: 9.84 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.893e-06/0.1702, allocations: 0 / 0.6891 GB, free: 9.84 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.198e-06/0.1702, allocations: 0 / 0.6891 GB, free: 9.84 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.238e-05/0.1703, allocations: 8 kB / 0.6891 GB, free: 9.832 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001573/0.1704, allocations: 145.7 kB / 0.6892 GB, free: 9.641 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 5.625e-05/0.1705, allocations: 30.61 kB / 0.6892 GB, free: 9.602 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.66e-05/0.1705, allocations: 4.859 kB / 0.6893 GB, free: 9.594 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001746/0.1707, allocations: 85.11 kB / 0.6893 GB, free: 9.492 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.645e-05/0.1707, allocations: 38.89 kB / 0.6894 GB, free: 9.445 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.1707, allocations: 0 / 0.6894 GB, free: 9.445 MB / 0.5137 GB Notification: Performance of matching and sorting (n=2): time 0.0001509/0.1708, allocations: 41.64 kB / 0.6894 GB, free: 9.398 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.656e-05/0.1709, allocations: 55.53 kB / 0.6895 GB, free: 9.332 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.568e-05/0.1709, allocations: 93.86 kB / 0.6896 GB, free: 9.23 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.512e-05/0.171, allocations: 25.7 kB / 0.6896 GB, free: 9.199 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 3.311e-05/0.171, allocations: 80.14 kB / 0.6897 GB, free: 9.117 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 2.192e-05/0.171, allocations: 3.953 kB / 0.6897 GB, free: 9.113 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.701e-05/0.171, allocations: 21.7 kB / 0.6897 GB, free: 9.086 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001352/0.1712, allocations: 310.8 kB / 0.69 GB, free: 8.773 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.149e-05/0.1712, allocations: 3.938 kB / 0.69 GB, free: 8.77 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.089e-05/0.1712, allocations: 11.94 kB / 0.69 GB, free: 8.758 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.362e-05/0.1712, allocations: 12.86 kB / 0.69 GB, free: 8.742 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1712, allocations: 0 / 0.69 GB, free: 8.742 MB / 0.5137 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.382e-05/0.1713, allocations: 41.69 kB / 0.69 GB, free: 8.695 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.414e-05/0.1713, allocations: 8 kB / 0.69 GB, free: 8.688 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.179e-06/0.1713, allocations: 3.938 kB / 0.6901 GB, free: 8.684 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.343e-05/0.1713, allocations: 0 / 0.6901 GB, free: 8.684 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.322e-05/0.1714, allocations: 0 / 0.6901 GB, free: 8.684 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/0.1714, allocations: 4 kB / 0.6901 GB, free: 8.68 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.492e-05/0.1714, allocations: 8.094 kB / 0.6901 GB, free: 8.672 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.18e-06/0.1714, allocations: 0 / 0.6901 GB, free: 8.672 MB / 0.5137 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 8.201e-05/0.1715, allocations: 113.8 kB / 0.6902 GB, free: 8.551 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.157e-06/0.1715, allocations: 4 kB / 0.6902 GB, free: 8.547 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.997e-05/0.1716, allocations: 40.77 kB / 0.6902 GB, free: 8.496 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.1716, allocations: 0 / 0.6902 GB, free: 8.496 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.432e-06/0.1716, allocations: 7.984 kB / 0.6902 GB, free: 8.488 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.835e-06/0.1716, allocations: 0 / 0.6902 GB, free: 8.488 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001163/0.1717, allocations: 149.7 kB / 0.6904 GB, free: 8.293 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.52e-07/0.1717, allocations: 0 / 0.6904 GB, free: 8.293 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.184e-05/0.1717, allocations: 4 kB / 0.6904 GB, free: 8.289 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.512e-06/0.1717, allocations: 0 / 0.6904 GB, free: 8.289 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.067e-06/0.1718, allocations: 3.938 kB / 0.6904 GB, free: 8.285 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.298e-06/0.1718, allocations: 3.984 kB / 0.6904 GB, free: 8.281 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.1718, allocations: 7.984 kB / 0.6904 GB, free: 8.273 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.828e-05/0.1718, allocations: 69.08 kB / 0.6905 GB, free: 8.188 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 5.464e-05/0.1719, allocations: 85.12 kB / 0.6905 GB, free: 8.086 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.196e-05/0.1719, allocations: 3.938 kB / 0.6905 GB, free: 8.082 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.035e-05/0.1719, allocations: 0 / 0.6905 GB, free: 8.082 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.95e-05/0.172, allocations: 4 kB / 0.6905 GB, free: 8.078 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-06/0.172, allocations: 0 / 0.6905 GB, free: 8.078 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 3.348e-05/0.172, allocations: 75.28 kB / 0.6906 GB, free: 8.004 MB / 0.5137 GB Notification: Performance of sort global known variables: time 7e-08/0.172, allocations: 3.938 kB / 0.6906 GB, free: 8 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0001855/0.1722, allocations: 4 kB / 0.6906 GB, free: 7.996 MB / 0.5137 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.0004714/0.1726, allocations: 0.62 MB / 0.6912 GB, free: 7.344 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 9.529e-05/0.1727, allocations: 15.98 kB / 0.6912 GB, free: 7.328 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.1727, allocations: 0 / 0.6912 GB, free: 7.328 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 1.517e-05/0.1728, allocations: 4 kB / 0.6912 GB, free: 7.324 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000124/0.1729, allocations: 160 / 0.6912 GB, free: 7.324 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003265/0.1732, allocations: 126.6 kB / 0.6914 GB, free: 7.16 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000305/0.1735, allocations: 0.669 MB / 0.692 GB, free: 6.465 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 1.405e-05/0.1735, allocations: 4 kB / 0.692 GB, free: 6.461 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.077e-05/0.1735, allocations: 7.438 kB / 0.692 GB, free: 6.453 MB / 0.5137 GB Notification: Performance of SimCode: time 3.4e-07/0.1736, allocations: 3.938 kB / 0.692 GB, free: 6.449 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02304/0.1966, allocations: 1.057 MB / 0.6931 GB, free: 5.488 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.743/7.94, allocations: 4.188 kB / 0.6931 GB, free: 5.488 MB / 0.5137 GB " [Timeout remaining time 652] (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: 11.400297126965597] Failed to read output from testmodel.py, exit status != 0: 8.004065170069225 8.018618316 7.846261066 Calling exit ...