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.001175/0.001175, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001211/0.001211, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.185/1.185, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6928/0.6928, allocations: 132.2 MB / 422.6 MB, free: 1.809 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002107/0.002107, allocations: 61.09 kB / 0.5019 GB, free: 3.805 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3075/0.3097, allocations: 80.19 MB / 0.5802 GB, free: 4.578 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.002043/0.3117, allocations: 1.505 MB / 0.5817 GB, free: 3.527 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002625/0.312, allocations: 126 kB / 0.5818 GB, free: 3.441 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.025e-05/0.3121, allocations: 4.812 kB / 0.5818 GB, free: 3.438 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 2.488e-05/0.3121, allocations: 4.547 kB / 0.5818 GB, free: 3.434 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 4.058e-05/0.3121, allocations: 9.078 kB / 0.5818 GB, free: 3.426 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001968/0.3123, allocations: 24.12 kB / 0.5818 GB, free: 3.414 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 5.716e-05/0.3124, allocations: 32 kB / 0.5818 GB, free: 3.398 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.26e-05/0.3125, allocations: 10.09 kB / 0.5819 GB, free: 3.395 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.197e-05/0.3125, allocations: 14.3 kB / 0.5819 GB, free: 3.387 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.132e-05/0.3126, allocations: 19.92 kB / 0.5819 GB, free: 3.375 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.229e-05/0.3126, allocations: 2.75 kB / 0.5819 GB, free: 3.375 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.052e-05/0.3127, allocations: 9.703 kB / 0.5819 GB, free: 3.375 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.274e-05/0.3127, allocations: 6.469 kB / 0.5819 GB, free: 3.371 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 2.412e-05/0.3127, allocations: 11.22 kB / 0.5819 GB, free: 3.363 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 9.238e-05/0.3128, allocations: 34.7 kB / 0.5819 GB, free: 3.348 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.3128, allocations: 0.875 kB / 0.5819 GB, free: 3.348 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.3128, allocations: 0 / 0.5819 GB, free: 3.348 MB / 430.1 MB Notification: Performance of Transformations before backend: time 4.85e-06/0.3128, allocations: 0.75 kB / 0.5819 GB, free: 3.348 MB / 430.1 MB 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.0003352/0.3132, allocations: 350.3 kB / 0.5823 GB, free: 2.98 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.504e-05/0.3132, allocations: 10.31 kB / 0.5823 GB, free: 2.98 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.221e-05/0.3132, allocations: 35.94 kB / 0.5823 GB, free: 2.938 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.248e-05/0.3133, allocations: 2.594 kB / 0.5823 GB, free: 2.938 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.02e-05/0.3133, allocations: 171.8 kB / 0.5825 GB, free: 2.734 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.586e-05/0.3134, allocations: 6.062 kB / 0.5825 GB, free: 2.73 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.083e-05/0.3134, allocations: 1.594 kB / 0.5825 GB, free: 2.73 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001565/0.3135, allocations: 59.3 kB / 0.5826 GB, free: 2.691 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.775e-06/0.3135, allocations: 3.938 kB / 0.5826 GB, free: 2.688 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.004e-05/0.3136, allocations: 9.703 kB / 0.5826 GB, free: 2.68 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.3136, allocations: 3.984 kB / 0.5826 GB, free: 2.676 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001721/0.3137, allocations: 45.61 kB / 0.5826 GB, free: 2.664 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002659/0.314, allocations: 260.7 kB / 0.5829 GB, free: 2.387 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002684/0.3143, allocations: 61.36 kB / 0.5829 GB, free: 2.352 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.765e-05/0.3144, allocations: 25.61 kB / 0.5829 GB, free: 2.34 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.02e-05/0.3145, allocations: 82.64 kB / 0.583 GB, free: 2.246 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.073e-05/0.3145, allocations: 31.22 kB / 0.5831 GB, free: 2.207 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 1.573e-06/0.3145, allocations: 0 / 0.5831 GB, free: 2.207 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003303/0.3148, allocations: 96.45 kB / 0.5831 GB, free: 2.16 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.813e-05/0.3149, allocations: 52.86 kB / 0.5832 GB, free: 2.098 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.226e-05/0.3149, allocations: 102.2 kB / 0.5833 GB, free: 1.996 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 7.134e-06/0.3149, allocations: 25.7 kB / 0.5833 GB, free: 1.965 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.309e-05/0.315, allocations: 90.2 kB / 0.5834 GB, free: 1.875 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.252e-05/0.315, allocations: 5.5 kB / 0.5834 GB, free: 1.871 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.801e-05/0.315, allocations: 18.91 kB / 0.5834 GB, free: 1.852 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 3.349e-05/0.315, allocations: 312.9 kB / 0.5837 GB, free: 1.539 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.316e-05/0.3151, allocations: 23.84 kB / 0.5838 GB, free: 1.531 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.434e-05/0.3152, allocations: 20.38 kB / 0.5838 GB, free: 1.527 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001496/0.3154, allocations: 53.62 kB / 0.5838 GB, free: 1.504 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.3154, allocations: 0.7969 kB / 0.5838 GB, free: 1.504 MB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000188/0.3156, allocations: 77.52 kB / 0.5839 GB, free: 1.461 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.095e-05/0.3156, allocations: 6.969 kB / 0.5839 GB, free: 1.461 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.817e-06/0.3156, allocations: 0.7031 kB / 0.5839 GB, free: 1.461 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.778e-06/0.3156, allocations: 1.281 kB / 0.5839 GB, free: 1.461 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.919e-05/0.3157, allocations: 10.17 kB / 0.5839 GB, free: 1.461 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.458e-06/0.3157, allocations: 2.078 kB / 0.5839 GB, free: 1.461 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.955e-05/0.3157, allocations: 4.969 kB / 0.5839 GB, free: 1.461 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.26e-06/0.3157, allocations: 2.031 kB / 0.5839 GB, free: 1.461 MB / 430.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 (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.323e-05/0.3158, allocations: 122.8 kB / 0.584 GB, free: 1.336 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.245e-05/0.3158, allocations: 1.375 kB / 0.584 GB, free: 1.336 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002251/0.3161, allocations: 83.48 kB / 0.5841 GB, free: 1.281 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.3161, allocations: 0 / 0.5841 GB, free: 1.281 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.649e-06/0.3161, allocations: 0.7188 kB / 0.5841 GB, free: 1.281 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.938e-06/0.3161, allocations: 4.547 kB / 0.5841 GB, free: 1.277 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000107/0.3162, allocations: 167.5 kB / 0.5843 GB, free: 1.078 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.443e-06/0.3162, allocations: 0.7969 kB / 0.5843 GB, free: 1.078 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.87e-05/0.3163, allocations: 18.89 kB / 0.5843 GB, free: 1.07 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.785e-06/0.3163, allocations: 5.109 kB / 0.5843 GB, free: 1.066 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.123e-06/0.3163, allocations: 4.703 kB / 0.5843 GB, free: 1.062 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.12e-07/0.3163, allocations: 1.25 kB / 0.5843 GB, free: 1.062 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.3163, allocations: 0 / 0.5843 GB, free: 1.062 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002042/0.3165, allocations: 177.1 kB / 0.5845 GB, free: 0.9141 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.474e-05/0.3165, allocations: 83.2 kB / 0.5846 GB, free: 0.8164 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.237e-05/0.3166, allocations: 5.609 kB / 0.5846 GB, free: 0.8125 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.64e-05/0.3166, allocations: 5.172 kB / 0.5846 GB, free: 0.8125 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.068e-05/0.3167, allocations: 8.953 kB / 0.5846 GB, free: 0.8086 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.598e-06/0.3167, allocations: 2.109 kB / 0.5846 GB, free: 0.8086 MB / 430.1 MB Notification: Performance of sorting global known variables: time 1.935e-05/0.3167, allocations: 79.78 kB / 0.5847 GB, free: 0.7344 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3167, allocations: 0 / 0.5847 GB, free: 0.7344 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002008/0.3169, allocations: 7.406 kB / 0.5847 GB, free: 0.7344 MB / 430.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.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.0003715/0.3173, allocations: 0.7119 MB / 0.5854 GB, free: 60 kB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0002051/0.3175, allocations: 45.42 kB / 0.5854 GB, free: 52 kB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.3175, allocations: 0.9375 kB / 0.5854 GB, free: 52 kB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 9.114e-05/0.3176, allocations: 29.22 kB / 0.5854 GB, free: 44 kB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002386/0.3179, allocations: 5.266 kB / 0.5854 GB, free: 44 kB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003612/0.3182, allocations: 157.3 kB / 0.5856 GB, free: 15.88 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003477/0.3186, allocations: 0.6774 MB / 0.5863 GB, free: 15.18 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 2.857e-05/0.3186, allocations: 7.75 kB / 0.5863 GB, free: 15.18 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.401e-05/0.3187, allocations: 10.53 kB / 0.5863 GB, free: 15.17 MB / 446.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3187, allocations: 0.8125 kB / 0.5863 GB, free: 15.17 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.403/3.721, allocations: 1.534 MB / 0.5878 GB, free: 14.81 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.787/11.51, allocations: 2.031 kB / 0.5878 GB, free: 14.81 MB / 446.1 MB (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)