Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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_dev_IDEAS_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.Factorial,fileNamePrefix="IDEAS_dev_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.006597/0.006597, allocations: 171.2 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.7527/0.7527, allocations: 135.2 MB / 151 MB, free: 13.82 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.555/1.555, allocations: 223.2 MB / 406.8 MB, free: 3.215 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.000977/0.0009772, allocations: 103.2 kB / 489.9 MB, free: 10.91 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003569/0.0003571, allocations: 12 kB / 0.5691 GB, free: 14.08 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.412/0.4123, allocations: 82.31 MB / 0.6495 GB, free: 36.14 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1457/0.5581, allocations: 111.6 MB / 0.7585 GB, free: 4.414 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000249/0.5584, allocations: 79.95 kB / 0.7586 GB, free: 4.336 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.002796/0.5613, allocations: 0.9389 MB / 0.7595 GB, free: 3.395 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.843e-06/0.5613, allocations: 7.938 kB / 0.7595 GB, free: 3.387 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 5.22e-06/0.5613, allocations: 0 / 0.7595 GB, free: 3.387 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004004/0.5617, allocations: 355.2 kB / 0.7598 GB, free: 2.992 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.183e-05/0.5618, allocations: 8.031 kB / 0.7598 GB, free: 2.984 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.501e-05/0.5618, allocations: 34.56 kB / 0.7599 GB, free: 2.941 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.116e-05/0.5618, allocations: 0 / 0.7599 GB, free: 2.941 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000114/0.5619, allocations: 167 kB / 0.76 GB, free: 2.738 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.708e-05/0.562, allocations: 8 kB / 0.76 GB, free: 2.73 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.2e-05/0.562, allocations: 0 / 0.76 GB, free: 2.73 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001881/0.5622, allocations: 69.66 kB / 0.7601 GB, free: 2.656 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.181e-06/0.5622, allocations: 0 / 0.7601 GB, free: 2.656 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.868e-06/0.5622, allocations: 3.938 kB / 0.7601 GB, free: 2.652 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.729e-06/0.5622, allocations: 0 / 0.7601 GB, free: 2.652 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001965/0.5624, allocations: 59.89 kB / 0.7602 GB, free: 2.594 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004611/0.5629, allocations: 280.8 kB / 0.7604 GB, free: 2.27 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003329/0.5632, allocations: 66.53 kB / 0.7605 GB, free: 2.195 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001099/0.5634, allocations: 85.19 kB / 0.7606 GB, free: 2.094 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.096e-05/0.5634, allocations: 38.5 kB / 0.7606 GB, free: 2.047 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.5634, allocations: 0 / 0.7606 GB, free: 2.047 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3): time 0.0003788/0.5638, allocations: 105.6 kB / 0.7607 GB, free: 1.938 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.275e-05/0.5638, allocations: 55.41 kB / 0.7608 GB, free: 1.871 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.006e-05/0.5639, allocations: 96.98 kB / 0.7609 GB, free: 1.77 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.427e-05/0.5639, allocations: 25.7 kB / 0.7609 GB, free: 1.738 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 3.854e-05/0.564, allocations: 84.14 kB / 0.761 GB, free: 1.652 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 1.452e-05/0.564, allocations: 3.906 kB / 0.761 GB, free: 1.648 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.951e-06/0.564, allocations: 4 kB / 0.761 GB, free: 1.645 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001227/0.5641, allocations: 322.8 kB / 0.7613 GB, free: 1.32 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.236e-05/0.5642, allocations: 19.98 kB / 0.7613 GB, free: 1.301 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.161e-05/0.5643, allocations: 27.92 kB / 0.7613 GB, free: 1.273 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.88e-05/0.5644, allocations: 27.97 kB / 0.7614 GB, free: 1.246 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.5644, allocations: 0 / 0.7614 GB, free: 1.246 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002177/0.5647, allocations: 89.56 kB / 0.7614 GB, free: 1.152 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.358e-05/0.5647, allocations: 9.094 kB / 0.7615 GB, free: 1.145 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.107e-06/0.5647, allocations: 0 / 0.7615 GB, free: 1.145 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.073e-05/0.5647, allocations: 0.5156 kB / 0.7615 GB, free: 1.145 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.624e-05/0.5648, allocations: 11.98 kB / 0.7615 GB, free: 1.133 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.568e-06/0.5648, allocations: 4 kB / 0.7615 GB, free: 1.129 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.314e-05/0.5649, allocations: 11.98 kB / 0.7615 GB, free: 1.117 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.537e-05/0.5649, allocations: 3.984 kB / 0.7615 GB, free: 1.113 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.y,fac.u) * Number of discrete states: 0 () * Number of clocked 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.439e-05/0.565, allocations: 113.8 kB / 0.7616 GB, free: 0.9922 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.276e-05/0.565, allocations: 0 / 0.7616 GB, free: 0.9922 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002664/0.5653, allocations: 105.1 kB / 0.7617 GB, free: 0.8789 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.5653, allocations: 0 / 0.7617 GB, free: 0.8789 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.362e-05/0.5653, allocations: 0 / 0.7617 GB, free: 0.8789 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.895e-06/0.5653, allocations: 3.938 kB / 0.7617 GB, free: 0.875 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000149/0.5655, allocations: 165.6 kB / 0.7619 GB, free: 0.6641 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.81e-07/0.5655, allocations: 0 / 0.7619 GB, free: 0.6641 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.18e-05/0.5656, allocations: 15.98 kB / 0.7619 GB, free: 0.6484 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.5656, allocations: 0 / 0.7619 GB, free: 0.6484 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.404e-06/0.5656, allocations: 4 kB / 0.7619 GB, free: 0.6445 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.5656, allocations: 0 / 0.7619 GB, free: 0.6445 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.5656, allocations: 0 / 0.7619 GB, free: 0.6445 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002687/0.5659, allocations: 191.4 kB / 0.7621 GB, free: 452 kB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 4.662e-05/0.5659, allocations: 88.95 kB / 0.7621 GB, free: 344 kB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.242e-05/0.566, allocations: 0 / 0.7621 GB, free: 344 kB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.831e-05/0.566, allocations: 7.984 kB / 0.7621 GB, free: 336 kB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.665e-05/0.5661, allocations: 11.98 kB / 0.7622 GB, free: 324 kB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.588e-06/0.5661, allocations: 0 / 0.7622 GB, free: 324 kB / 0.5261 GB Notification: Performance of sorting global known variables: time 3.407e-05/0.5661, allocations: 83.28 kB / 0.7622 GB, free: 240 kB / 0.5261 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5662, allocations: 0 / 0.7622 GB, free: 240 kB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0002205/0.5664, allocations: 19.94 kB / 0.7623 GB, free: 220 kB / 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.y,fac.u) * Number of discrete states: 0 () * Number of clocked 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.000601/0.567, allocations: 0.7202 MB / 0.763 GB, free: 15.47 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0002658/0.5673, allocations: 59.88 kB / 0.763 GB, free: 15.41 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.5673, allocations: 0 / 0.763 GB, free: 15.41 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0001012/0.5674, allocations: 31.98 kB / 0.763 GB, free: 15.38 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001744/0.5676, allocations: 7.938 kB / 0.7631 GB, free: 15.37 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004071/0.568, allocations: 154.3 kB / 0.7632 GB, free: 15.18 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002587/0.5683, allocations: 0.6809 MB / 0.7639 GB, free: 14.47 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 3.388e-05/0.5683, allocations: 4 kB / 0.7639 GB, free: 14.47 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.117e-05/0.5683, allocations: 19.42 kB / 0.7639 GB, free: 14.45 MB / 0.5417 GB Notification: Performance of SimCode: time 2.996e-06/0.5683, allocations: 3.938 kB / 0.7639 GB, free: 14.45 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01177/0.5801, allocations: 1.252 MB / 0.7651 GB, free: 13.3 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000241/0.5804, allocations: 161.1 kB / 0.7653 GB, free: 13.06 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.571/2.151, allocations: 0 / 0.7653 GB, free: 13.06 MB / 0.5417 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Math_Examples_Factorial.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe 2>&1)