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.005408/0.005408, allocations: 172 kB / 15.11 MB, free: 5.969 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7356/0.7356, allocations: 135.2 MB / 151.1 MB, free: 13.77 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.482/1.482, allocations: 223.2 MB / 406.8 MB, free: 3.137 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.0008949/0.0008945, allocations: 102.7 kB / 489.9 MB, free: 10.89 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004013/0.0004013, allocations: 12 kB / 0.5692 GB, free: 14.04 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3976/0.398, allocations: 82.3 MB / 0.6495 GB, free: 36.12 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1455/0.5435, allocations: 110.6 MB / 0.7576 GB, free: 5.363 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002251/0.5438, allocations: 79.94 kB / 0.7576 GB, free: 5.285 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.00126/0.5451, allocations: 0.5258 MB / 0.7581 GB, free: 4.762 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.114e-06/0.5451, allocations: 0 / 0.7581 GB, free: 4.762 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 5.651e-06/0.5451, allocations: 4 kB / 0.7581 GB, free: 4.758 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.0003102/0.5455, allocations: 319.4 kB / 0.7584 GB, free: 4.398 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 5.424e-05/0.5455, allocations: 8.031 kB / 0.7585 GB, free: 4.391 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.342e-05/0.5456, allocations: 34.5 kB / 0.7585 GB, free: 4.348 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.365e-05/0.5456, allocations: 4 kB / 0.7585 GB, free: 4.344 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.925e-05/0.5457, allocations: 163 kB / 0.7586 GB, free: 4.145 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.124e-05/0.5457, allocations: 4 kB / 0.7587 GB, free: 4.141 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.094e-06/0.5457, allocations: 0 / 0.7587 GB, free: 4.141 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.661e-05/0.5458, allocations: 37.69 kB / 0.7587 GB, free: 4.098 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.735e-06/0.5458, allocations: 0 / 0.7587 GB, free: 4.098 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.137e-06/0.5459, allocations: 0 / 0.7587 GB, free: 4.098 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.739e-06/0.5459, allocations: 0 / 0.7587 GB, free: 4.098 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.039e-05/0.5459, allocations: 4 kB / 0.7587 GB, free: 4.094 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001558/0.5461, allocations: 157.6 kB / 0.7588 GB, free: 3.891 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 4.828e-05/0.5461, allocations: 22.55 kB / 0.7589 GB, free: 3.859 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001514/0.5463, allocations: 93.16 kB / 0.759 GB, free: 3.75 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.84e-05/0.5463, allocations: 30.56 kB / 0.759 GB, free: 3.711 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=2): time 1.393e-06/0.5463, allocations: 0 / 0.759 GB, free: 3.711 MB / 0.5261 GB Notification: Performance of matching and sorting (n=2): time 0.0001537/0.5465, allocations: 41.69 kB / 0.759 GB, free: 3.664 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.27e-05/0.5465, allocations: 55.34 kB / 0.7591 GB, free: 3.598 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.812e-05/0.5466, allocations: 89 kB / 0.7592 GB, free: 3.504 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.654e-05/0.5466, allocations: 25.7 kB / 0.7592 GB, free: 3.473 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 3.516e-05/0.5467, allocations: 84.27 kB / 0.7593 GB, free: 3.387 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 2.227e-05/0.5467, allocations: 3.906 kB / 0.7593 GB, free: 3.383 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.525e-06/0.5467, allocations: 3.938 kB / 0.7593 GB, free: 3.379 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001083/0.5468, allocations: 310.8 kB / 0.7596 GB, free: 3.066 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.127e-05/0.5468, allocations: 7.984 kB / 0.7596 GB, free: 3.059 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.033e-06/0.5468, allocations: 0 / 0.7596 GB, free: 3.059 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.237e-05/0.5469, allocations: 8 kB / 0.7596 GB, free: 3.051 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.5469, allocations: 3.938 kB / 0.7596 GB, free: 3.047 MB / 0.5261 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.064e-05/0.547, allocations: 37.75 kB / 0.7596 GB, free: 3.004 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.547, allocations: 8 kB / 0.7596 GB, free: 2.996 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.998e-06/0.547, allocations: 0 / 0.7596 GB, free: 2.996 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.843e-05/0.547, allocations: 7.984 kB / 0.7596 GB, free: 2.988 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.497e-05/0.5471, allocations: 0 / 0.7596 GB, free: 2.988 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.587e-06/0.5471, allocations: 0 / 0.7596 GB, free: 2.988 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.666e-05/0.5471, allocations: 7.938 kB / 0.7596 GB, free: 2.98 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.839e-06/0.5471, allocations: 0 / 0.7596 GB, free: 2.98 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.786e-05/0.5472, allocations: 109.8 kB / 0.7598 GB, free: 2.863 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.917e-06/0.5472, allocations: 3.953 kB / 0.7598 GB, free: 2.859 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.62e-05/0.5473, allocations: 48.81 kB / 0.7598 GB, free: 2.805 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.5473, allocations: 0 / 0.7598 GB, free: 2.805 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.5473, allocations: 0 / 0.7598 GB, free: 2.805 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.461e-06/0.5473, allocations: 4 kB / 0.7598 GB, free: 2.801 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001076/0.5474, allocations: 145.7 kB / 0.7599 GB, free: 2.609 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.5475, allocations: 0 / 0.7599 GB, free: 2.609 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.468e-05/0.5475, allocations: 4 kB / 0.7599 GB, free: 2.605 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.288e-06/0.5475, allocations: 3.953 kB / 0.76 GB, free: 2.602 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.301e-06/0.5475, allocations: 0 / 0.76 GB, free: 2.602 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.5475, allocations: 0 / 0.76 GB, free: 2.602 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.5475, allocations: 4.031 kB / 0.76 GB, free: 2.598 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.197e-05/0.5476, allocations: 73.05 kB / 0.76 GB, free: 2.508 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 4.091e-05/0.5477, allocations: 81.02 kB / 0.7601 GB, free: 2.41 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.364e-05/0.5477, allocations: 3.953 kB / 0.7601 GB, free: 2.406 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.2e-05/0.5477, allocations: 3.938 kB / 0.7601 GB, free: 2.402 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.262e-05/0.5477, allocations: 4 kB / 0.7601 GB, free: 2.398 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.821e-06/0.5477, allocations: 7.984 kB / 0.7601 GB, free: 2.391 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 2.878e-05/0.5478, allocations: 79.31 kB / 0.7602 GB, free: 2.312 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.01e-07/0.5478, allocations: 0 / 0.7602 GB, free: 2.312 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0002126/0.548, allocations: 8 kB / 0.7602 GB, free: 2.305 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 () * 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 (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.0004392/0.5485, allocations: 0.6034 MB / 0.7608 GB, free: 1.672 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 6.395e-05/0.5485, allocations: 12.03 kB / 0.7608 GB, free: 1.66 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.5485, allocations: 4 kB / 0.7608 GB, free: 1.656 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 4.405e-05/0.5486, allocations: 7.984 kB / 0.7608 GB, free: 1.648 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.566e-05/0.5487, allocations: 3.953 kB / 0.7608 GB, free: 1.645 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003178/0.549, allocations: 112.5 kB / 0.7609 GB, free: 1.492 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002627/0.5493, allocations: 0.6809 MB / 0.7616 GB, free: 0.7852 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 1.74e-05/0.5493, allocations: 4 kB / 0.7616 GB, free: 0.7812 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.282e-05/0.5494, allocations: 19.5 kB / 0.7616 GB, free: 0.7617 MB / 0.5261 GB Notification: Performance of SimCode: time 5.31e-07/0.5494, allocations: 0 / 0.7616 GB, free: 0.7617 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01263/0.562, allocations: 0.8379 MB / 0.7624 GB, free: 32 kB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003308/0.5624, allocations: 165.2 kB / 0.7626 GB, free: 15.79 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.394/1.956, allocations: 0 / 0.7626 GB, free: 15.79 MB / 0.5417 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)