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.001567/0.001567, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.001697/0.001697, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.99/1.99, allocations: 223.2 MB / 239.9 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 1.054/1.054, allocations: 132.2 MB / 423.2 MB, free: 2.18 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0006474/0.0006478, allocations: 12 kB / 0.5033 GB, free: 4.203 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8459/0.8466, allocations: 81.57 MB / 0.583 GB, free: 4.043 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.0009254/0.8476, allocations: 314 kB / 0.5833 GB, free: 3.832 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002805/0.8479, allocations: 42.41 kB / 0.5833 GB, free: 3.805 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.921e-05/0.848, allocations: 0.8125 kB / 0.5833 GB, free: 3.805 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 1.225e-05/0.848, allocations: 1.5 kB / 0.5833 GB, free: 3.805 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 5.3e-06/0.848, allocations: 0 / 0.5833 GB, free: 3.805 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002386/0.8482, allocations: 10.05 kB / 0.5833 GB, free: 3.801 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 4.517e-05/0.8483, allocations: 1.312 kB / 0.5833 GB, free: 3.801 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.05e-05/0.8484, allocations: 4.656 kB / 0.5833 GB, free: 3.797 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.837e-05/0.8484, allocations: 1.188 kB / 0.5833 GB, free: 3.797 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.617e-05/0.8484, allocations: 6.203 kB / 0.5833 GB, free: 3.793 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.251e-05/0.8485, allocations: 3.938 kB / 0.5833 GB, free: 3.789 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.883e-05/0.8485, allocations: 9.156 kB / 0.5833 GB, free: 3.785 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 1.052e-05/0.8486, allocations: 5.438 kB / 0.5834 GB, free: 3.781 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 2.46e-05/0.8486, allocations: 26.55 kB / 0.5834 GB, free: 3.75 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 7.509e-05/0.8487, allocations: 8.25 kB / 0.5834 GB, free: 3.746 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.8487, allocations: 0.8125 kB / 0.5834 GB, free: 3.746 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.775e-06/0.8487, allocations: 0 / 0.5834 GB, free: 3.746 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.11e-06/0.8487, allocations: 0 / 0.5834 GB, free: 3.746 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002458/0.849, allocations: 313 kB / 0.5837 GB, free: 3.398 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.586e-05/0.849, allocations: 8.438 kB / 0.5837 GB, free: 3.398 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.774e-05/0.8491, allocations: 32.31 kB / 0.5837 GB, free: 3.359 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.946e-05/0.8491, allocations: 0 / 0.5837 GB, free: 3.359 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.492e-05/0.8492, allocations: 165.9 kB / 0.5839 GB, free: 3.16 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.757e-05/0.8492, allocations: 7.938 kB / 0.5839 GB, free: 3.152 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.166e-05/0.8492, allocations: 1.906 kB / 0.5839 GB, free: 3.152 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000127/0.8494, allocations: 30.84 kB / 0.5839 GB, free: 3.121 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/0.8494, allocations: 4 kB / 0.5839 GB, free: 3.117 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.042e-05/0.8494, allocations: 3.938 kB / 0.5839 GB, free: 3.113 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.561e-06/0.8494, allocations: 0 / 0.5839 GB, free: 3.113 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.477e-05/0.8495, allocations: 9.172 kB / 0.5839 GB, free: 3.109 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001711/0.8497, allocations: 153.6 kB / 0.5841 GB, free: 2.914 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.657e-05/0.8497, allocations: 20.36 kB / 0.5841 GB, free: 2.891 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002074/0.85, allocations: 81.3 kB / 0.5842 GB, free: 2.797 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.586e-05/0.85, allocations: 40.45 kB / 0.5842 GB, free: 2.75 MB / 430.1 MB Notification: Performance of pre-optimization done (n=2): time 1.142e-06/0.85, allocations: 0 / 0.5842 GB, free: 2.75 MB / 430.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001936/0.8502, allocations: 45.23 kB / 0.5843 GB, free: 2.711 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.625e-05/0.8502, allocations: 52.28 kB / 0.5843 GB, free: 2.648 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.7e-05/0.8503, allocations: 94.42 kB / 0.5844 GB, free: 2.547 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 1.462e-05/0.8503, allocations: 26.48 kB / 0.5844 GB, free: 2.516 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.749e-05/0.8503, allocations: 84.08 kB / 0.5845 GB, free: 2.43 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.975e-05/0.8504, allocations: 1.594 kB / 0.5845 GB, free: 2.43 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.645e-06/0.8504, allocations: 128 / 0.5845 GB, free: 2.43 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 6.362e-05/0.8505, allocations: 316.6 kB / 0.5848 GB, free: 2.113 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.505e-05/0.8505, allocations: 1.719 kB / 0.5848 GB, free: 2.113 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.147e-06/0.8505, allocations: 2.969 kB / 0.5848 GB, free: 2.113 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.686e-05/0.8505, allocations: 10.27 kB / 0.5848 GB, free: 2.105 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.956e-06/0.8505, allocations: 0 / 0.5848 GB, free: 2.105 MB / 430.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.332e-05/0.8506, allocations: 39.69 kB / 0.5849 GB, free: 2.07 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.158e-05/0.8506, allocations: 5.734 kB / 0.5849 GB, free: 2.07 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.8507, allocations: 0.7188 kB / 0.5849 GB, free: 2.07 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.558e-05/0.8507, allocations: 5.031 kB / 0.5849 GB, free: 2.066 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.559e-05/0.8508, allocations: 4.078 kB / 0.5849 GB, free: 2.066 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.712e-06/0.8508, allocations: 0 / 0.5849 GB, free: 2.066 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.805e-05/0.8508, allocations: 2.938 kB / 0.5849 GB, free: 2.066 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.865e-06/0.8508, allocations: 1.453 kB / 0.5849 GB, free: 2.066 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 (fac,n) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.666e-05/0.8509, allocations: 116 kB / 0.585 GB, free: 1.945 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.065e-05/0.8509, allocations: 0.8438 kB / 0.585 GB, free: 1.945 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001134/0.851, allocations: 47.22 kB / 0.585 GB, free: 1.902 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.498e-06/0.851, allocations: 5.219 kB / 0.585 GB, free: 1.898 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.393e-06/0.8511, allocations: 4.562 kB / 0.585 GB, free: 1.895 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.007e-06/0.8511, allocations: 0 / 0.585 GB, free: 1.895 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.465e-05/0.8511, allocations: 146.9 kB / 0.5852 GB, free: 1.707 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.266e-06/0.8512, allocations: 3.953 kB / 0.5852 GB, free: 1.703 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.078e-05/0.8512, allocations: 3.438 kB / 0.5852 GB, free: 1.703 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.8512, allocations: 1.344 kB / 0.5852 GB, free: 1.703 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.045e-06/0.8512, allocations: 4.5 kB / 0.5852 GB, free: 1.699 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.8512, allocations: 1.094 kB / 0.5852 GB, free: 1.699 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.835e-06/0.8512, allocations: 0.7031 kB / 0.5852 GB, free: 1.699 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.782e-05/0.8513, allocations: 68.7 kB / 0.5853 GB, free: 1.625 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.639e-05/0.8514, allocations: 81.67 kB / 0.5853 GB, free: 1.527 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.375e-05/0.8514, allocations: 1.969 kB / 0.5853 GB, free: 1.527 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.177e-05/0.8514, allocations: 0 / 0.5853 GB, free: 1.527 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.714e-05/0.8514, allocations: 3.516 kB / 0.5854 GB, free: 1.527 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.708e-06/0.8515, allocations: 1.312 kB / 0.5854 GB, free: 1.527 MB / 430.1 MB Notification: Performance of sorting global known variables: time 1.72e-05/0.8515, allocations: 83.22 kB / 0.5854 GB, free: 1.445 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.8515, allocations: 7.969 kB / 0.5854 GB, free: 1.438 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.000228/0.8517, allocations: 4.656 kB / 0.5854 GB, free: 1.438 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,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 (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.0003394/0.8521, allocations: 0.5983 MB / 0.586 GB, free: 0.8438 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 8.846e-05/0.8522, allocations: 7.234 kB / 0.586 GB, free: 0.8438 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.8522, allocations: 5.438 kB / 0.586 GB, free: 0.8398 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 2.008e-05/0.8522, allocations: 11.86 kB / 0.5861 GB, free: 0.832 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001102/0.8523, allocations: 3.438 kB / 0.5861 GB, free: 0.832 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003211/0.8526, allocations: 108.8 kB / 0.5862 GB, free: 0.6992 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001258/0.8528, allocations: 0.6792 MB / 0.5868 GB, free: 0 / 430.1 MB Notification: Performance of simCode: alias equations: time 1.527e-05/0.8528, allocations: 1.25 kB / 0.5868 GB, free: 0 / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.016e-05/0.8529, allocations: 14.52 kB / 0.5868 GB, free: 15.98 MB / 446.1 MB Notification: Performance of SimCode: time 3.51e-07/0.8529, allocations: 0 / 0.5868 GB, free: 15.98 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01286/0.8657, allocations: 0.8506 MB / 0.5877 GB, free: 15.85 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002082/0.866, allocations: 169.2 kB / 0.5878 GB, free: 15.61 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.686/3.552, allocations: 0 / 0.5878 GB, free: 15.61 MB / 446.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/linux/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) Environment - environmentSimulation: