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/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.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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.004723/0.004723, allocations: 96.7 kB / 15.73 MB, free: 6.055 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.001188/0.001188, allocations: 194.9 kB / 16.67 MB, free: 5.977 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.32/1.32, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7657/0.7657, allocations: 132.2 MB / 422.7 MB, free: 1.684 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001779/0.001779, allocations: 59.91 kB / 0.5809 GB, free: 8.035 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.329/0.3308, allocations: 80.2 MB / 0.6592 GB, free: 9.879 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.00198/0.3328, allocations: 1.508 MB / 0.6607 GB, free: 8.824 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0002798/0.3331, allocations: 124 kB / 0.6608 GB, free: 8.738 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.073e-05/0.3332, allocations: 4 kB / 0.6608 GB, free: 8.734 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.572e-05/0.3332, allocations: 4.641 kB / 0.6608 GB, free: 8.73 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.018e-05/0.3332, allocations: 6.141 kB / 0.6608 GB, free: 8.727 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001753/0.3334, allocations: 23.11 kB / 0.6608 GB, free: 8.715 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 6.22e-05/0.3335, allocations: 27.38 kB / 0.6609 GB, free: 8.703 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 7.312e-05/0.3336, allocations: 11.58 kB / 0.6609 GB, free: 8.699 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.556e-05/0.3336, allocations: 13.66 kB / 0.6609 GB, free: 8.691 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.012e-05/0.3337, allocations: 16.94 kB / 0.6609 GB, free: 8.684 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.262e-05/0.3337, allocations: 2.531 kB / 0.6609 GB, free: 8.684 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 4.99e-05/0.3337, allocations: 20.78 kB / 0.6609 GB, free: 8.672 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.151e-05/0.3337, allocations: 2.578 kB / 0.6609 GB, free: 8.672 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.216e-05/0.3338, allocations: 20.09 kB / 0.6609 GB, free: 8.656 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 9.504e-05/0.3339, allocations: 32.06 kB / 0.661 GB, free: 8.645 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.967e-06/0.3339, allocations: 4.703 kB / 0.661 GB, free: 8.641 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.182e-06/0.3339, allocations: 0 / 0.661 GB, free: 8.641 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.178e-06/0.3339, allocations: 0 / 0.661 GB, free: 8.641 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003361/0.3342, allocations: 343.3 kB / 0.6613 GB, free: 8.281 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.022e-05/0.3343, allocations: 11.06 kB / 0.6613 GB, free: 8.281 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 1.983e-05/0.3343, allocations: 35.5 kB / 0.6613 GB, free: 8.238 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.131e-05/0.3343, allocations: 2.344 kB / 0.6613 GB, free: 8.238 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.111e-05/0.3344, allocations: 172.6 kB / 0.6615 GB, free: 8.035 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.677e-05/0.3344, allocations: 5.438 kB / 0.6615 GB, free: 8.031 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.109e-05/0.3344, allocations: 9.344 kB / 0.6615 GB, free: 8.023 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001561/0.3346, allocations: 55.28 kB / 0.6616 GB, free: 7.988 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.815e-06/0.3346, allocations: 3.938 kB / 0.6616 GB, free: 7.984 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.892e-06/0.3346, allocations: 1.719 kB / 0.6616 GB, free: 7.984 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.537e-06/0.3346, allocations: 0 / 0.6616 GB, free: 7.984 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001746/0.3348, allocations: 49.83 kB / 0.6616 GB, free: 7.969 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002398/0.335, allocations: 268.2 kB / 0.6619 GB, free: 7.684 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002855/0.3353, allocations: 56.78 kB / 0.6619 GB, free: 7.652 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001005/0.3354, allocations: 30.17 kB / 0.662 GB, free: 7.637 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 8.393e-05/0.3355, allocations: 82.19 kB / 0.662 GB, free: 7.543 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.648e-06/0.3356, allocations: 31.12 kB / 0.6621 GB, free: 7.504 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 9.32e-07/0.3356, allocations: 1.25 kB / 0.6621 GB, free: 7.504 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0003425/0.3359, allocations: 96.83 kB / 0.6622 GB, free: 7.457 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.573e-05/0.3359, allocations: 52.11 kB / 0.6622 GB, free: 7.395 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.974e-05/0.336, allocations: 105.4 kB / 0.6623 GB, free: 7.289 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 7.033e-06/0.336, allocations: 29.7 kB / 0.6623 GB, free: 7.254 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.085e-05/0.336, allocations: 86.06 kB / 0.6624 GB, free: 7.168 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.107e-05/0.336, allocations: 5.531 kB / 0.6624 GB, free: 7.164 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.988e-05/0.3361, allocations: 19.84 kB / 0.6625 GB, free: 7.145 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 3.201e-05/0.3361, allocations: 313.3 kB / 0.6628 GB, free: 6.832 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.788e-05/0.3362, allocations: 19.22 kB / 0.6628 GB, free: 6.828 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.075e-05/0.3363, allocations: 25.67 kB / 0.6628 GB, free: 6.82 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001616/0.3364, allocations: 44.39 kB / 0.6628 GB, free: 6.805 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.3365, allocations: 1.469 kB / 0.6628 GB, free: 6.805 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001963/0.3367, allocations: 76.56 kB / 0.6629 GB, free: 6.762 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.104e-05/0.3367, allocations: 5.297 kB / 0.6629 GB, free: 6.762 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.597e-06/0.3367, allocations: 1.344 kB / 0.6629 GB, free: 6.762 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.146e-05/0.3367, allocations: 4 kB / 0.6629 GB, free: 6.758 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.629e-05/0.3368, allocations: 11.19 kB / 0.6629 GB, free: 6.758 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.418e-06/0.3368, allocations: 0.7969 kB / 0.6629 GB, free: 6.758 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.235e-05/0.3368, allocations: 6.156 kB / 0.6629 GB, free: 6.758 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.311e-06/0.3369, allocations: 2.016 kB / 0.6629 GB, free: 6.758 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 (rea2Int.y,fac.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 4.131e-05/0.3369, allocations: 116.6 kB / 0.6631 GB, free: 6.637 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.278e-05/0.3369, allocations: 1.938 kB / 0.6631 GB, free: 6.637 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002306/0.3372, allocations: 86.8 kB / 0.6631 GB, free: 6.582 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.675e-06/0.3372, allocations: 2.031 kB / 0.6631 GB, free: 6.582 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.3372, allocations: 0 / 0.6631 GB, free: 6.582 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.454e-06/0.3372, allocations: 0.7031 kB / 0.6631 GB, free: 6.582 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001028/0.3373, allocations: 171 kB / 0.6633 GB, free: 6.379 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.3373, allocations: 0 / 0.6633 GB, free: 6.379 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.064e-05/0.3374, allocations: 11.36 kB / 0.6633 GB, free: 6.379 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.3374, allocations: 4.969 kB / 0.6633 GB, free: 6.375 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.514e-06/0.3374, allocations: 4.656 kB / 0.6633 GB, free: 6.371 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.002e-06/0.3374, allocations: 5.188 kB / 0.6633 GB, free: 6.367 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.3374, allocations: 4.594 kB / 0.6633 GB, free: 6.363 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002126/0.3376, allocations: 172.7 kB / 0.6635 GB, free: 6.219 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.197e-05/0.3376, allocations: 79.31 kB / 0.6636 GB, free: 6.125 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.197e-05/0.3377, allocations: 1.797 kB / 0.6636 GB, free: 6.125 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.033e-05/0.3377, allocations: 8.875 kB / 0.6636 GB, free: 6.121 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.292e-05/0.3378, allocations: 14.8 kB / 0.6636 GB, free: 6.113 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.947e-06/0.3378, allocations: 0 / 0.6636 GB, free: 6.113 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 1.768e-05/0.3378, allocations: 81 kB / 0.6637 GB, free: 6.039 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.01e-07/0.3378, allocations: 0 / 0.6637 GB, free: 6.039 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002082/0.338, allocations: 15.17 kB / 0.6637 GB, free: 6.031 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.y,rea2Int.y) * 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 (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.0003663/0.3384, allocations: 0.708 MB / 0.6644 GB, free: 5.355 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002186/0.3386, allocations: 49.53 kB / 0.6644 GB, free: 5.344 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.3386, allocations: 0 / 0.6644 GB, free: 5.344 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.588e-05/0.3387, allocations: 25.7 kB / 0.6645 GB, free: 5.34 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002348/0.339, allocations: 3.859 kB / 0.6645 GB, free: 5.34 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003245/0.3393, allocations: 147.7 kB / 0.6646 GB, free: 5.184 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.132e-05/0.3394, allocations: 0.677 MB / 0.6653 GB, free: 4.488 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.68e-05/0.3394, allocations: 2.906 kB / 0.6653 GB, free: 4.488 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.18e-05/0.3395, allocations: 16.27 kB / 0.6653 GB, free: 4.477 MB / 0.4981 GB Notification: Performance of SimCode: time 2.51e-07/0.3395, allocations: 0 / 0.6653 GB, free: 4.477 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2447/0.5842, allocations: 1.569 MB / 0.6668 GB, free: 3.688 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.269/8.853, allocations: 9.859 kB / 0.6668 GB, free: 3.68 MB / 0.4981 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/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)