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.001667/0.001667, allocations: 102.1 kB / 16.45 MB, free: 6.445 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.001462/0.001462, allocations: 187.7 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.472/1.472, allocations: 225.6 MB / 247.8 MB, free: 3.734 MB / 190.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.8929/0.8929, allocations: 134 MB / 436.6 MB, free: 13.79 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.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.Examples.Factorial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.Factorial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001915/0.001915, allocations: 63.91 kB / 0.6051 GB, free: 8.195 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3842/0.3862, allocations: 84.67 MB / 0.6878 GB, free: 1.82 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.00242/0.3886, allocations: 1.515 MB / 0.6893 GB, free: 0.625 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0003067/0.3889, allocations: 125.6 kB / 0.6894 GB, free: 0.5273 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.499e-05/0.3889, allocations: 0 / 0.6894 GB, free: 0.5273 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.348e-05/0.3889, allocations: 9.297 kB / 0.6894 GB, free: 0.5195 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.344e-05/0.389, allocations: 3.938 kB / 0.6894 GB, free: 0.5156 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001973/0.3892, allocations: 26.25 kB / 0.6894 GB, free: 0.4961 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 6.414e-05/0.3892, allocations: 27.67 kB / 0.6895 GB, free: 492 kB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.334e-05/0.3893, allocations: 8.125 kB / 0.6895 GB, free: 488 kB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.808e-05/0.3894, allocations: 15.73 kB / 0.6895 GB, free: 476 kB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.281e-05/0.3894, allocations: 20.44 kB / 0.6895 GB, free: 460 kB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.315e-05/0.3894, allocations: 7.281 kB / 0.6895 GB, free: 456 kB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.544e-05/0.3895, allocations: 19.02 kB / 0.6895 GB, free: 444 kB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.056e-05/0.3895, allocations: 1.469 kB / 0.6895 GB, free: 444 kB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.252e-05/0.3895, allocations: 14.59 kB / 0.6895 GB, free: 432 kB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 9.761e-05/0.3896, allocations: 33.31 kB / 0.6896 GB, free: 408 kB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.777e-06/0.3896, allocations: 4 kB / 0.6896 GB, free: 404 kB / 0.4981 GB Notification: Performance of FrontEnd: time 1.232e-06/0.3896, allocations: 0 / 0.6896 GB, free: 404 kB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.678e-06/0.3896, allocations: 0 / 0.6896 GB, free: 404 kB / 0.4981 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.0003546/0.39, allocations: 346 kB / 0.6899 GB, free: 24 kB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.507e-05/0.39, allocations: 10.44 kB / 0.6899 GB, free: 24 kB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.379e-05/0.3901, allocations: 34.69 kB / 0.69 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.382e-05/0.3901, allocations: 3.031 kB / 0.69 GB, free: 15.98 MB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001365/0.3902, allocations: 169.5 kB / 0.6901 GB, free: 15.78 MB / 0.5137 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.146e-05/0.3902, allocations: 1.5 kB / 0.6901 GB, free: 15.78 MB / 0.5137 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.188e-05/0.3903, allocations: 6.75 kB / 0.6901 GB, free: 15.77 MB / 0.5137 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001772/0.3904, allocations: 52.58 kB / 0.6902 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.3904, allocations: 3.938 kB / 0.6902 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.896e-06/0.3905, allocations: 1.188 kB / 0.6902 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.3905, allocations: 4 kB / 0.6902 GB, free: 15.72 MB / 0.5137 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001935/0.3906, allocations: 46.67 kB / 0.6902 GB, free: 15.7 MB / 0.5137 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003774/0.391, allocations: 270.2 kB / 0.6905 GB, free: 15.4 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003006/0.3913, allocations: 56.81 kB / 0.6905 GB, free: 15.36 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.687e-05/0.3914, allocations: 27.44 kB / 0.6906 GB, free: 15.34 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001168/0.3915, allocations: 84.72 kB / 0.6906 GB, free: 15.24 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.164e-05/0.3916, allocations: 31.84 kB / 0.6907 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.3916, allocations: 0 / 0.6907 GB, free: 15.2 MB / 0.5137 GB Notification: Performance of matching and sorting (n=3): time 0.000371/0.3919, allocations: 98.05 kB / 0.6908 GB, free: 15.13 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.481e-05/0.392, allocations: 55.41 kB / 0.6908 GB, free: 15.07 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.117e-05/0.3921, allocations: 99.47 kB / 0.6909 GB, free: 14.96 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 1.799e-05/0.3921, allocations: 29.7 kB / 0.6909 GB, free: 14.93 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 5.574e-05/0.3921, allocations: 85.22 kB / 0.691 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 1.586e-05/0.3922, allocations: 5.109 kB / 0.691 GB, free: 14.84 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.922e-05/0.3922, allocations: 21.17 kB / 0.6911 GB, free: 14.82 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001397/0.3923, allocations: 311.9 kB / 0.6914 GB, free: 14.5 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.138e-05/0.3924, allocations: 26.47 kB / 0.6914 GB, free: 14.49 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.682e-05/0.3925, allocations: 19.42 kB / 0.6914 GB, free: 14.48 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001694/0.3927, allocations: 50.19 kB / 0.6914 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.3927, allocations: 5.156 kB / 0.6914 GB, free: 14.45 MB / 0.5137 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002135/0.3929, allocations: 71.2 kB / 0.6915 GB, free: 14.39 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.399e-05/0.3929, allocations: 5.656 kB / 0.6915 GB, free: 14.39 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.3929, allocations: 7.984 kB / 0.6915 GB, free: 14.39 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.325e-05/0.3929, allocations: 1.094 kB / 0.6915 GB, free: 14.39 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.96e-05/0.393, allocations: 11.45 kB / 0.6915 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.581e-06/0.393, allocations: 0 / 0.6915 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.728e-05/0.3931, allocations: 8.234 kB / 0.6915 GB, free: 14.38 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.851e-06/0.3931, allocations: 1.125 kB / 0.6915 GB, free: 14.38 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 9.57e-05/0.3932, allocations: 116.2 kB / 0.6917 GB, free: 14.26 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.464e-05/0.3932, allocations: 1.188 kB / 0.6917 GB, free: 14.26 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002599/0.3935, allocations: 86.27 kB / 0.6917 GB, free: 14.19 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.873e-06/0.3935, allocations: 1.375 kB / 0.6917 GB, free: 14.19 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.516e-06/0.3935, allocations: 0 / 0.6917 GB, free: 14.19 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/0.3935, allocations: 0 / 0.6917 GB, free: 14.19 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001857/0.3936, allocations: 172.6 kB / 0.6919 GB, free: 13.98 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.3936, allocations: 0 / 0.6919 GB, free: 13.98 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.579e-05/0.3937, allocations: 11.27 kB / 0.6919 GB, free: 13.97 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.3937, allocations: 1.125 kB / 0.6919 GB, free: 13.97 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.045e-06/0.3937, allocations: 5.125 kB / 0.6919 GB, free: 13.97 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.3937, allocations: 0 / 0.6919 GB, free: 13.97 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.21e-07/0.3937, allocations: 0 / 0.6919 GB, free: 13.97 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002745/0.394, allocations: 175 kB / 0.6921 GB, free: 13.81 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 4.728e-05/0.3941, allocations: 82.11 kB / 0.6922 GB, free: 13.71 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.536e-05/0.3941, allocations: 5 kB / 0.6922 GB, free: 13.71 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.89e-05/0.3942, allocations: 12.14 kB / 0.6922 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.417e-05/0.3942, allocations: 6.125 kB / 0.6922 GB, free: 13.7 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.709e-05/0.3942, allocations: 5.359 kB / 0.6922 GB, free: 13.69 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 5.001e-05/0.3943, allocations: 78.19 kB / 0.6923 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of sort global known variables: time 7e-08/0.3943, allocations: 1.281 kB / 0.6923 GB, free: 13.62 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0002287/0.3945, allocations: 14.34 kB / 0.6923 GB, free: 13.61 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.0006491/0.3952, allocations: 0.7076 MB / 0.693 GB, free: 12.92 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.0002342/0.3954, allocations: 48.36 kB / 0.693 GB, free: 12.89 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3954, allocations: 1.281 kB / 0.693 GB, free: 12.89 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 9.594e-05/0.3955, allocations: 25.25 kB / 0.6931 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002802/0.3958, allocations: 10.23 kB / 0.6931 GB, free: 12.88 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004605/0.3962, allocations: 147.8 kB / 0.6932 GB, free: 12.72 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003048/0.3965, allocations: 0.6811 MB / 0.6939 GB, free: 12.02 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 2.95e-05/0.3966, allocations: 3.344 kB / 0.6939 GB, free: 12.02 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.801e-05/0.3966, allocations: 13.7 kB / 0.6939 GB, free: 12 MB / 0.5137 GB Notification: Performance of SimCode: time 3.1e-07/0.3966, allocations: 0 / 0.6939 GB, free: 12 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02405/0.4206, allocations: 1.58 MB / 0.6954 GB, free: 11.14 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.916/8.336, allocations: 6.016 kB / 0.6954 GB, free: 11.14 MB / 0.5137 GB " [Timeout remaining time 652] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --stepSize=0.0052 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Math_Examples_Factorial.fmu > IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 11.823743488639593] Failed to read output from testmodel.py, exit status != 0: 8.405991173814982 8.428303743 8.034271758 Calling exit ...