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.001274/0.001274, allocations: 106.2 kB / 16.4 MB, free: 6.488 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.001279/0.001279, allocations: 192.6 kB / 19.36 MB, free: 3.75 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.439/1.439, allocations: 222.9 MB / 245.1 MB, free: 15.02 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: 132.2 MB / 429.4 MB, free: 5.953 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.00192/0.00192, allocations: 73.47 kB / 0.5894 GB, free: 23.99 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.188/0.19, allocations: 80.21 MB / 0.6677 GB, free: 9.773 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.0017/0.1917, allocations: 0.5669 MB / 0.6683 GB, free: 9.211 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0002467/0.192, allocations: 51.8 kB / 0.6684 GB, free: 9.16 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.587e-05/0.192, allocations: 0 / 0.6684 GB, free: 9.16 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.139e-05/0.192, allocations: 0 / 0.6684 GB, free: 9.16 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 6.262e-06/0.1921, allocations: 8 kB / 0.6684 GB, free: 9.152 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.000204/0.1923, allocations: 11.94 kB / 0.6684 GB, free: 9.141 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 4.566e-05/0.1923, allocations: 7.922 kB / 0.6684 GB, free: 9.133 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.578e-05/0.1924, allocations: 0 / 0.6684 GB, free: 9.133 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.263e-05/0.1924, allocations: 4 kB / 0.6684 GB, free: 9.129 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 2.25e-05/0.1924, allocations: 3.984 kB / 0.6684 GB, free: 9.125 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.606e-06/0.1924, allocations: 0 / 0.6684 GB, free: 9.125 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 7.347e-05/0.1925, allocations: 11.94 kB / 0.6684 GB, free: 9.113 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.107e-05/0.1925, allocations: 3.984 kB / 0.6684 GB, free: 9.109 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 1.784e-05/0.1925, allocations: 4 kB / 0.6684 GB, free: 9.105 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 8.396e-05/0.1926, allocations: 11.94 kB / 0.6684 GB, free: 9.094 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.167e-06/0.1926, allocations: 4 kB / 0.6684 GB, free: 9.09 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.472e-06/0.1927, allocations: 0 / 0.6684 GB, free: 9.09 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.799e-06/0.1927, allocations: 0 / 0.6684 GB, free: 9.09 MB / 0.4981 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.0003655/0.193, allocations: 315.8 kB / 0.6687 GB, free: 8.73 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/0.1931, allocations: 8.031 kB / 0.6687 GB, free: 8.723 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.68e-05/0.1931, allocations: 34.75 kB / 0.6688 GB, free: 8.68 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.201e-05/0.1931, allocations: 0.9375 kB / 0.6688 GB, free: 8.68 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001256/0.1933, allocations: 160.4 kB / 0.6689 GB, free: 8.484 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.799e-06/0.1933, allocations: 384 / 0.6689 GB, free: 8.484 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.155e-05/0.1933, allocations: 384 / 0.6689 GB, free: 8.484 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001066/0.1934, allocations: 46.59 kB / 0.669 GB, free: 8.434 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.1934, allocations: 3.938 kB / 0.669 GB, free: 8.43 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.332e-06/0.1934, allocations: 0 / 0.669 GB, free: 8.43 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.1935, allocations: 0 / 0.669 GB, free: 8.43 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.174e-05/0.1935, allocations: 4 kB / 0.669 GB, free: 8.426 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001684/0.1937, allocations: 157.7 kB / 0.6691 GB, free: 8.223 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 5.025e-05/0.1937, allocations: 18.58 kB / 0.6691 GB, free: 8.195 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.665e-05/0.1937, allocations: 8.859 kB / 0.6691 GB, free: 8.184 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001659/0.1939, allocations: 89.16 kB / 0.6692 GB, free: 8.078 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.162e-05/0.194, allocations: 34.5 kB / 0.6693 GB, free: 8.035 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=2): time 9.62e-07/0.194, allocations: 0 / 0.6693 GB, free: 8.035 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2): time 0.0001495/0.1941, allocations: 41.64 kB / 0.6693 GB, free: 7.988 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.063e-05/0.1942, allocations: 55.41 kB / 0.6694 GB, free: 7.922 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.99e-05/0.1942, allocations: 93.84 kB / 0.6694 GB, free: 7.82 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.312e-05/0.1942, allocations: 29.83 kB / 0.6695 GB, free: 7.785 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.132e-05/0.1943, allocations: 80.14 kB / 0.6695 GB, free: 7.703 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.282e-05/0.1943, allocations: 3.953 kB / 0.6696 GB, free: 7.699 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.154e-05/0.1943, allocations: 17.72 kB / 0.6696 GB, free: 7.676 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001354/0.1945, allocations: 314.8 kB / 0.6699 GB, free: 7.359 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.765e-05/0.1945, allocations: 8 kB / 0.6699 GB, free: 7.352 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.055e-05/0.1945, allocations: 3.938 kB / 0.6699 GB, free: 7.348 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.018e-05/0.1946, allocations: 16.84 kB / 0.6699 GB, free: 7.328 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.1946, allocations: 4 kB / 0.6699 GB, free: 7.324 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.966e-05/0.1946, allocations: 41.7 kB / 0.6699 GB, free: 7.277 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.153e-05/0.1947, allocations: 4 kB / 0.6699 GB, free: 7.273 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.1947, allocations: 3.938 kB / 0.6699 GB, free: 7.27 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.51e-05/0.1947, allocations: 0 / 0.6699 GB, free: 7.27 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.302e-05/0.1947, allocations: 4 kB / 0.67 GB, free: 7.266 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.717e-06/0.1948, allocations: 11.91 kB / 0.67 GB, free: 7.254 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.259e-05/0.1948, allocations: 0 / 0.67 GB, free: 7.254 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.376e-06/0.1948, allocations: 0 / 0.67 GB, free: 7.254 MB / 0.4981 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.553e-05/0.1949, allocations: 113.9 kB / 0.6701 GB, free: 7.133 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.807e-06/0.1949, allocations: 7.938 kB / 0.6701 GB, free: 7.125 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.484e-05/0.195, allocations: 44.75 kB / 0.6701 GB, free: 7.07 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.833e-06/0.195, allocations: 0 / 0.6701 GB, free: 7.07 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.195, allocations: 0 / 0.6701 GB, free: 7.07 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.195, allocations: 0 / 0.6701 GB, free: 7.07 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001049/0.1951, allocations: 149.7 kB / 0.6703 GB, free: 6.875 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.41e-07/0.1951, allocations: 0 / 0.6703 GB, free: 6.875 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.275e-05/0.1951, allocations: 3.984 kB / 0.6703 GB, free: 6.871 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.5e-05/0.1952, allocations: 8.031 kB / 0.6703 GB, free: 6.863 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.474e-06/0.1952, allocations: 3.938 kB / 0.6703 GB, free: 6.859 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.1952, allocations: 0 / 0.6703 GB, free: 6.859 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.1952, allocations: 0 / 0.6703 GB, free: 6.859 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.033e-05/0.1953, allocations: 65.06 kB / 0.6703 GB, free: 6.777 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.989e-05/0.1953, allocations: 81.09 kB / 0.6704 GB, free: 6.68 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.327e-05/0.1954, allocations: 3.938 kB / 0.6704 GB, free: 6.676 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.128e-05/0.1954, allocations: 4.031 kB / 0.6704 GB, free: 6.672 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.606e-05/0.1954, allocations: 4 kB / 0.6704 GB, free: 6.668 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.194e-06/0.1954, allocations: 0 / 0.6704 GB, free: 6.668 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.552e-05/0.1955, allocations: 75.28 kB / 0.6705 GB, free: 6.594 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.1955, allocations: 0 / 0.6705 GB, free: 6.594 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0001888/0.1957, allocations: 7.938 kB / 0.6705 GB, free: 6.586 MB / 0.4981 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.0004406/0.1961, allocations: 0.624 MB / 0.6711 GB, free: 5.93 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 7.26e-05/0.1962, allocations: 7.938 kB / 0.6711 GB, free: 5.922 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.1962, allocations: 0 / 0.6711 GB, free: 5.922 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.725e-05/0.1962, allocations: 8 kB / 0.6711 GB, free: 5.914 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001196/0.1963, allocations: 4 kB / 0.6711 GB, free: 5.91 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002843/0.1966, allocations: 110.6 kB / 0.6712 GB, free: 5.762 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002871/0.1969, allocations: 0.6769 MB / 0.6719 GB, free: 5.059 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.353e-05/0.1969, allocations: 4 kB / 0.6719 GB, free: 5.055 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.06e-05/0.197, allocations: 11.42 kB / 0.6719 GB, free: 5.043 MB / 0.4981 GB Notification: Performance of SimCode: time 1.973e-06/0.197, allocations: 4 kB / 0.6719 GB, free: 5.039 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02242/0.2194, allocations: 1.043 MB / 0.6729 GB, free: 4.09 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.667/7.886, allocations: 13.47 kB / 0.673 GB, free: 4.082 MB / 0.4981 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 & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial_res.csv --start-time 0 --stop-time 12.9 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.00516 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.478549868101254] Failed to read output from testmodel.py, exit status != 0: 7.9619825390400365 7.983390504 7.786967313 Calling exit ...