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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/Modelica 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) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004588/0.004588, allocations: 102 kB / 15.73 MB, free: 6.035 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001182/0.001182, allocations: 197.4 kB / 16.68 MB, free: 5.953 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.272/1.272, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7607/0.7607, allocations: 135.1 MB / 425.7 MB, free: 4.113 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 68.5 kB / 0.5852 GB, free: 21.97 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1552/0.1565, allocations: 80.93 MB / 0.6642 GB, free: 6.23 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.00163/0.1582, allocations: 0.5642 MB / 0.6648 GB, free: 5.668 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0002521/0.1585, allocations: 58.36 kB / 0.6648 GB, free: 5.613 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.474e-05/0.1585, allocations: 0 / 0.6648 GB, free: 5.613 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 1.41e-05/0.1585, allocations: 4 kB / 0.6648 GB, free: 5.609 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.33e-06/0.1586, allocations: 0 / 0.6648 GB, free: 5.609 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001936/0.1588, allocations: 8 kB / 0.6648 GB, free: 5.602 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 4.068e-05/0.1588, allocations: 8 kB / 0.6648 GB, free: 5.594 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 4.403e-05/0.1588, allocations: 3.984 kB / 0.6648 GB, free: 5.59 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.494e-05/0.1589, allocations: 3.938 kB / 0.6648 GB, free: 5.586 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 1.77e-05/0.1589, allocations: 3.938 kB / 0.6648 GB, free: 5.582 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 8.306e-06/0.1589, allocations: 4 kB / 0.6648 GB, free: 5.578 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.42e-05/0.159, allocations: 8 kB / 0.6649 GB, free: 5.57 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 9.708e-06/0.159, allocations: 3.984 kB / 0.6649 GB, free: 5.566 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 1.62e-05/0.159, allocations: 4 kB / 0.6649 GB, free: 5.562 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 8.616e-05/0.1591, allocations: 7.984 kB / 0.6649 GB, free: 5.555 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.1591, allocations: 0 / 0.6649 GB, free: 5.555 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.212e-06/0.1591, allocations: 0 / 0.6649 GB, free: 5.555 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 6.252e-06/0.1591, allocations: 0 / 0.6649 GB, free: 5.555 MB / 0.4981 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.0002693/0.1594, allocations: 323.5 kB / 0.6652 GB, free: 5.188 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.471e-05/0.1594, allocations: 13.11 kB / 0.6652 GB, free: 5.176 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.524e-05/0.1595, allocations: 30.75 kB / 0.6652 GB, free: 5.137 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.961e-05/0.1595, allocations: 0.9375 kB / 0.6652 GB, free: 5.137 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.565e-05/0.1596, allocations: 160.4 kB / 0.6654 GB, free: 4.941 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.217e-06/0.1596, allocations: 8.312 kB / 0.6654 GB, free: 4.934 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.413e-06/0.1596, allocations: 4.375 kB / 0.6654 GB, free: 4.93 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.191e-05/0.1597, allocations: 34.25 kB / 0.6654 GB, free: 4.891 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.995e-06/0.1597, allocations: 3.938 kB / 0.6654 GB, free: 4.887 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.552e-06/0.1597, allocations: 4 kB / 0.6654 GB, free: 4.883 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.878e-06/0.1597, allocations: 0 / 0.6654 GB, free: 4.883 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.055e-05/0.1598, allocations: 3.938 kB / 0.6654 GB, free: 4.879 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001411/0.1599, allocations: 153.7 kB / 0.6656 GB, free: 4.68 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.602e-05/0.16, allocations: 22.95 kB / 0.6656 GB, free: 4.648 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.644e-05/0.16, allocations: 8.922 kB / 0.6656 GB, free: 4.637 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001562/0.1602, allocations: 81.11 kB / 0.6657 GB, free: 4.539 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.469e-05/0.1602, allocations: 38.55 kB / 0.6657 GB, free: 4.492 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=2): time 9.32e-07/0.1602, allocations: 0 / 0.6657 GB, free: 4.492 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2): time 0.0001398/0.1604, allocations: 41.58 kB / 0.6658 GB, free: 4.445 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.655e-05/0.1604, allocations: 51.53 kB / 0.6658 GB, free: 4.383 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.933e-05/0.1604, allocations: 93.86 kB / 0.6659 GB, free: 4.281 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.064e-05/0.1605, allocations: 29.7 kB / 0.6659 GB, free: 4.246 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.748e-05/0.1605, allocations: 84.14 kB / 0.666 GB, free: 4.16 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.171e-05/0.1605, allocations: 0 / 0.666 GB, free: 4.16 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.121e-05/0.1606, allocations: 13.7 kB / 0.666 GB, free: 4.141 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001128/0.1607, allocations: 318.8 kB / 0.6663 GB, free: 3.82 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.263e-05/0.1607, allocations: 4 kB / 0.6663 GB, free: 3.816 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.28e-05/0.1607, allocations: 8 kB / 0.6663 GB, free: 3.809 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.325e-05/0.1608, allocations: 12.92 kB / 0.6663 GB, free: 3.793 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.1608, allocations: 0 / 0.6663 GB, free: 3.793 MB / 0.4981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.225e-05/0.1608, allocations: 49.53 kB / 0.6664 GB, free: 3.738 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.263e-05/0.1609, allocations: 4 kB / 0.6664 GB, free: 3.734 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.76e-06/0.1609, allocations: 3.938 kB / 0.6664 GB, free: 3.73 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.63e-05/0.1609, allocations: 3.984 kB / 0.6664 GB, free: 3.727 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.806e-05/0.161, allocations: 7.938 kB / 0.6664 GB, free: 3.719 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.601e-06/0.161, allocations: 0 / 0.6664 GB, free: 3.719 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.567e-05/0.161, allocations: 2.812 kB / 0.6664 GB, free: 3.719 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.349e-06/0.161, allocations: 8.031 kB / 0.6664 GB, free: 3.711 MB / 0.4981 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 (n,fac) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.87e-05/0.1611, allocations: 109.8 kB / 0.6665 GB, free: 3.594 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.374e-06/0.1611, allocations: 0 / 0.6665 GB, free: 3.594 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000107/0.1612, allocations: 48.7 kB / 0.6666 GB, free: 3.535 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.1612, allocations: 0 / 0.6666 GB, free: 3.535 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.682e-06/0.1612, allocations: 3.984 kB / 0.6666 GB, free: 3.531 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.404e-06/0.1612, allocations: 0 / 0.6666 GB, free: 3.531 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.453e-05/0.1613, allocations: 149.7 kB / 0.6667 GB, free: 3.336 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.1613, allocations: 4.031 kB / 0.6667 GB, free: 3.332 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.581e-05/0.1614, allocations: 4 kB / 0.6667 GB, free: 3.328 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.304e-06/0.1614, allocations: 3.938 kB / 0.6667 GB, free: 3.324 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.719e-06/0.1614, allocations: 7.922 kB / 0.6667 GB, free: 3.316 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.1614, allocations: 0 / 0.6667 GB, free: 3.316 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.12e-07/0.1614, allocations: 0 / 0.6667 GB, free: 3.316 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.55e-05/0.1615, allocations: 61.14 kB / 0.6668 GB, free: 3.238 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.509e-05/0.1615, allocations: 85.03 kB / 0.6669 GB, free: 3.137 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.162e-05/0.1616, allocations: 7.969 kB / 0.6669 GB, free: 3.129 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.147e-05/0.1616, allocations: 0 / 0.6669 GB, free: 3.129 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.414e-05/0.1616, allocations: 0 / 0.6669 GB, free: 3.129 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.228e-06/0.1616, allocations: 4 kB / 0.6669 GB, free: 3.125 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.427e-05/0.1616, allocations: 75.28 kB / 0.667 GB, free: 3.051 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.01e-07/0.1616, allocations: 0 / 0.667 GB, free: 3.051 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0001949/0.1618, allocations: 4 kB / 0.667 GB, free: 3.047 MB / 0.4981 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004181/0.1623, allocations: 0.6098 MB / 0.6676 GB, free: 2.406 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 8.436e-05/0.1624, allocations: 15.92 kB / 0.6676 GB, free: 2.391 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1624, allocations: 0 / 0.6676 GB, free: 2.391 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 1.785e-05/0.1624, allocations: 4 kB / 0.6676 GB, free: 2.387 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001302/0.1625, allocations: 4 kB / 0.6676 GB, free: 2.383 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000358/0.1629, allocations: 122.7 kB / 0.6677 GB, free: 2.223 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002868/0.1632, allocations: 0.669 MB / 0.6684 GB, free: 1.527 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 1.964e-05/0.1632, allocations: 8 kB / 0.6684 GB, free: 1.52 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.263e-05/0.1632, allocations: 11.44 kB / 0.6684 GB, free: 1.508 MB / 0.4981 GB Notification: Performance of SimCode: time 2.1e-07/0.1633, allocations: 0 / 0.6684 GB, free: 1.508 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01729/0.1806, allocations: 1.053 MB / 0.6694 GB, free: 0.5273 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.3/7.48, allocations: 6.031 kB / 0.6694 GB, free: 0.5273 MB / 0.4981 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/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)