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.009405/0.009405, 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.8326/0.8326, 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.388/1.388, allocations: 223.2 MB / 406.8 MB, free: 3.227 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.0008797/0.0008794, allocations: 97.34 kB / 489.9 MB, free: 10.94 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003802/0.00038, allocations: 8 kB / 0.5692 GB, free: 14.1 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4206/0.421, allocations: 82.3 MB / 0.6495 GB, free: 36.16 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1473/0.5684, allocations: 111.6 MB / 0.7585 GB, free: 4.418 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002878/0.5687, allocations: 75.94 kB / 0.7586 GB, free: 4.344 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.002755/0.5715, allocations: 0.9428 MB / 0.7595 GB, free: 3.398 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.695e-06/0.5715, allocations: 3.938 kB / 0.7595 GB, free: 3.395 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 6.552e-06/0.5715, allocations: 0 / 0.7595 GB, free: 3.395 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.0004552/0.572, allocations: 355.2 kB / 0.7598 GB, free: 3 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.575e-05/0.572, allocations: 8.031 kB / 0.7598 GB, free: 2.992 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.753e-05/0.5721, allocations: 34.56 kB / 0.7599 GB, free: 2.949 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.936e-05/0.5721, allocations: 8 kB / 0.7599 GB, free: 2.941 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001396/0.5722, allocations: 163 kB / 0.76 GB, free: 2.742 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.329e-05/0.5723, allocations: 0 / 0.76 GB, free: 2.742 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.208e-05/0.5723, allocations: 4 kB / 0.76 GB, free: 2.738 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002065/0.5725, allocations: 65.66 kB / 0.7601 GB, free: 2.668 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.5725, allocations: 0 / 0.7601 GB, free: 2.668 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.04e-05/0.5725, allocations: 0 / 0.7601 GB, free: 2.668 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.639e-06/0.5726, allocations: 4 kB / 0.7601 GB, free: 2.664 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001916/0.5728, allocations: 51.89 kB / 0.7602 GB, free: 2.613 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004881/0.5732, allocations: 292.8 kB / 0.7604 GB, free: 2.277 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003071/0.5736, allocations: 54.55 kB / 0.7605 GB, free: 2.215 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001179/0.5737, allocations: 93.19 kB / 0.7606 GB, free: 2.105 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.85e-05/0.5737, allocations: 38.5 kB / 0.7606 GB, free: 2.059 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.5738, allocations: 0 / 0.7606 GB, free: 2.059 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3): time 0.0003914/0.5741, allocations: 101.8 kB / 0.7607 GB, free: 1.953 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.057e-05/0.5742, allocations: 59.39 kB / 0.7608 GB, free: 1.883 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.805e-05/0.5743, allocations: 96.98 kB / 0.7609 GB, free: 1.781 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.56e-05/0.5743, allocations: 25.7 kB / 0.7609 GB, free: 1.75 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 5.025e-05/0.5744, allocations: 84.14 kB / 0.761 GB, free: 1.664 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 1.602e-05/0.5744, allocations: 7.906 kB / 0.761 GB, free: 1.656 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.467e-06/0.5744, allocations: 0 / 0.761 GB, free: 1.656 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001254/0.5745, allocations: 318.8 kB / 0.7613 GB, free: 1.336 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.262e-05/0.5746, allocations: 27.98 kB / 0.7613 GB, free: 1.309 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.11e-05/0.5747, allocations: 27.97 kB / 0.7613 GB, free: 1.281 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.966e-05/0.5748, allocations: 23.92 kB / 0.7614 GB, free: 1.258 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.533e-06/0.5748, allocations: 0 / 0.7614 GB, free: 1.258 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002142/0.575, allocations: 89.56 kB / 0.7614 GB, free: 1.164 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.5751, allocations: 4 kB / 0.7614 GB, free: 1.16 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.168e-06/0.5751, allocations: 0 / 0.7614 GB, free: 1.16 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.056e-05/0.5751, allocations: 4 kB / 0.7615 GB, free: 1.156 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.528e-05/0.5752, allocations: 15.98 kB / 0.7615 GB, free: 1.141 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.56e-06/0.5752, allocations: 0 / 0.7615 GB, free: 1.141 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.349e-05/0.5753, allocations: 11.98 kB / 0.7615 GB, free: 1.129 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.931e-06/0.5753, allocations: 0 / 0.7615 GB, free: 1.129 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.769e-05/0.5754, allocations: 121.7 kB / 0.7616 GB, free: 1 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.278e-05/0.5754, allocations: 0 / 0.7616 GB, free: 1 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000277/0.5757, allocations: 97.08 kB / 0.7617 GB, free: 0.8945 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.974e-06/0.5757, allocations: 0 / 0.7617 GB, free: 0.8945 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.445e-06/0.5757, allocations: 7.984 kB / 0.7617 GB, free: 0.8867 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.496e-06/0.5757, allocations: 3.938 kB / 0.7617 GB, free: 0.8828 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001675/0.5759, allocations: 165.6 kB / 0.7619 GB, free: 0.6719 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.5759, allocations: 0 / 0.7619 GB, free: 0.6719 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.45e-05/0.576, allocations: 15.98 kB / 0.7619 GB, free: 0.6562 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/0.576, allocations: 0 / 0.7619 GB, free: 0.6562 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.033e-05/0.576, allocations: 7.984 kB / 0.7619 GB, free: 0.6484 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.212e-06/0.576, allocations: 0 / 0.7619 GB, free: 0.6484 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.576, allocations: 0 / 0.7619 GB, free: 0.6484 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002631/0.5763, allocations: 183.4 kB / 0.7621 GB, free: 464 kB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 4.521e-05/0.5764, allocations: 81.02 kB / 0.7621 GB, free: 364 kB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.459e-05/0.5764, allocations: 4 kB / 0.7621 GB, free: 360 kB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.902e-05/0.5765, allocations: 7.984 kB / 0.7621 GB, free: 352 kB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.927e-05/0.5765, allocations: 11.98 kB / 0.7622 GB, free: 340 kB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.258e-06/0.5765, allocations: 0 / 0.7622 GB, free: 340 kB / 0.5261 GB Notification: Performance of sorting global known variables: time 3.679e-05/0.5766, allocations: 79.7 kB / 0.7622 GB, free: 260 kB / 0.5261 GB Notification: Performance of sort global known variables: time 1.1e-07/0.5766, allocations: 4 kB / 0.7622 GB, free: 256 kB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0002195/0.5768, allocations: 19.94 kB / 0.7623 GB, free: 236 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.0006542/0.5775, allocations: 0.7206 MB / 0.763 GB, free: 15.48 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0002356/0.5777, allocations: 63.88 kB / 0.763 GB, free: 15.42 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.803e-06/0.5777, allocations: 0 / 0.763 GB, free: 15.42 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 0.0001009/0.5778, allocations: 31.98 kB / 0.763 GB, free: 15.39 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001896/0.578, allocations: 3.938 kB / 0.7631 GB, free: 15.38 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004379/0.5785, allocations: 158.3 kB / 0.7632 GB, free: 15.19 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002582/0.5788, allocations: 0.677 MB / 0.7639 GB, free: 14.48 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 3.375e-05/0.5788, allocations: 8 kB / 0.7639 GB, free: 14.48 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.578e-05/0.5788, allocations: 11.42 kB / 0.7639 GB, free: 14.46 MB / 0.5417 GB Notification: Performance of SimCode: time 3.1e-07/0.5789, allocations: 0 / 0.7639 GB, free: 14.46 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01141/0.5903, allocations: 1.249 MB / 0.7651 GB, free: 13.32 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001784/0.5905, allocations: 165.9 kB / 0.7653 GB, free: 13.07 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.52/2.11, allocations: 0 / 0.7653 GB, free: 13.07 MB / 0.5417 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)