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.001435/0.001435, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001741/0.001741, allocations: 193.8 kB / 16.25 MB, free: 6.621 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.27/1.27, allocations: 222.9 MB / 239.9 MB, free: 4.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7331/0.7331, allocations: 132.2 MB / 422.3 MB, free: 1.934 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001139/0.001139, allocations: 61.06 kB / 0.5014 GB, free: 8.992 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1285/0.1297, allocations: 80.2 MB / 0.5797 GB, free: 9.012 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001558/0.1313, allocations: 0.6522 MB / 0.5803 GB, free: 8.355 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002026/0.1315, allocations: 43.84 kB / 0.5804 GB, free: 8.312 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 1.188e-05/0.1315, allocations: 4 kB / 0.5804 GB, free: 8.309 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.365e-05/0.1315, allocations: 0 / 0.5804 GB, free: 8.309 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.238e-06/0.1315, allocations: 0 / 0.5804 GB, free: 8.309 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001645/0.1317, allocations: 11.94 kB / 0.5804 GB, free: 8.297 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 2.99e-05/0.1317, allocations: 0 / 0.5804 GB, free: 8.297 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.756e-05/0.1318, allocations: 7.984 kB / 0.5804 GB, free: 8.289 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.024e-05/0.1318, allocations: 0 / 0.5804 GB, free: 8.289 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.723e-05/0.1318, allocations: 7.984 kB / 0.5804 GB, free: 8.281 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 7.073e-06/0.1318, allocations: 3.938 kB / 0.5804 GB, free: 8.277 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.204e-05/0.1319, allocations: 8 kB / 0.5804 GB, free: 8.27 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.762e-06/0.1319, allocations: 0 / 0.5804 GB, free: 8.27 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 1.471e-05/0.1319, allocations: 8 kB / 0.5804 GB, free: 8.262 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 6.582e-05/0.132, allocations: 11.98 kB / 0.5804 GB, free: 8.25 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.132, allocations: 0 / 0.5804 GB, free: 8.25 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.182e-06/0.132, allocations: 0 / 0.5804 GB, free: 8.25 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.747e-06/0.132, allocations: 0 / 0.5804 GB, free: 8.25 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.0002238/0.1322, allocations: 319.5 kB / 0.5807 GB, free: 7.887 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.166e-05/0.1323, allocations: 8.031 kB / 0.5807 GB, free: 7.879 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.084e-05/0.1323, allocations: 34.75 kB / 0.5808 GB, free: 7.836 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.721e-05/0.1323, allocations: 0.9375 kB / 0.5808 GB, free: 7.836 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.352e-05/0.1324, allocations: 160.4 kB / 0.5809 GB, free: 7.641 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.494e-06/0.1324, allocations: 384 / 0.5809 GB, free: 7.641 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.512e-06/0.1324, allocations: 4.375 kB / 0.5809 GB, free: 7.637 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.301e-05/0.1325, allocations: 38.19 kB / 0.581 GB, free: 7.594 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.861e-06/0.1325, allocations: 7.875 kB / 0.581 GB, free: 7.586 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.879e-06/0.1325, allocations: 0 / 0.581 GB, free: 7.586 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.366e-06/0.1325, allocations: 4 kB / 0.581 GB, free: 7.582 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.331e-05/0.1326, allocations: 4 kB / 0.581 GB, free: 7.578 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001172/0.1327, allocations: 153.7 kB / 0.5811 GB, free: 7.379 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 3.62e-05/0.1327, allocations: 18.61 kB / 0.5811 GB, free: 7.352 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 1.707e-05/0.1328, allocations: 12.86 kB / 0.5812 GB, free: 7.336 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001241/0.1329, allocations: 81.17 kB / 0.5812 GB, free: 7.238 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.233e-05/0.1329, allocations: 34.56 kB / 0.5813 GB, free: 7.195 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 9.72e-07/0.1329, allocations: 3.938 kB / 0.5813 GB, free: 7.191 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001047/0.133, allocations: 49.62 kB / 0.5813 GB, free: 7.137 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.593e-05/0.1331, allocations: 51.41 kB / 0.5814 GB, free: 7.074 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.76e-05/0.1331, allocations: 93.77 kB / 0.5815 GB, free: 6.973 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 9.027e-06/0.1331, allocations: 25.7 kB / 0.5815 GB, free: 6.941 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.14e-05/0.1331, allocations: 84.12 kB / 0.5816 GB, free: 6.855 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.298e-05/0.1332, allocations: 0 / 0.5816 GB, free: 6.855 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.55e-05/0.1332, allocations: 17.83 kB / 0.5816 GB, free: 6.832 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.35e-05/0.1333, allocations: 318.8 kB / 0.5819 GB, free: 6.512 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.012e-05/0.1333, allocations: 4 kB / 0.5819 GB, free: 6.508 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.952e-06/0.1333, allocations: 0 / 0.5819 GB, free: 6.508 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.632e-05/0.1333, allocations: 12.8 kB / 0.5819 GB, free: 6.492 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-06/0.1334, allocations: 4 kB / 0.5819 GB, free: 6.488 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.241e-05/0.1334, allocations: 41.69 kB / 0.5819 GB, free: 6.441 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.007e-06/0.1334, allocations: 4 kB / 0.582 GB, free: 6.438 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.1334, allocations: 8.031 kB / 0.582 GB, free: 6.43 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.675e-06/0.1334, allocations: 0 / 0.582 GB, free: 6.43 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.202e-05/0.1335, allocations: 4 kB / 0.582 GB, free: 6.426 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.287e-06/0.1335, allocations: 0 / 0.582 GB, free: 6.426 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.21e-05/0.1335, allocations: 288 / 0.582 GB, free: 6.426 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.516e-06/0.1335, allocations: 0 / 0.582 GB, free: 6.426 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.342e-05/0.1336, allocations: 118.5 kB / 0.5821 GB, free: 6.301 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.574e-06/0.1336, allocations: 4 kB / 0.5821 GB, free: 6.297 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.399e-05/0.1337, allocations: 52.64 kB / 0.5821 GB, free: 6.234 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-06/0.1337, allocations: 0 / 0.5821 GB, free: 6.234 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.765e-06/0.1337, allocations: 3.938 kB / 0.5821 GB, free: 6.23 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.138e-06/0.1337, allocations: 3.984 kB / 0.5821 GB, free: 6.227 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.869e-05/0.1338, allocations: 153.6 kB / 0.5823 GB, free: 6.027 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.1338, allocations: 0 / 0.5823 GB, free: 6.027 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.921e-05/0.1338, allocations: 0 / 0.5823 GB, free: 6.027 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.1338, allocations: 4 kB / 0.5823 GB, free: 6.023 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.041e-06/0.1338, allocations: 3.938 kB / 0.5823 GB, free: 6.02 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.1338, allocations: 3.984 kB / 0.5823 GB, free: 6.016 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.1338, allocations: 0 / 0.5823 GB, free: 6.016 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.929e-05/0.1339, allocations: 65.11 kB / 0.5824 GB, free: 5.934 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.58e-05/0.134, allocations: 81.02 kB / 0.5824 GB, free: 5.836 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.277e-05/0.134, allocations: 11.92 kB / 0.5824 GB, free: 5.824 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.04e-05/0.134, allocations: 0 / 0.5824 GB, free: 5.824 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.78e-05/0.134, allocations: 0 / 0.5824 GB, free: 5.824 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.034e-06/0.134, allocations: 0 / 0.5824 GB, free: 5.824 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.087e-05/0.134, allocations: 75.28 kB / 0.5825 GB, free: 5.75 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.134, allocations: 4.031 kB / 0.5825 GB, free: 5.746 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001821/0.1342, allocations: 8 kB / 0.5825 GB, free: 5.738 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.0003161/0.1345, allocations: 0.6007 MB / 0.5831 GB, free: 5.109 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 5.879e-05/0.1346, allocations: 11.92 kB / 0.5831 GB, free: 5.098 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.292e-06/0.1346, allocations: 4.094 kB / 0.5831 GB, free: 5.094 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.56e-05/0.1346, allocations: 12 kB / 0.5831 GB, free: 5.082 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001142/0.1348, allocations: 0 / 0.5831 GB, free: 5.082 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002282/0.135, allocations: 116.3 kB / 0.5833 GB, free: 4.93 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001931/0.1352, allocations: 0.6729 MB / 0.5839 GB, free: 4.23 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.011e-05/0.1352, allocations: 0 / 0.5839 GB, free: 4.23 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.591e-05/0.1352, allocations: 11.44 kB / 0.5839 GB, free: 4.223 MB / 494.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1352, allocations: 0 / 0.5839 GB, free: 4.223 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3644/0.4997, allocations: 0.9556 MB / 0.5849 GB, free: 3.387 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003014/0.5, allocations: 186.8 kB / 0.585 GB, free: 3.133 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.826/2.326, allocations: 0 / 0.585 GB, free: 3.133 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)