Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_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-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.Examples.Factorial,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.Factorial,fileNamePrefix="IDEAS_dev_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.000804/0.0008039, allocations: 97.64 kB / 15.36 MB, free: 0.7344 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.005305/0.005305, allocations: 169.2 kB / 16.26 MB, free: 6.652 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.18/1.18, allocations: 223.3 MB / 240.3 MB, free: 5.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8219/0.8219, allocations: 135.3 MB / 426.7 MB, free: 14.23 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003106/0.0003106, allocations: 12.61 kB / 0.5077 GB, free: 4.645 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1275/0.1279, allocations: 82.31 MB / 0.5881 GB, free: 2.512 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.001287/0.1292, allocations: 1.229 MB / 0.5893 GB, free: 1.266 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002937/0.1295, allocations: 116.5 kB / 0.5894 GB, free: 1.148 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.805e-05/0.1295, allocations: 0 / 0.5894 GB, free: 1.148 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.251e-05/0.1295, allocations: 0 / 0.5894 GB, free: 1.148 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.541e-05/0.1296, allocations: 3.984 kB / 0.5894 GB, free: 1.145 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001571/0.1297, allocations: 31.92 kB / 0.5894 GB, free: 1.113 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.015e-05/0.1298, allocations: 27.92 kB / 0.5894 GB, free: 1.086 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.499e-05/0.1299, allocations: 11.92 kB / 0.5895 GB, free: 1.074 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.191e-05/0.1299, allocations: 8 kB / 0.5895 GB, free: 1.066 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.041e-05/0.13, allocations: 15.91 kB / 0.5895 GB, free: 1.051 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.028e-05/0.13, allocations: 0 / 0.5895 GB, free: 1.051 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.689e-05/0.13, allocations: 8 kB / 0.5895 GB, free: 1.043 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.204e-05/0.13, allocations: 11.92 kB / 0.5895 GB, free: 1.031 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 3.137e-05/0.1301, allocations: 33.64 kB / 0.5895 GB, free: 0.9922 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 7.823e-05/0.1302, allocations: 35.88 kB / 0.5896 GB, free: 0.957 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.525e-06/0.1302, allocations: 0 / 0.5896 GB, free: 0.957 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.1302, allocations: 4 kB / 0.5896 GB, free: 0.9531 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.056e-06/0.1302, allocations: 0 / 0.5896 GB, free: 0.9531 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0003435/0.1305, allocations: 343.7 kB / 0.5899 GB, free: 0.5664 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.013e-05/0.1306, allocations: 8.031 kB / 0.5899 GB, free: 0.5586 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.685e-05/0.1306, allocations: 34.75 kB / 0.5899 GB, free: 0.5156 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.927e-05/0.1306, allocations: 8.922 kB / 0.5899 GB, free: 0.5078 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 8.174e-05/0.1307, allocations: 168.4 kB / 0.5901 GB, free: 312 kB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.898e-05/0.1307, allocations: 4.375 kB / 0.5901 GB, free: 308 kB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.594e-06/0.1308, allocations: 4.312 kB / 0.5901 GB, free: 304 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001571/0.1309, allocations: 58.23 kB / 0.5902 GB, free: 240 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.172e-06/0.1309, allocations: 3.938 kB / 0.5902 GB, free: 236 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.496e-06/0.1309, allocations: 4 kB / 0.5902 GB, free: 232 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-06/0.131, allocations: 8 kB / 0.5902 GB, free: 224 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001819/0.1311, allocations: 51.89 kB / 0.5902 GB, free: 172 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002851/0.1314, allocations: 264.8 kB / 0.5905 GB, free: 15.86 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002727/0.1317, allocations: 62.55 kB / 0.5905 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.653e-05/0.1318, allocations: 32.89 kB / 0.5906 GB, free: 15.75 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 9.108e-05/0.1319, allocations: 81.11 kB / 0.5907 GB, free: 15.66 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.668e-05/0.1319, allocations: 38.5 kB / 0.5907 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.051e-06/0.132, allocations: 0 / 0.5907 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0003476/0.1323, allocations: 113.6 kB / 0.5908 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.535e-05/0.1323, allocations: 51.41 kB / 0.5908 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.349e-05/0.1324, allocations: 101.8 kB / 0.5909 GB, free: 15.32 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.151e-05/0.1324, allocations: 25.7 kB / 0.591 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.152e-05/0.1325, allocations: 84.14 kB / 0.5911 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.249e-05/0.1325, allocations: 7.844 kB / 0.5911 GB, free: 15.2 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.239e-05/0.1325, allocations: 13.72 kB / 0.5911 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 7.549e-05/0.1326, allocations: 318.8 kB / 0.5914 GB, free: 14.86 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.994e-05/0.1327, allocations: 27.98 kB / 0.5914 GB, free: 14.83 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.26e-05/0.1328, allocations: 27.91 kB / 0.5914 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001688/0.1329, allocations: 56.77 kB / 0.5915 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-06/0.1329, allocations: 0 / 0.5915 GB, free: 14.74 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002073/0.1332, allocations: 90.02 kB / 0.5916 GB, free: 14.65 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 9.057e-06/0.1332, allocations: 11.94 kB / 0.5916 GB, free: 14.64 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.806e-06/0.1332, allocations: 4 kB / 0.5916 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.793e-06/0.1332, allocations: 0 / 0.5916 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.911e-05/0.1333, allocations: 11.98 kB / 0.5916 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.596e-06/0.1333, allocations: 4 kB / 0.5916 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.391e-05/0.1334, allocations: 4 kB / 0.5916 GB, free: 14.61 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.619e-06/0.1334, allocations: 0 / 0.5916 GB, free: 14.61 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 6.62e-05/0.1334, allocations: 129.8 kB / 0.5917 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.365e-05/0.1335, allocations: 3.984 kB / 0.5917 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002398/0.1337, allocations: 97.08 kB / 0.5918 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-06/0.1337, allocations: 0 / 0.5918 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-06/0.1337, allocations: 0 / 0.5918 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-06/0.1337, allocations: 8 kB / 0.5918 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001311/0.1339, allocations: 165.6 kB / 0.592 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.1339, allocations: 0 / 0.592 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.247e-05/0.134, allocations: 15.98 kB / 0.592 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.503e-06/0.134, allocations: 0 / 0.592 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.881e-06/0.134, allocations: 0 / 0.592 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.082e-06/0.134, allocations: 0 / 0.592 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.134, allocations: 0 / 0.592 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00024/0.1342, allocations: 191.3 kB / 0.5922 GB, free: 13.93 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.871e-05/0.1343, allocations: 81.09 kB / 0.5923 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.989e-06/0.1343, allocations: 0 / 0.5923 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.2e-05/0.1344, allocations: 8 kB / 0.5923 GB, free: 13.83 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.448e-05/0.1344, allocations: 11.98 kB / 0.5923 GB, free: 13.82 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.909e-06/0.1344, allocations: 4 kB / 0.5923 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.878e-05/0.1345, allocations: 79.27 kB / 0.5924 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.9e-07/0.1345, allocations: 0 / 0.5924 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002022/0.1347, allocations: 8 kB / 0.5924 GB, free: 13.73 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.0004708/0.1351, allocations: 0.7241 MB / 0.5931 GB, free: 12.97 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002079/0.1354, allocations: 59.95 kB / 0.5931 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.472e-06/0.1354, allocations: 0 / 0.5931 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.536e-05/0.1355, allocations: 27.98 kB / 0.5932 GB, free: 12.89 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002258/0.1357, allocations: 4 kB / 0.5932 GB, free: 12.88 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003464/0.1361, allocations: 170.1 kB / 0.5933 GB, free: 12.68 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001661/0.1362, allocations: 0.677 MB / 0.594 GB, free: 11.98 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.61e-05/0.1363, allocations: 4 kB / 0.594 GB, free: 11.97 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.828e-05/0.1363, allocations: 11.38 kB / 0.594 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of SimCode: time 2.51e-07/0.1363, allocations: 4 kB / 0.594 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.762/1.898, allocations: 1.295 MB / 0.5953 GB, free: 10.79 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002635/1.899, allocations: 191 kB / 0.5955 GB, free: 10.53 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.47/4.369, allocations: 0 / 0.5955 GB, free: 10.53 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Math_Examples_Factorial.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.Factorial.pipe 2>&1)