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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001442/0.001442, allocations: 174.6 kB / 12.73 MB, free: 2.59 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7952/0.7952, allocations: 133.4 MB / 146.7 MB, free: 10.8 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.583/1.583, allocations: 221.3 MB / 400.4 MB, free: 5.824 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008749/0.000875, allocations: 104.7 kB / 483.3 MB, free: 5.879 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 4.133e-05/4.151e-05, allocations: 3.25 kB / 0.5601 GB, free: 87.88 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1706/0.1707, allocations: 82.31 MB / 0.6405 GB, free: 7.746 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6185/0.7893, allocations: 111.5 MB / 0.7494 GB, free: 11.99 MB / 0.4948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002304/0.7896, allocations: 70.88 kB / 0.7495 GB, free: 11.99 MB / 0.4948 GB Notification: Performance of FrontEnd - DAE generated: time 0.002997/0.7926, allocations: 0.935 MB / 0.7504 GB, free: 27.65 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.513e-06/0.7926, allocations: 3.844 kB / 0.7504 GB, free: 27.65 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 7.705e-06/0.7926, allocations: 0 / 0.7504 GB, free: 27.65 MB / 0.5105 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.0004436/0.7931, allocations: 355.5 kB / 0.7507 GB, free: 27.3 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 5.063e-05/0.7931, allocations: 7.75 kB / 0.7507 GB, free: 27.3 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.569e-05/0.7932, allocations: 34.12 kB / 0.7508 GB, free: 27.26 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.62e-05/0.7932, allocations: 7.719 kB / 0.7508 GB, free: 27.25 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001423/0.7934, allocations: 174.7 kB / 0.751 GB, free: 27.05 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.353e-05/0.7934, allocations: 3.844 kB / 0.751 GB, free: 27.05 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.158e-05/0.7934, allocations: 4 kB / 0.751 GB, free: 27.04 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001096/0.7935, allocations: 46.72 kB / 0.751 GB, free: 27.01 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.136e-06/0.7935, allocations: 0 / 0.751 GB, free: 27.01 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.039e-05/0.7936, allocations: 3.844 kB / 0.751 GB, free: 27.01 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.17e-06/0.7936, allocations: 0 / 0.751 GB, free: 27.01 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.347e-05/0.7936, allocations: 14.94 kB / 0.751 GB, free: 27.01 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004558/0.7941, allocations: 285.1 kB / 0.7513 GB, free: 26.74 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00022/0.7943, allocations: 46.64 kB / 0.7513 GB, free: 26.71 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.007e-05/0.7944, allocations: 12.11 kB / 0.7513 GB, free: 26.71 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001314/0.7945, allocations: 83.89 kB / 0.7514 GB, free: 26.61 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.361e-05/0.7945, allocations: 30.56 kB / 0.7515 GB, free: 26.57 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=3): time 1.182e-06/0.7945, allocations: 0 / 0.7515 GB, free: 26.57 MB / 0.5105 GB Notification: Performance of matching and sorting (n=3): time 0.0001727/0.7947, allocations: 62.41 kB / 0.7515 GB, free: 26.53 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.748e-05/0.7948, allocations: 51.41 kB / 0.7516 GB, free: 26.47 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.165e-05/0.7949, allocations: 94.78 kB / 0.7517 GB, free: 26.38 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 1.621e-05/0.7949, allocations: 25.7 kB / 0.7517 GB, free: 26.35 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 5.563e-05/0.795, allocations: 83.64 kB / 0.7518 GB, free: 26.27 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 1.784e-05/0.795, allocations: 15.66 kB / 0.7518 GB, free: 26.25 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.859e-06/0.795, allocations: 0 / 0.7518 GB, free: 26.25 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001329/0.7951, allocations: 321.6 kB / 0.7521 GB, free: 25.94 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.941e-05/0.7952, allocations: 7.938 kB / 0.7521 GB, free: 25.93 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.582e-05/0.7952, allocations: 7.156 kB / 0.7521 GB, free: 25.93 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.669e-05/0.7952, allocations: 14.48 kB / 0.7521 GB, free: 25.93 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.7952, allocations: 0 / 0.7521 GB, free: 25.93 MB / 0.5105 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.215e-05/0.7953, allocations: 47.08 kB / 0.7522 GB, free: 25.9 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.577e-05/0.7953, allocations: 7.688 kB / 0.7522 GB, free: 25.9 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.7953, allocations: 0 / 0.7522 GB, free: 25.9 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.374e-05/0.7954, allocations: 0 / 0.7522 GB, free: 25.9 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.556e-05/0.7954, allocations: 13.92 kB / 0.7522 GB, free: 25.9 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.787e-06/0.7955, allocations: 7.812 kB / 0.7522 GB, free: 25.89 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.736e-05/0.7955, allocations: 7.109 kB / 0.7522 GB, free: 25.89 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.382e-06/0.7955, allocations: 384 / 0.7522 GB, free: 25.89 MB / 0.5105 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 (fac.y,fac.u) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.665e-05/0.7956, allocations: 108.8 kB / 0.7523 GB, free: 25.79 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.404e-05/0.7957, allocations: 6.016 kB / 0.7523 GB, free: 25.78 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001278/0.7958, allocations: 66.27 kB / 0.7524 GB, free: 25.74 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.164e-06/0.7958, allocations: 0 / 0.7524 GB, free: 25.74 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.397e-06/0.7958, allocations: 4 kB / 0.7524 GB, free: 25.73 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.7958, allocations: 0 / 0.7524 GB, free: 25.73 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001487/0.796, allocations: 168.6 kB / 0.7525 GB, free: 25.54 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.796, allocations: 0 / 0.7525 GB, free: 25.54 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.771e-05/0.7961, allocations: 12.66 kB / 0.7525 GB, free: 25.54 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.625e-06/0.7961, allocations: 3.969 kB / 0.7525 GB, free: 25.54 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.087e-06/0.7961, allocations: 3.125 kB / 0.7525 GB, free: 25.54 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.52e-07/0.7961, allocations: 0 / 0.7525 GB, free: 25.54 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.7961, allocations: 0 / 0.7525 GB, free: 25.54 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001323/0.7962, allocations: 155.5 kB / 0.7527 GB, free: 25.4 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 3.076e-05/0.7963, allocations: 77.11 kB / 0.7528 GB, free: 25.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.425e-05/0.7963, allocations: 0 / 0.7528 GB, free: 25.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.06e-05/0.7964, allocations: 9.719 kB / 0.7528 GB, free: 25.3 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.292e-05/0.7964, allocations: 12.31 kB / 0.7528 GB, free: 25.3 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.238e-06/0.7965, allocations: 0 / 0.7528 GB, free: 25.3 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 3.774e-05/0.7965, allocations: 79.12 kB / 0.7529 GB, free: 25.23 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.61e-07/0.7965, allocations: 4 kB / 0.7529 GB, free: 25.23 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0002341/0.7967, allocations: 19.5 kB / 0.7529 GB, free: 25.22 MB / 0.5105 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,fac.u) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004786/0.7972, allocations: 0.6927 MB / 0.7536 GB, free: 24.55 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 8.699e-05/0.7973, allocations: 18.28 kB / 0.7536 GB, free: 24.55 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.7973, allocations: 0 / 0.7536 GB, free: 24.55 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 3.116e-05/0.7974, allocations: 22.78 kB / 0.7536 GB, free: 24.55 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001727/0.7976, allocations: 11 kB / 0.7536 GB, free: 24.54 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003266/0.7979, allocations: 97.58 kB / 0.7537 GB, free: 24.43 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002753/0.7982, allocations: 0.6829 MB / 0.7544 GB, free: 23.74 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 3.25e-05/0.7982, allocations: 3.844 kB / 0.7544 GB, free: 23.74 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.679e-05/0.7983, allocations: 14.27 kB / 0.7544 GB, free: 23.73 MB / 0.5105 GB Notification: Performance of SimCode: time 2.4e-07/0.7983, allocations: 4 kB / 0.7544 GB, free: 23.73 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01292/0.8112, allocations: 1.257 MB / 0.7556 GB, free: 23.56 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002124/0.8114, allocations: 135.7 kB / 0.7558 GB, free: 23.34 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.505/2.317, allocations: 0 / 0.7558 GB, free: 23.34 MB / 0.5105 GB (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/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Math_Examples_Factorial.fmu > IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe 2>&1)