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/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/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001022/0.001022, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001076/0.001076, allocations: 196.4 kB / 16.14 MB, free: 6.707 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.312/1.312, allocations: 222.9 MB / 239.8 MB, free: 4.633 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7444/0.7444, allocations: 132.2 MB / 422.1 MB, free: 2.035 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001166/0.001166, allocations: 63.91 kB / 0.5012 GB, free: 9.109 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1497/0.1509, allocations: 80.2 MB / 0.5795 GB, free: 9.129 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001686/0.1526, allocations: 0.6388 MB / 0.5801 GB, free: 8.484 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002397/0.1529, allocations: 47.8 kB / 0.5802 GB, free: 8.438 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.588e-06/0.1529, allocations: 0 / 0.5802 GB, free: 8.438 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.281e-05/0.1529, allocations: 0 / 0.5802 GB, free: 8.438 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.819e-06/0.1529, allocations: 4 kB / 0.5802 GB, free: 8.434 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001643/0.1531, allocations: 8 kB / 0.5802 GB, free: 8.426 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.509e-05/0.1531, allocations: 0 / 0.5802 GB, free: 8.426 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.137e-05/0.1532, allocations: 4 kB / 0.5802 GB, free: 8.422 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.365e-05/0.1532, allocations: 7.875 kB / 0.5802 GB, free: 8.414 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 2.233e-05/0.1532, allocations: 7.984 kB / 0.5802 GB, free: 8.406 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 9.037e-06/0.1533, allocations: 0 / 0.5802 GB, free: 8.406 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.4e-05/0.1533, allocations: 8 kB / 0.5802 GB, free: 8.398 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.142e-05/0.1533, allocations: 7.984 kB / 0.5802 GB, free: 8.391 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.967e-05/0.1534, allocations: 0 / 0.5802 GB, free: 8.391 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 7.226e-05/0.1534, allocations: 11.98 kB / 0.5802 GB, free: 8.379 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.006e-06/0.1535, allocations: 4 kB / 0.5802 GB, free: 8.375 MB / 494.1 MB Notification: Performance of FrontEnd: time 5.01e-07/0.1535, allocations: 0 / 0.5802 GB, free: 8.375 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.35e-06/0.1535, allocations: 0 / 0.5802 GB, free: 8.375 MB / 494.1 MB 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.1537, allocations: 312.8 kB / 0.5805 GB, free: 8.02 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.819e-05/0.1538, allocations: 8.031 kB / 0.5806 GB, free: 8.012 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.306e-05/0.1538, allocations: 42.73 kB / 0.5806 GB, free: 7.961 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.002e-05/0.1539, allocations: 0.9375 kB / 0.5806 GB, free: 7.961 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.26e-05/0.1539, allocations: 164.3 kB / 0.5808 GB, free: 7.762 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.802e-06/0.1539, allocations: 384 / 0.5808 GB, free: 7.762 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.766e-06/0.154, allocations: 384 / 0.5808 GB, free: 7.762 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.437e-05/0.1541, allocations: 34.27 kB / 0.5808 GB, free: 7.723 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.894e-06/0.1541, allocations: 3.938 kB / 0.5808 GB, free: 7.719 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.012e-05/0.1541, allocations: 7.969 kB / 0.5808 GB, free: 7.711 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.428e-06/0.1541, allocations: 0 / 0.5808 GB, free: 7.711 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.522e-05/0.1541, allocations: 8 kB / 0.5808 GB, free: 7.703 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001261/0.1543, allocations: 149.7 kB / 0.5809 GB, free: 7.508 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.396e-05/0.1543, allocations: 30.53 kB / 0.581 GB, free: 7.469 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.915e-05/0.1543, allocations: 12.92 kB / 0.581 GB, free: 7.453 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001416/0.1545, allocations: 81.11 kB / 0.5811 GB, free: 7.355 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.261e-05/0.1545, allocations: 30.56 kB / 0.5811 GB, free: 7.316 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.112e-06/0.1545, allocations: 4 kB / 0.5811 GB, free: 7.312 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001325/0.1547, allocations: 49.53 kB / 0.5811 GB, free: 7.258 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.577e-05/0.1547, allocations: 51.41 kB / 0.5812 GB, free: 7.195 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.116e-05/0.1547, allocations: 93.8 kB / 0.5813 GB, free: 7.094 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.145e-05/0.1548, allocations: 29.83 kB / 0.5813 GB, free: 7.059 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.965e-05/0.1548, allocations: 80.14 kB / 0.5814 GB, free: 6.977 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.776e-05/0.1548, allocations: 0 / 0.5814 GB, free: 6.977 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.82e-05/0.1549, allocations: 17.72 kB / 0.5814 GB, free: 6.953 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.209e-05/0.155, allocations: 314.8 kB / 0.5817 GB, free: 6.637 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.18e-05/0.155, allocations: 4 kB / 0.5817 GB, free: 6.633 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.372e-06/0.155, allocations: 0 / 0.5817 GB, free: 6.633 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.452e-05/0.155, allocations: 16.92 kB / 0.5817 GB, free: 6.613 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.155, allocations: 4 kB / 0.5817 GB, free: 6.609 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.408e-05/0.1551, allocations: 37.69 kB / 0.5818 GB, free: 6.566 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.167e-05/0.1551, allocations: 4 kB / 0.5818 GB, free: 6.562 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.1551, allocations: 7.875 kB / 0.5818 GB, free: 6.555 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.158e-05/0.1551, allocations: 0 / 0.5818 GB, free: 6.555 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.163e-05/0.1552, allocations: 7.938 kB / 0.5818 GB, free: 6.547 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.703e-06/0.1552, allocations: 0 / 0.5818 GB, free: 6.547 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.393e-05/0.1552, allocations: 8.219 kB / 0.5818 GB, free: 6.539 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.988e-06/0.1552, allocations: 0 / 0.5818 GB, free: 6.539 MB / 494.1 MB 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.972e-05/0.1553, allocations: 114.5 kB / 0.5819 GB, free: 6.418 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.683e-06/0.1553, allocations: 0 / 0.5819 GB, free: 6.418 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.614e-05/0.1554, allocations: 52.69 kB / 0.582 GB, free: 6.355 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-06/0.1554, allocations: 0 / 0.582 GB, free: 6.355 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.1554, allocations: 0 / 0.582 GB, free: 6.355 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.884e-06/0.1554, allocations: 0 / 0.582 GB, free: 6.355 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.758e-05/0.1555, allocations: 153.7 kB / 0.5821 GB, free: 6.156 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.1555, allocations: 0 / 0.5821 GB, free: 6.156 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.169e-05/0.1556, allocations: 0 / 0.5821 GB, free: 6.156 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.1556, allocations: 11.97 kB / 0.5821 GB, free: 6.145 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.234e-06/0.1556, allocations: 3.938 kB / 0.5821 GB, free: 6.141 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.41e-07/0.1556, allocations: 0 / 0.5821 GB, free: 6.141 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.1556, allocations: 0 / 0.5821 GB, free: 6.141 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.992e-05/0.1557, allocations: 65.03 kB / 0.5822 GB, free: 6.059 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.438e-05/0.1557, allocations: 77.11 kB / 0.5822 GB, free: 5.965 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.421e-05/0.1557, allocations: 11.94 kB / 0.5823 GB, free: 5.953 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.146e-05/0.1557, allocations: 4 kB / 0.5823 GB, free: 5.949 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.842e-05/0.1558, allocations: 8.016 kB / 0.5823 GB, free: 5.941 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.194e-06/0.1558, allocations: 0 / 0.5823 GB, free: 5.941 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.163e-05/0.1558, allocations: 75.28 kB / 0.5823 GB, free: 5.867 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1558, allocations: 0 / 0.5823 GB, free: 5.867 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001851/0.156, allocations: 4 kB / 0.5823 GB, free: 5.863 MB / 494.1 MB 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.0003637/0.1564, allocations: 0.6085 MB / 0.5829 GB, free: 5.227 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 6.308e-05/0.1564, allocations: 8 kB / 0.5829 GB, free: 5.219 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.553e-06/0.1564, allocations: 0 / 0.5829 GB, free: 5.219 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.567e-05/0.1565, allocations: 11.98 kB / 0.583 GB, free: 5.207 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001262/0.1566, allocations: 1.562 kB / 0.583 GB, free: 5.207 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002683/0.1569, allocations: 118.1 kB / 0.5831 GB, free: 5.055 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002119/0.1571, allocations: 0.6811 MB / 0.5837 GB, free: 4.348 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.279e-05/0.1571, allocations: 0 / 0.5837 GB, free: 4.348 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.634e-05/0.1571, allocations: 7.438 kB / 0.5837 GB, free: 4.344 MB / 494.1 MB Notification: Performance of SimCode: time 3.51e-07/0.1571, allocations: 4 kB / 0.5838 GB, free: 4.34 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.009365/0.1665, allocations: 0.9182 MB / 0.5846 GB, free: 3.523 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001641/0.1667, allocations: 182.6 kB / 0.5848 GB, free: 3.273 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.57/1.737, allocations: 64 / 0.5848 GB, free: 3.273 MB / 494.1 MB (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/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)