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.001048/0.001047, allocations: 108 kB / 15.61 MB, free: 148 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.001048/0.001047, allocations: 193.7 kB / 16.53 MB, free: 6.664 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.285/1.285, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.8802/0.8802, allocations: 135.1 MB / 425.5 MB, free: 11.91 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001152/0.001152, allocations: 68.48 kB / 0.5054 GB, free: 5.234 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1173/0.1185, allocations: 80.92 MB / 0.5845 GB, free: 4.473 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.002363/0.1209, allocations: 1.506 MB / 0.5859 GB, free: 2.945 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003071/0.1212, allocations: 122.2 kB / 0.5861 GB, free: 2.824 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.216e-05/0.1212, allocations: 0 / 0.5861 GB, free: 2.824 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.196e-05/0.1213, allocations: 7.875 kB / 0.5861 GB, free: 2.816 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.925e-05/0.1213, allocations: 3.938 kB / 0.5861 GB, free: 2.812 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001848/0.1215, allocations: 15.98 kB / 0.5861 GB, free: 2.797 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 6.053e-05/0.1216, allocations: 47.84 kB / 0.5861 GB, free: 2.75 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.038e-05/0.1217, allocations: 7.984 kB / 0.5861 GB, free: 2.742 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.576e-05/0.1217, allocations: 8 kB / 0.5861 GB, free: 2.734 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.623e-05/0.1218, allocations: 15.92 kB / 0.5862 GB, free: 2.719 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.26e-05/0.1218, allocations: 4 kB / 0.5862 GB, free: 2.715 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.324e-05/0.1218, allocations: 11.98 kB / 0.5862 GB, free: 2.703 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.601e-05/0.1219, allocations: 11.98 kB / 0.5862 GB, free: 2.691 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.36e-05/0.1219, allocations: 7.938 kB / 0.5862 GB, free: 2.684 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 9.276e-05/0.122, allocations: 35.89 kB / 0.5862 GB, free: 2.648 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.122, allocations: 4 kB / 0.5862 GB, free: 2.645 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.122, allocations: 0 / 0.5862 GB, free: 2.645 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.308e-06/0.122, allocations: 0 / 0.5862 GB, free: 2.645 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.0003837/0.1224, allocations: 343.7 kB / 0.5866 GB, free: 2.258 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.258e-05/0.1224, allocations: 8.031 kB / 0.5866 GB, free: 2.25 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.968e-05/0.1225, allocations: 38.67 kB / 0.5866 GB, free: 2.203 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.389e-05/0.1225, allocations: 4.938 kB / 0.5866 GB, free: 2.199 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.085e-05/0.1226, allocations: 164.3 kB / 0.5868 GB, free: 2 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.776e-05/0.1226, allocations: 12.31 kB / 0.5868 GB, free: 1.988 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.013e-05/0.1226, allocations: 4.375 kB / 0.5868 GB, free: 1.984 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001617/0.1228, allocations: 58.23 kB / 0.5868 GB, free: 1.922 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.594e-06/0.1228, allocations: 3.938 kB / 0.5868 GB, free: 1.918 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.318e-06/0.1228, allocations: 3.984 kB / 0.5868 GB, free: 1.914 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.577e-06/0.1228, allocations: 0 / 0.5868 GB, free: 1.914 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001715/0.123, allocations: 39.97 kB / 0.5869 GB, free: 1.875 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002984/0.1233, allocations: 272.8 kB / 0.5871 GB, free: 1.559 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002827/0.1236, allocations: 58.53 kB / 0.5872 GB, free: 1.492 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.194e-05/0.1237, allocations: 24.91 kB / 0.5872 GB, free: 1.465 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.372e-05/0.1238, allocations: 81.09 kB / 0.5873 GB, free: 1.367 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.783e-05/0.1238, allocations: 38.56 kB / 0.5873 GB, free: 1.32 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.1239, allocations: 0 / 0.5873 GB, free: 1.32 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003472/0.1242, allocations: 93.58 kB / 0.5874 GB, free: 1.223 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.782e-05/0.1242, allocations: 55.39 kB / 0.5875 GB, free: 1.156 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.405e-05/0.1243, allocations: 97.86 kB / 0.5876 GB, free: 1.051 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.377e-05/0.1243, allocations: 25.7 kB / 0.5876 GB, free: 1.02 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.423e-05/0.1244, allocations: 92.05 kB / 0.5877 GB, free: 0.9258 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.317e-05/0.1244, allocations: 7.844 kB / 0.5877 GB, free: 0.918 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.212e-05/0.1244, allocations: 21.7 kB / 0.5877 GB, free: 0.8906 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 7.422e-05/0.1245, allocations: 310.8 kB / 0.588 GB, free: 0.5781 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.772e-05/0.1246, allocations: 23.97 kB / 0.588 GB, free: 0.5547 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.173e-05/0.1247, allocations: 20.3 kB / 0.5881 GB, free: 0.5352 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001607/0.1248, allocations: 60.77 kB / 0.5881 GB, free: 484 kB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.293e-06/0.1248, allocations: 0 / 0.5881 GB, free: 484 kB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001966/0.1251, allocations: 73.66 kB / 0.5882 GB, free: 404 kB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.109e-05/0.1251, allocations: 4 kB / 0.5882 GB, free: 400 kB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.767e-06/0.1251, allocations: 0 / 0.5882 GB, free: 400 kB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.265e-05/0.1251, allocations: 0 / 0.5882 GB, free: 400 kB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.629e-05/0.1252, allocations: 11.98 kB / 0.5882 GB, free: 388 kB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.108e-06/0.1252, allocations: 0 / 0.5882 GB, free: 388 kB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.46e-05/0.1252, allocations: 11.98 kB / 0.5882 GB, free: 376 kB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.939e-06/0.1253, allocations: 0 / 0.5882 GB, free: 376 kB / 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 (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.543e-05/0.1253, allocations: 117.8 kB / 0.5883 GB, free: 248 kB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.388e-05/0.1254, allocations: 3.938 kB / 0.5883 GB, free: 244 kB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002358/0.1256, allocations: 85.08 kB / 0.5884 GB, free: 152 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.1256, allocations: 0 / 0.5884 GB, free: 152 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.1256, allocations: 4 kB / 0.5884 GB, free: 148 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.063e-06/0.1256, allocations: 0 / 0.5884 GB, free: 148 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001446/0.1258, allocations: 169.6 kB / 0.5886 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.1258, allocations: 0 / 0.5886 GB, free: 15.93 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.205e-05/0.1259, allocations: 11.98 kB / 0.5886 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.1259, allocations: 0 / 0.5886 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.312e-06/0.1259, allocations: 0 / 0.5886 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.1259, allocations: 0 / 0.5886 GB, free: 15.92 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.235e-06/0.1259, allocations: 4 kB / 0.5886 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002329/0.1261, allocations: 183.3 kB / 0.5888 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.945e-05/0.1262, allocations: 77.11 kB / 0.5888 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.166e-05/0.1262, allocations: 0 / 0.5888 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.109e-05/0.1263, allocations: 11.98 kB / 0.5888 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.908e-05/0.1263, allocations: 4 kB / 0.5888 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.601e-06/0.1263, allocations: 3.984 kB / 0.5889 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.989e-05/0.1264, allocations: 83.28 kB / 0.5889 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1264, allocations: 4 kB / 0.5889 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002129/0.1266, allocations: 8 kB / 0.5889 GB, free: 15.51 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.0004706/0.1271, allocations: 0.7049 MB / 0.5896 GB, free: 14.78 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002139/0.1273, allocations: 55.92 kB / 0.5897 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.463e-06/0.1273, allocations: 0 / 0.5897 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.177e-05/0.1274, allocations: 27.97 kB / 0.5897 GB, free: 14.7 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002394/0.1276, allocations: 6.5 kB / 0.5897 GB, free: 14.69 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003766/0.128, allocations: 155 kB / 0.5899 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001687/0.1282, allocations: 0.6806 MB / 0.5905 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.82e-05/0.1282, allocations: 7.984 kB / 0.5905 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.259e-05/0.1283, allocations: 11.44 kB / 0.5905 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of SimCode: time 2.5e-07/0.1283, allocations: 3.938 kB / 0.5906 GB, free: 13.77 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 2.164/2.292, allocations: 1.54 MB / 0.5921 GB, free: 12.3 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.78/15.07, allocations: 11.98 kB / 0.5921 GB, free: 12.29 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)