Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Math.Functions.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.Functions.Examples.Factorial,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Functions_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.0013/0.0013, allocations: 180.9 kB / 7.65 MB, free: 1.422 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7753/0.7753, allocations: 133.6 MB / 141.6 MB, free: 2.848 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.414/1.414, allocations: 221.5 MB / 395.4 MB, free: 10.78 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008782/0.0008784, allocations: 101.5 kB / 478.2 MB, free: 1.312 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.599e-05/2.602e-05, allocations: 8 kB / 0.5536 GB, free: 8.957 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4412/0.4412, allocations: 82.3 MB / 0.6339 GB, free: 40.78 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1897/0.6309, allocations: 109.9 MB / 0.7412 GB, free: 12.8 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003056/0.6313, allocations: 71.95 kB / 0.7413 GB, free: 12.73 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.001451/0.6328, allocations: 0.5297 MB / 0.7418 GB, free: 12.2 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.773e-06/0.6328, allocations: 3.938 kB / 0.7418 GB, free: 12.2 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 4.939e-06/0.6328, allocations: 4 kB / 0.7418 GB, free: 12.2 MB / 0.5261 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.0002734/0.6331, allocations: 306.6 kB / 0.7421 GB, free: 11.85 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.202e-05/0.6331, allocations: 12.03 kB / 0.7421 GB, free: 11.84 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.779e-05/0.6332, allocations: 0 / 0.7421 GB, free: 11.84 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001074/0.6333, allocations: 171 kB / 0.7423 GB, free: 11.63 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.315e-05/0.6333, allocations: 0 / 0.7423 GB, free: 11.63 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.02e-05/0.6333, allocations: 3.984 kB / 0.7423 GB, free: 11.63 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.84e-05/0.6334, allocations: 4 kB / 0.7423 GB, free: 11.62 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.882e-05/0.6335, allocations: 37.7 kB / 0.7423 GB, free: 11.58 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.574e-06/0.6335, allocations: 0 / 0.7423 GB, free: 11.58 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.256e-06/0.6335, allocations: 0 / 0.7423 GB, free: 11.58 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.6336, allocations: 0 / 0.7423 GB, free: 11.58 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001424/0.6337, allocations: 126.2 kB / 0.7425 GB, free: 11.42 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 4.854e-05/0.6338, allocations: 26.5 kB / 0.7425 GB, free: 11.39 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.36e-05/0.6338, allocations: 12.92 kB / 0.7425 GB, free: 11.37 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000172/0.634, allocations: 81.11 kB / 0.7426 GB, free: 11.27 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.968e-05/0.634, allocations: 38.55 kB / 0.7426 GB, free: 11.23 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=2): time 1.523e-06/0.634, allocations: 0 / 0.7426 GB, free: 11.23 MB / 0.5261 GB Notification: Performance of matching and sorting (n=2): time 0.0001598/0.6342, allocations: 33.7 kB / 0.7426 GB, free: 11.19 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.898e-05/0.6343, allocations: 51.41 kB / 0.7427 GB, free: 11.12 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.18e-05/0.6343, allocations: 85 kB / 0.7428 GB, free: 11.04 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.277e-05/0.6343, allocations: 25.7 kB / 0.7428 GB, free: 11 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 2.966e-05/0.6344, allocations: 84.14 kB / 0.7429 GB, free: 10.92 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 2.182e-05/0.6344, allocations: 3.906 kB / 0.7429 GB, free: 10.91 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.966e-06/0.6344, allocations: 11.91 kB / 0.7429 GB, free: 10.9 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001243/0.6346, allocations: 318.8 kB / 0.7432 GB, free: 10.58 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.279e-05/0.6346, allocations: 0 / 0.7432 GB, free: 10.58 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.945e-06/0.6346, allocations: 0 / 0.7432 GB, free: 10.58 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.896e-05/0.6347, allocations: 4 kB / 0.7432 GB, free: 10.58 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.6347, allocations: 0 / 0.7432 GB, free: 10.58 MB / 0.5261 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000111/0.6348, allocations: 37.7 kB / 0.7432 GB, free: 10.54 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.943e-05/0.6348, allocations: 7.953 kB / 0.7432 GB, free: 10.53 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.533e-06/0.6348, allocations: 4.094 kB / 0.7433 GB, free: 10.52 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.6349, allocations: 7.922 kB / 0.7433 GB, free: 10.52 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.191e-05/0.6349, allocations: 4 kB / 0.7433 GB, free: 10.51 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.813e-06/0.635, allocations: 3.984 kB / 0.7433 GB, free: 10.51 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.814e-05/0.635, allocations: 0 / 0.7433 GB, free: 10.51 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.514e-06/0.635, allocations: 4 kB / 0.7433 GB, free: 10.5 MB / 0.5261 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,n) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.018e-05/0.6351, allocations: 102.9 kB / 0.7434 GB, free: 10.4 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 9.531e-05/0.6352, allocations: 41.62 kB / 0.7434 GB, free: 10.35 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.092e-05/0.6352, allocations: 3.953 kB / 0.7434 GB, free: 10.35 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001194/0.6353, allocations: 45.48 kB / 0.7435 GB, free: 10.3 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.904e-06/0.6353, allocations: 0 / 0.7435 GB, free: 10.3 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.895e-06/0.6354, allocations: 7.984 kB / 0.7435 GB, free: 10.29 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.6354, allocations: 0 / 0.7435 GB, free: 10.29 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.322e-05/0.6355, allocations: 126.2 kB / 0.7436 GB, free: 10.13 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.6355, allocations: 0 / 0.7436 GB, free: 10.13 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.094e-05/0.6355, allocations: 0 / 0.7436 GB, free: 10.13 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.294e-06/0.6355, allocations: 7.953 kB / 0.7436 GB, free: 10.12 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.212e-06/0.6356, allocations: 0 / 0.7436 GB, free: 10.12 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.146e-06/0.6356, allocations: 3.938 kB / 0.7436 GB, free: 10.12 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.6356, allocations: 8.016 kB / 0.7436 GB, free: 10.11 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001097/0.6357, allocations: 61.05 kB / 0.7437 GB, free: 10.04 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 3.352e-05/0.6358, allocations: 77.11 kB / 0.7437 GB, free: 9.941 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.592e-05/0.6358, allocations: 7.938 kB / 0.7437 GB, free: 9.934 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.852e-05/0.6358, allocations: 4 kB / 0.7437 GB, free: 9.93 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.779e-05/0.6358, allocations: 0 / 0.7437 GB, free: 9.93 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.427e-06/0.6359, allocations: 0 / 0.7437 GB, free: 9.93 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 3.375e-05/0.6359, allocations: 79.31 kB / 0.7438 GB, free: 9.852 MB / 0.5261 GB Notification: Performance of sort global known variables: time 2.4e-07/0.6359, allocations: 0 / 0.7438 GB, free: 9.852 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0003239/0.6362, allocations: 15.94 kB / 0.7438 GB, free: 9.836 MB / 0.5261 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 () * 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 (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.0004755/0.6367, allocations: 0.6007 MB / 0.7444 GB, free: 9.203 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 7.026e-05/0.6368, allocations: 16.02 kB / 0.7444 GB, free: 9.188 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.6368, allocations: 0 / 0.7444 GB, free: 9.188 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 1.689e-05/0.6369, allocations: 4 kB / 0.7444 GB, free: 9.184 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001276/0.637, allocations: 8.828 kB / 0.7444 GB, free: 9.176 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003377/0.6373, allocations: 81.66 kB / 0.7445 GB, free: 9.059 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002342/0.6376, allocations: 0.6768 MB / 0.7452 GB, free: 8.355 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 1.712e-05/0.6376, allocations: 3.938 kB / 0.7452 GB, free: 8.352 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.326e-05/0.6377, allocations: 7.438 kB / 0.7452 GB, free: 8.344 MB / 0.5261 GB Notification: Performance of SimCode: time 3.6e-07/0.6377, allocations: 4.125 kB / 0.7452 GB, free: 8.34 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01872/0.6564, allocations: 0.5648 MB / 0.7458 GB, free: 7.781 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002321/0.6567, allocations: 134.1 kB / 0.7459 GB, free: 7.59 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.332/1.989, allocations: 0 / 0.7459 GB, free: 7.59 MB / 0.5261 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_Factorial.fmu > IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)