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.001512/0.001512, allocations: 101.3 kB / 19.73 MB, free: 2.133 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.002115/0.002115, allocations: 220.7 kB / 23.03 MB, free: 4.941 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.523/1.523, allocations: 230.6 MB / 256.8 MB, free: 7.797 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.8344/0.8344, allocations: 134 MB / 447.2 MB, free: 9.934 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Functions_Examples_Factorial",fmuType="cs",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.001912/0.001912, allocations: 61.97 kB / 0.6193 GB, free: 6.871 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1895/0.1914, allocations: 85.92 MB / 0.7032 GB, free: 1.047 MB / 0.5137 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.002429/0.1938, allocations: 0.5863 MB / 0.7038 GB, free: 476 kB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.0003259/0.1941, allocations: 44.28 kB / 0.7038 GB, free: 432 kB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.806e-05/0.1942, allocations: 0 / 0.7038 GB, free: 432 kB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 1.687e-05/0.1942, allocations: 0 / 0.7038 GB, free: 432 kB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 6.793e-06/0.1942, allocations: 0 / 0.7038 GB, free: 432 kB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002416/0.1944, allocations: 15.91 kB / 0.7038 GB, free: 416 kB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 4.799e-05/0.1945, allocations: 8 kB / 0.7038 GB, free: 408 kB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 4.591e-05/0.1945, allocations: 0 / 0.7038 GB, free: 408 kB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 1.669e-05/0.1945, allocations: 7.938 kB / 0.7038 GB, free: 400 kB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 2.028e-05/0.1946, allocations: 0 / 0.7038 GB, free: 400 kB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 1.294e-05/0.1946, allocations: 4 kB / 0.7038 GB, free: 396 kB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 8.821e-05/0.1947, allocations: 11.98 kB / 0.7038 GB, free: 384 kB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 1.032e-05/0.1947, allocations: 0 / 0.7038 GB, free: 384 kB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 2.056e-05/0.1947, allocations: 3.984 kB / 0.7038 GB, free: 380 kB / 0.5137 GB Notification: Performance of NFConvertDAE.convert: time 0.0001024/0.1948, allocations: 8 kB / 0.7039 GB, free: 372 kB / 0.5137 GB Notification: Performance of FrontEnd - DAE generated: time 4.709e-06/0.1948, allocations: 0 / 0.7039 GB, free: 372 kB / 0.5137 GB Notification: Performance of FrontEnd: time 2.104e-06/0.1948, allocations: 0 / 0.7039 GB, free: 372 kB / 0.5137 GB Notification: Performance of Transformations before backend: time 7.955e-06/0.1948, allocations: 3.984 kB / 0.7039 GB, free: 368 kB / 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.0003446/0.1951, allocations: 246.6 kB / 0.7041 GB, free: 88 kB / 0.5137 GB Notification: Performance of prepare preOptimizeDAE: time 4.155e-05/0.1952, allocations: 12.03 kB / 0.7041 GB, free: 76 kB / 0.5137 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.423e-05/0.1952, allocations: 192 / 0.7041 GB, free: 76 kB / 0.5137 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.59e-05/0.1952, allocations: 34.75 kB / 0.7041 GB, free: 32 kB / 0.5137 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.13e-05/0.1953, allocations: 8.891 kB / 0.7041 GB, free: 24 kB / 0.5137 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001322/0.1954, allocations: 114.5 kB / 0.7043 GB, free: 15.89 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.733e-06/0.1954, allocations: 384 / 0.7043 GB, free: 15.89 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.141e-05/0.1954, allocations: 384 / 0.7043 GB, free: 15.89 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001169/0.1955, allocations: 34.02 kB / 0.7043 GB, free: 15.85 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.936e-06/0.1955, allocations: 0 / 0.7043 GB, free: 15.85 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.195e-06/0.1956, allocations: 0 / 0.7043 GB, free: 15.85 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.1956, allocations: 4 kB / 0.7043 GB, free: 15.84 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.457e-05/0.1956, allocations: 4 kB / 0.7043 GB, free: 15.84 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001751/0.1958, allocations: 124.8 kB / 0.7044 GB, free: 15.68 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 6.503e-05/0.1958, allocations: 26.55 kB / 0.7044 GB, free: 15.64 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.505e-05/0.1959, allocations: 8.922 kB / 0.7044 GB, free: 15.63 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001489/0.196, allocations: 7.984 kB / 0.7045 GB, free: 15.62 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.449e-05/0.196, allocations: 34.5 kB / 0.7045 GB, free: 15.58 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=2): time 1.303e-06/0.196, allocations: 0 / 0.7045 GB, free: 15.58 MB / 0.5294 GB Notification: Performance of matching and sorting (n=2): time 0.0001649/0.1962, allocations: 37.7 kB / 0.7045 GB, free: 15.54 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.438e-05/0.1963, allocations: 55.53 kB / 0.7046 GB, free: 15.47 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.977e-05/0.1963, allocations: 105.7 kB / 0.7047 GB, free: 15.36 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 1.756e-05/0.1963, allocations: 25.7 kB / 0.7047 GB, free: 15.32 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 4.149e-05/0.1964, allocations: 80.14 kB / 0.7048 GB, free: 15.24 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 2.068e-05/0.1964, allocations: 0 / 0.7048 GB, free: 15.24 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.105e-05/0.1964, allocations: 17.72 kB / 0.7048 GB, free: 15.22 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001512/0.1966, allocations: 310.8 kB / 0.7051 GB, free: 14.91 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.298e-05/0.1966, allocations: 0 / 0.7051 GB, free: 14.91 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.738e-06/0.1966, allocations: 4 kB / 0.7051 GB, free: 14.9 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.521e-05/0.1967, allocations: 16.84 kB / 0.7051 GB, free: 14.88 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.1967, allocations: 4.062 kB / 0.7051 GB, free: 14.88 MB / 0.5294 GB Notification: Performance of matching and sorting (n=2) (initialization): time 8.674e-05/0.1967, allocations: 33.7 kB / 0.7051 GB, free: 14.84 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 1.995e-05/0.1968, allocations: 11.94 kB / 0.7052 GB, free: 14.83 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.1968, allocations: 0 / 0.7052 GB, free: 14.83 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.677e-05/0.1968, allocations: 0 / 0.7052 GB, free: 14.83 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.166e-05/0.1968, allocations: 7.938 kB / 0.7052 GB, free: 14.82 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.208e-06/0.1969, allocations: 7.922 kB / 0.7052 GB, free: 14.81 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.928e-05/0.1969, allocations: 4 kB / 0.7052 GB, free: 14.81 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.521e-06/0.1969, allocations: 0 / 0.7052 GB, free: 14.81 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 9.154e-05/0.197, allocations: 109.8 kB / 0.7053 GB, free: 14.69 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.616e-05/0.197, allocations: 11.92 kB / 0.7053 GB, free: 14.68 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001769/0.1972, allocations: 44.84 kB / 0.7053 GB, free: 14.63 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.074e-06/0.1972, allocations: 0 / 0.7053 GB, free: 14.63 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.1972, allocations: 0 / 0.7053 GB, free: 14.63 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.345e-06/0.1972, allocations: 0 / 0.7053 GB, free: 14.63 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001183/0.1973, allocations: 116.8 kB / 0.7054 GB, free: 14.48 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.917e-06/0.1973, allocations: 4 kB / 0.7055 GB, free: 14.47 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.994e-05/0.1973, allocations: 4 kB / 0.7055 GB, free: 14.47 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.695e-06/0.1973, allocations: 11.86 kB / 0.7055 GB, free: 14.46 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.182e-06/0.1973, allocations: 0 / 0.7055 GB, free: 14.46 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/0.1973, allocations: 4.031 kB / 0.7055 GB, free: 14.45 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-06/0.1973, allocations: 0 / 0.7055 GB, free: 14.45 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001012/0.1974, allocations: 57.14 kB / 0.7055 GB, free: 14.38 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 1.448e-05/0.1975, allocations: 15.98 kB / 0.7055 GB, free: 14.36 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.509e-05/0.1975, allocations: 3.938 kB / 0.7055 GB, free: 14.36 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.372e-05/0.1975, allocations: 0 / 0.7055 GB, free: 14.36 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.169e-05/0.1975, allocations: 0 / 0.7055 GB, free: 14.36 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.995e-06/0.1975, allocations: 4 kB / 0.7055 GB, free: 14.36 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 3.944e-05/0.1976, allocations: 75.28 kB / 0.7056 GB, free: 14.28 MB / 0.5294 GB Notification: Performance of sort global known variables: time 9.1e-08/0.1976, allocations: 0 / 0.7056 GB, free: 14.28 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.000298/0.1979, allocations: 7.938 kB / 0.7056 GB, free: 14.27 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.0005876/0.1984, allocations: 0.6084 MB / 0.7062 GB, free: 13.63 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 9.336e-05/0.1985, allocations: 11.98 kB / 0.7062 GB, free: 13.62 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1985, allocations: 0 / 0.7062 GB, free: 13.62 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 1.783e-05/0.1986, allocations: 4 kB / 0.7062 GB, free: 13.62 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001852/0.1987, allocations: 4 kB / 0.7062 GB, free: 13.61 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004395/0.1992, allocations: 114.6 kB / 0.7063 GB, free: 13.46 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.921e-05/0.1993, allocations: 67.31 kB / 0.7064 GB, free: 13.38 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 1.482e-05/0.1993, allocations: 0 / 0.7064 GB, free: 13.38 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.762e-05/0.1993, allocations: 7.438 kB / 0.7064 GB, free: 13.37 MB / 0.5294 GB Notification: Performance of SimCode: time 4.41e-07/0.1993, allocations: 0 / 0.7064 GB, free: 13.37 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02174/0.221, allocations: 1.225 MB / 0.7076 GB, free: 12.28 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.15/11.37, allocations: 10.16 kB / 0.7076 GB, free: 12.28 MB / 0.5294 GB " [Timeout remaining time 648] (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 os._exit(0), Time elapsed: 15.075457275030203] Failed to read output from testmodel.py, exit status != 0: 11.535892219049856 11.559336707 11.359500696 Calling exit ...