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/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_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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001006/0.001006, allocations: 172.5 kB / 7.647 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.7934/0.7934, allocations: 133.6 MB / 141.6 MB, free: 2.883 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.478/1.478, allocations: 221.5 MB / 395.4 MB, free: 10.86 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.0008695/0.0008695, allocations: 102.2 kB / 478.2 MB, free: 1.344 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 2.361e-05/2.365e-05, allocations: 8 kB / 0.5536 GB, free: 8.98 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4741/0.4742, allocations: 82.3 MB / 0.6339 GB, free: 40.81 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1462/0.6204, allocations: 109.9 MB / 0.7412 GB, free: 12.82 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002486/0.6207, allocations: 83.88 kB / 0.7413 GB, free: 12.74 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.001175/0.6219, allocations: 0.5298 MB / 0.7418 GB, free: 12.21 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.412e-06/0.6219, allocations: 0 / 0.7418 GB, free: 12.21 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 5.17e-06/0.6219, allocations: 0 / 0.7418 GB, free: 12.21 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.000261/0.6222, allocations: 316.2 kB / 0.7421 GB, free: 11.86 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.312e-05/0.6222, allocations: 8.031 kB / 0.7421 GB, free: 11.85 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.995e-05/0.6223, allocations: 0 / 0.7421 GB, free: 11.85 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.37e-05/0.6224, allocations: 167 kB / 0.7423 GB, free: 11.65 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.296e-05/0.6224, allocations: 4 kB / 0.7423 GB, free: 11.64 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.019e-05/0.6224, allocations: 0 / 0.7423 GB, free: 11.64 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 6.985e-05/0.6225, allocations: 8 kB / 0.7423 GB, free: 11.64 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.592e-05/0.6225, allocations: 29.69 kB / 0.7423 GB, free: 11.6 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.454e-06/0.6226, allocations: 0 / 0.7423 GB, free: 11.6 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.695e-06/0.6226, allocations: 0 / 0.7423 GB, free: 11.6 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.661e-06/0.6226, allocations: 4 kB / 0.7423 GB, free: 11.6 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001278/0.6227, allocations: 126.2 kB / 0.7425 GB, free: 11.44 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 4.681e-05/0.6228, allocations: 26.5 kB / 0.7425 GB, free: 11.4 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.911e-05/0.6228, allocations: 16.92 kB / 0.7425 GB, free: 11.38 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001353/0.6229, allocations: 81.09 kB / 0.7426 GB, free: 11.29 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.375e-05/0.623, allocations: 34.56 kB / 0.7426 GB, free: 11.24 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=2): time 8.42e-07/0.623, allocations: 0 / 0.7426 GB, free: 11.24 MB / 0.5261 GB Notification: Performance of matching and sorting (n=2): time 0.0001407/0.6231, allocations: 29.7 kB / 0.7426 GB, free: 11.21 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.917e-05/0.6232, allocations: 51.41 kB / 0.7427 GB, free: 11.14 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.736e-05/0.6232, allocations: 92.98 kB / 0.7428 GB, free: 11.05 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.289e-05/0.6232, allocations: 25.7 kB / 0.7428 GB, free: 11.02 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 3.21e-05/0.6233, allocations: 88.17 kB / 0.7429 GB, free: 10.93 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 1.947e-05/0.6233, allocations: 3.906 kB / 0.7429 GB, free: 10.92 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.344e-06/0.6233, allocations: 0 / 0.7429 GB, free: 10.92 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 9.876e-05/0.6234, allocations: 310.8 kB / 0.7432 GB, free: 10.61 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.208e-05/0.6234, allocations: 7.938 kB / 0.7432 GB, free: 10.6 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.55e-06/0.6234, allocations: 0 / 0.7432 GB, free: 10.6 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.117e-05/0.6235, allocations: 4 kB / 0.7432 GB, free: 10.6 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.303e-06/0.6235, allocations: 0 / 0.7432 GB, free: 10.6 MB / 0.5261 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.521e-05/0.6235, allocations: 45.75 kB / 0.7432 GB, free: 10.55 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.458e-05/0.6236, allocations: 7.953 kB / 0.7433 GB, free: 10.54 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.758e-06/0.6236, allocations: 3.938 kB / 0.7433 GB, free: 10.54 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.377e-05/0.6236, allocations: 4 kB / 0.7433 GB, free: 10.53 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.342e-05/0.6236, allocations: 4 kB / 0.7433 GB, free: 10.53 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.357e-06/0.6237, allocations: 0 / 0.7433 GB, free: 10.53 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.247e-05/0.6237, allocations: 0 / 0.7433 GB, free: 10.53 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.488e-06/0.6237, allocations: 0 / 0.7433 GB, free: 10.53 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 6.776e-05/0.6238, allocations: 105 kB / 0.7434 GB, free: 10.42 MB / 0.5261 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 6.155e-05/0.6238, allocations: 49.59 kB / 0.7434 GB, free: 10.36 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.322e-06/0.6238, allocations: 3.953 kB / 0.7434 GB, free: 10.36 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.894e-05/0.6239, allocations: 41.44 kB / 0.7435 GB, free: 10.32 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.6239, allocations: 4 kB / 0.7435 GB, free: 10.31 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.624, allocations: 0 / 0.7435 GB, free: 10.31 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-06/0.624, allocations: 0 / 0.7435 GB, free: 10.31 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.873e-05/0.624, allocations: 126.2 kB / 0.7436 GB, free: 10.15 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.6241, allocations: 0 / 0.7436 GB, free: 10.15 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.445e-05/0.6241, allocations: 7.984 kB / 0.7436 GB, free: 10.14 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.056e-06/0.6241, allocations: 8.016 kB / 0.7436 GB, free: 10.14 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.38e-06/0.6241, allocations: 0 / 0.7436 GB, free: 10.14 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.81e-07/0.6241, allocations: 0 / 0.7436 GB, free: 10.14 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.6241, allocations: 7.984 kB / 0.7436 GB, free: 10.13 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.411e-05/0.6242, allocations: 68.97 kB / 0.7437 GB, free: 10.04 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 3.87e-05/0.6243, allocations: 77.11 kB / 0.7437 GB, free: 9.949 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.438e-05/0.6243, allocations: 3.953 kB / 0.7437 GB, free: 9.945 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.044e-05/0.6243, allocations: 0 / 0.7437 GB, free: 9.945 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.736e-05/0.6243, allocations: 8.031 kB / 0.7438 GB, free: 9.938 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.104e-06/0.6243, allocations: 0 / 0.7438 GB, free: 9.938 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 2.51e-05/0.6244, allocations: 75.28 kB / 0.7438 GB, free: 9.863 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6244, allocations: 0 / 0.7438 GB, free: 9.863 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0001903/0.6246, allocations: 11.94 kB / 0.7438 GB, free: 9.852 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.0004032/0.625, allocations: 0.6125 MB / 0.7444 GB, free: 9.207 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 6.027e-05/0.625, allocations: 4 kB / 0.7444 GB, free: 9.203 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.6251, allocations: 0 / 0.7444 GB, free: 9.203 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 1.069e-05/0.6251, allocations: 4 kB / 0.7444 GB, free: 9.199 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.833e-05/0.6252, allocations: 9.828 kB / 0.7445 GB, free: 9.191 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002633/0.6254, allocations: 85.64 kB / 0.7445 GB, free: 9.07 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002325/0.6257, allocations: 0.669 MB / 0.7452 GB, free: 8.375 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 1.553e-05/0.6257, allocations: 12.11 kB / 0.7452 GB, free: 8.363 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.751e-05/0.6257, allocations: 7.438 kB / 0.7452 GB, free: 8.355 MB / 0.5261 GB Notification: Performance of SimCode: time 1.683e-06/0.6257, allocations: 0 / 0.7452 GB, free: 8.355 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01879/0.6445, allocations: 0.5714 MB / 0.7458 GB, free: 7.789 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002197/0.6448, allocations: 131.7 kB / 0.7459 GB, free: 7.594 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.333/1.978, allocations: 0 / 0.7459 GB, free: 7.594 MB / 0.5261 GB (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/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Math_Functions_Examples_Factorial.fmu > IDEAS_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)