Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_IDEAS.Utilities.Math.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.00142/0.00142, allocations: 110 kB / 18.94 MB, free: 2.789 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.001954/0.001954, allocations: 192.7 kB / 22.23 MB, free: 5.234 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.597/1.597, allocations: 225.6 MB / 251 MB, free: 13 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.8907/0.8907, allocations: 134 MB / 440.3 MB, free: 196 kB / 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: translateModel(IDEAS.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Math.Examples.Factorial") translateModel(IDEAS.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="IDEAS_IDEAS.Utilities.Math.Examples.Factorial") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001957/0.001957, allocations: 68.77 kB / 0.6107 GB, free: 13.65 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2094/0.2113, allocations: 84.73 MB / 0.6935 GB, free: 8.996 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.003301/0.2146, allocations: 1.518 MB / 0.695 GB, free: 7.469 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.0004213/0.215, allocations: 132.5 kB / 0.6951 GB, free: 7.336 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.525e-05/0.2151, allocations: 0 / 0.6951 GB, free: 7.336 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 2.98e-05/0.2151, allocations: 7.938 kB / 0.6951 GB, free: 7.328 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 4.586e-05/0.2152, allocations: 0 / 0.6951 GB, free: 7.328 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003091/0.2155, allocations: 23.92 kB / 0.6951 GB, free: 7.305 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.0001137/0.2156, allocations: 31.92 kB / 0.6951 GB, free: 7.273 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001536/0.2157, allocations: 11.97 kB / 0.6952 GB, free: 7.262 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 6.699e-05/0.2158, allocations: 11.94 kB / 0.6952 GB, free: 7.25 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 7.257e-05/0.2159, allocations: 15.98 kB / 0.6952 GB, free: 7.234 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 1.998e-05/0.2159, allocations: 7.938 kB / 0.6952 GB, free: 7.227 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 8.596e-05/0.216, allocations: 11.98 kB / 0.6952 GB, free: 7.215 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 2.265e-05/0.216, allocations: 8 kB / 0.6952 GB, free: 7.207 MB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 4.315e-05/0.2161, allocations: 15.92 kB / 0.6952 GB, free: 7.191 MB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.00017/0.2162, allocations: 35.83 kB / 0.6953 GB, free: 7.156 MB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.2162, allocations: 7.938 kB / 0.6953 GB, free: 7.148 MB / 0.5137 GB Notification: Performance of FrontEnd: time 2.084e-06/0.2162, allocations: 0 / 0.6953 GB, free: 7.148 MB / 0.5137 GB Notification: Performance of Transformations before backend: time 9.077e-06/0.2162, allocations: 0 / 0.6953 GB, free: 7.148 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0006446/0.2169, allocations: 266.3 kB / 0.6955 GB, free: 6.855 MB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 5.548e-05/0.2169, allocations: 8.031 kB / 0.6955 GB, free: 6.848 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.736e-05/0.217, allocations: 4.938 kB / 0.6955 GB, free: 6.844 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000151/0.2171, allocations: 110.5 kB / 0.6956 GB, free: 6.711 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.91e-05/0.2172, allocations: 4.375 kB / 0.6956 GB, free: 6.707 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.253e-05/0.2172, allocations: 4.375 kB / 0.6956 GB, free: 6.703 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002402/0.2174, allocations: 66.17 kB / 0.6957 GB, free: 6.633 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.2174, allocations: 192 / 0.6957 GB, free: 6.633 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.471e-05/0.2174, allocations: 3.938 kB / 0.6957 GB, free: 6.629 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.941e-06/0.2175, allocations: 0 / 0.6957 GB, free: 6.629 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002109/0.2177, allocations: 43.95 kB / 0.6958 GB, free: 6.586 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006271/0.2183, allocations: 236 kB / 0.696 GB, free: 6.312 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003825/0.2187, allocations: 62.48 kB / 0.696 GB, free: 6.242 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001138/0.2188, allocations: 28.81 kB / 0.6961 GB, free: 6.211 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 9.87e-05/0.2189, allocations: 4 kB / 0.6961 GB, free: 6.207 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.769e-05/0.2189, allocations: 34.56 kB / 0.6961 GB, free: 6.164 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=3): time 1.433e-06/0.2189, allocations: 0 / 0.6961 GB, free: 6.164 MB / 0.5137 GB Notification: Performance of matching and sorting (n=3): time 0.0004737/0.2194, allocations: 97.62 kB / 0.6962 GB, free: 6.062 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.265e-05/0.2195, allocations: 55.34 kB / 0.6963 GB, free: 5.996 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001061/0.2196, allocations: 101.8 kB / 0.6963 GB, free: 5.887 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 2.701e-05/0.2196, allocations: 29.7 kB / 0.6964 GB, free: 5.852 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 7.692e-05/0.2197, allocations: 88.09 kB / 0.6965 GB, free: 5.762 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 2.026e-05/0.2197, allocations: 7.953 kB / 0.6965 GB, free: 5.754 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.524e-05/0.2197, allocations: 17.72 kB / 0.6965 GB, free: 5.73 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0002813/0.22, allocations: 314.8 kB / 0.6968 GB, free: 5.414 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001015/0.2201, allocations: 19.98 kB / 0.6968 GB, free: 5.395 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.786e-05/0.2202, allocations: 19.97 kB / 0.6968 GB, free: 5.375 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002018/0.2204, allocations: 44.83 kB / 0.6969 GB, free: 5.328 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.13e-06/0.2204, allocations: 3.938 kB / 0.6969 GB, free: 5.324 MB / 0.5137 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002412/0.2207, allocations: 77.58 kB / 0.6969 GB, free: 5.242 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.907e-05/0.2207, allocations: 8 kB / 0.697 GB, free: 5.234 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.422e-06/0.2207, allocations: 0 / 0.697 GB, free: 5.234 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.002e-05/0.2207, allocations: 0 / 0.697 GB, free: 5.234 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.609e-05/0.2208, allocations: 11.98 kB / 0.697 GB, free: 5.223 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.282e-06/0.2208, allocations: 0 / 0.697 GB, free: 5.223 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.044e-05/0.2209, allocations: 11.94 kB / 0.697 GB, free: 5.211 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.682e-06/0.2209, allocations: 0 / 0.697 GB, free: 5.211 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 (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.0002229/0.2211, allocations: 123.5 kB / 0.6971 GB, free: 5.082 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.529e-05/0.2211, allocations: 0 / 0.6971 GB, free: 5.082 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002802/0.2214, allocations: 81.27 kB / 0.6972 GB, free: 4.996 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.227e-06/0.2214, allocations: 4 kB / 0.6972 GB, free: 4.992 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.2214, allocations: 4 kB / 0.6972 GB, free: 4.988 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.226e-06/0.2214, allocations: 0 / 0.6972 GB, free: 4.988 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001963/0.2216, allocations: 148.6 kB / 0.6973 GB, free: 4.801 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.2216, allocations: 0 / 0.6973 GB, free: 4.801 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.5e-05/0.2217, allocations: 7.984 kB / 0.6973 GB, free: 4.793 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.2217, allocations: 4.562 kB / 0.6973 GB, free: 4.789 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.097e-06/0.2217, allocations: 0 / 0.6973 GB, free: 4.789 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.206e-06/0.2217, allocations: 4 kB / 0.6973 GB, free: 4.785 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.2217, allocations: 0 / 0.6973 GB, free: 4.785 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002912/0.222, allocations: 175.4 kB / 0.6975 GB, free: 4.598 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 1.203e-05/0.222, allocations: 7.984 kB / 0.6975 GB, free: 4.59 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.438e-05/0.222, allocations: 0 / 0.6975 GB, free: 4.59 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.001e-05/0.2221, allocations: 7.938 kB / 0.6975 GB, free: 4.582 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.67e-05/0.2221, allocations: 11.98 kB / 0.6975 GB, free: 4.57 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.067e-06/0.2221, allocations: 0 / 0.6975 GB, free: 4.57 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 4.521e-05/0.2222, allocations: 83.27 kB / 0.6976 GB, free: 4.488 MB / 0.5137 GB Notification: Performance of sort global known variables: time 8e-08/0.2222, allocations: 4 kB / 0.6976 GB, free: 4.484 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002231/0.2224, allocations: 12 kB / 0.6976 GB, free: 4.473 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.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.0001793/0.2226, allocations: 99.19 kB / 0.6977 GB, free: 4.363 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0002519/0.2228, allocations: 39.95 kB / 0.6978 GB, free: 4.324 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.2228, allocations: 0 / 0.6978 GB, free: 4.324 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0001103/0.223, allocations: 27.97 kB / 0.6978 GB, free: 4.297 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002887/0.2232, allocations: 11.94 kB / 0.6978 GB, free: 4.285 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003517/0.2236, allocations: 117.4 kB / 0.6979 GB, free: 4.145 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004426/0.224, allocations: 0.6768 MB / 0.6986 GB, free: 3.441 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 3.023e-05/0.2241, allocations: 4 kB / 0.6986 GB, free: 3.438 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.006e-05/0.2241, allocations: 11.44 kB / 0.6986 GB, free: 3.426 MB / 0.5137 GB Notification: Performance of SimCode: time 3.01e-07/0.2241, allocations: 4 kB / 0.6986 GB, free: 3.422 MB / 0.5137 GB Notification: Performance of Templates: time 0.003689/0.2278, allocations: 0.7189 MB / 0.6993 GB, free: 2.707 MB / 0.5137 GB " [Timeout remaining time 660] make -j1 -f IDEAS_IDEAS.Utilities.Math.Examples.Factorial.makefile [Timeout 660] (rm -f IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.Factorial.sim & ./IDEAS_IDEAS.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 5.960490174591541] Failed to read output from testmodel.py, exit status != 0: 0.2355284197255969 0.252279374 0.032957733 Calling exit ... <OMPython.OMCSessionZMQ object at 0x7f48d85417b0>