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.008669/0.008669, allocations: 98.89 kB / 15.73 MB, free: 6.031 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.001845/0.001845, allocations: 196.5 kB / 16.67 MB, free: 5.953 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.331/1.331, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.801/0.801, allocations: 132.2 MB / 422.7 MB, free: 6.531 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001283/0.001283, allocations: 68.39 kB / 0.5809 GB, free: 23.9 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1465/0.1478, allocations: 80.19 MB / 0.6592 GB, free: 10.75 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.002459/0.1503, allocations: 1.509 MB / 0.6607 GB, free: 9.227 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0003259/0.1506, allocations: 124.4 kB / 0.6608 GB, free: 9.102 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.796e-05/0.1507, allocations: 0 / 0.6608 GB, free: 9.102 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.643e-05/0.1507, allocations: 11.92 kB / 0.6608 GB, free: 9.09 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.039e-05/0.1508, allocations: 4 kB / 0.6608 GB, free: 9.086 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002009/0.151, allocations: 19.92 kB / 0.6608 GB, free: 9.066 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 7.54e-05/0.1511, allocations: 35.91 kB / 0.6609 GB, free: 9.031 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.333e-05/0.1511, allocations: 8 kB / 0.6609 GB, free: 9.023 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.494e-05/0.1512, allocations: 19.92 kB / 0.6609 GB, free: 9.004 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.299e-05/0.1512, allocations: 11.98 kB / 0.6609 GB, free: 8.992 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.164e-05/0.1513, allocations: 0 / 0.6609 GB, free: 8.992 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.569e-05/0.1513, allocations: 8 kB / 0.6609 GB, free: 8.984 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.603e-05/0.1513, allocations: 19.91 kB / 0.6609 GB, free: 8.965 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.006e-05/0.1514, allocations: 11.94 kB / 0.6609 GB, free: 8.953 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001265/0.1515, allocations: 36.11 kB / 0.661 GB, free: 8.918 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.1515, allocations: 0 / 0.661 GB, free: 8.918 MB / 0.4981 GB Notification: Performance of FrontEnd: time 3.798e-06/0.1515, allocations: 4 kB / 0.661 GB, free: 8.914 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 5.25e-06/0.1515, allocations: 0 / 0.661 GB, free: 8.914 MB / 0.4981 GB 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.0004391/0.152, allocations: 339.5 kB / 0.6613 GB, free: 8.531 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.491e-05/0.152, allocations: 8.031 kB / 0.6613 GB, free: 8.523 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.251e-05/0.1521, allocations: 34.75 kB / 0.6613 GB, free: 8.48 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.93e-05/0.1521, allocations: 12.94 kB / 0.6613 GB, free: 8.469 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001167/0.1522, allocations: 176.2 kB / 0.6615 GB, free: 8.258 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.053e-05/0.1523, allocations: 384 / 0.6615 GB, free: 8.258 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.223e-05/0.1523, allocations: 4.375 kB / 0.6615 GB, free: 8.254 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001941/0.1525, allocations: 54.23 kB / 0.6616 GB, free: 8.195 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.1525, allocations: 3.938 kB / 0.6616 GB, free: 8.191 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.316e-06/0.1525, allocations: 4 kB / 0.6616 GB, free: 8.188 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.108e-06/0.1525, allocations: 0 / 0.6616 GB, free: 8.188 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001889/0.1527, allocations: 43.95 kB / 0.6616 GB, free: 8.145 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003461/0.1531, allocations: 268.9 kB / 0.6619 GB, free: 7.832 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003158/0.1534, allocations: 58.53 kB / 0.6619 GB, free: 7.766 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001029/0.1535, allocations: 24.84 kB / 0.662 GB, free: 7.738 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001078/0.1536, allocations: 85.11 kB / 0.662 GB, free: 7.637 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.27e-05/0.1537, allocations: 34.55 kB / 0.6621 GB, free: 7.594 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.1537, allocations: 0 / 0.6621 GB, free: 7.594 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0003811/0.154, allocations: 93.52 kB / 0.6622 GB, free: 7.496 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.503e-05/0.1541, allocations: 55.41 kB / 0.6622 GB, free: 7.43 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.032e-05/0.1542, allocations: 101.8 kB / 0.6623 GB, free: 7.32 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.446e-05/0.1542, allocations: 29.7 kB / 0.6623 GB, free: 7.285 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.627e-05/0.1543, allocations: 88.09 kB / 0.6624 GB, free: 7.195 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.807e-05/0.1543, allocations: 7.953 kB / 0.6624 GB, free: 7.188 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.564e-05/0.1543, allocations: 25.64 kB / 0.6624 GB, free: 7.156 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 8.812e-05/0.1544, allocations: 310.8 kB / 0.6627 GB, free: 6.844 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.457e-05/0.1545, allocations: 15.98 kB / 0.6628 GB, free: 6.828 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.199e-05/0.1546, allocations: 19.97 kB / 0.6628 GB, free: 6.809 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001746/0.1548, allocations: 57.22 kB / 0.6628 GB, free: 6.75 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.1548, allocations: 0 / 0.6628 GB, free: 6.75 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002155/0.155, allocations: 77.58 kB / 0.6629 GB, free: 6.668 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.574e-05/0.155, allocations: 9.719 kB / 0.6629 GB, free: 6.66 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.155, allocations: 0 / 0.6629 GB, free: 6.66 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.111e-05/0.1551, allocations: 0 / 0.6629 GB, free: 6.66 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.589e-05/0.1551, allocations: 15.98 kB / 0.6629 GB, free: 6.645 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.258e-06/0.1552, allocations: 0 / 0.6629 GB, free: 6.645 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.813e-05/0.1552, allocations: 7.984 kB / 0.6629 GB, free: 6.637 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.28e-06/0.1552, allocations: 0 / 0.6629 GB, free: 6.637 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 7.549e-05/0.1553, allocations: 118.7 kB / 0.6631 GB, free: 6.512 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.534e-05/0.1553, allocations: 0 / 0.6631 GB, free: 6.512 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000259/0.1556, allocations: 81.08 kB / 0.6631 GB, free: 6.422 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.96e-06/0.1556, allocations: 8 kB / 0.6631 GB, free: 6.414 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.497e-06/0.1556, allocations: 0 / 0.6631 GB, free: 6.414 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.135e-06/0.1556, allocations: 0 / 0.6631 GB, free: 6.414 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001805/0.1558, allocations: 169.5 kB / 0.6633 GB, free: 6.199 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.42e-07/0.1558, allocations: 0 / 0.6633 GB, free: 6.199 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.749e-05/0.1559, allocations: 15.98 kB / 0.6633 GB, free: 6.184 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.1559, allocations: 0 / 0.6633 GB, free: 6.184 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.938e-06/0.1559, allocations: 8 kB / 0.6633 GB, free: 6.176 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.293e-06/0.1559, allocations: 0 / 0.6633 GB, free: 6.176 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.156, allocations: 0 / 0.6633 GB, free: 6.176 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002611/0.1562, allocations: 175.4 kB / 0.6635 GB, free: 5.988 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.216e-05/0.1563, allocations: 77.11 kB / 0.6636 GB, free: 5.895 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.319e-05/0.1563, allocations: 0 / 0.6636 GB, free: 5.895 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.744e-05/0.1564, allocations: 7.984 kB / 0.6636 GB, free: 5.887 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.423e-05/0.1564, allocations: 11.94 kB / 0.6636 GB, free: 5.875 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.877e-06/0.1564, allocations: 0 / 0.6636 GB, free: 5.875 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.722e-05/0.1565, allocations: 87.27 kB / 0.6637 GB, free: 5.789 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1565, allocations: 0 / 0.6637 GB, free: 5.789 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.00023/0.1567, allocations: 11.94 kB / 0.6637 GB, free: 5.777 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.0005322/0.1573, allocations: 0.7123 MB / 0.6644 GB, free: 5.035 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002305/0.1575, allocations: 51.89 kB / 0.6644 GB, free: 4.984 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.1575, allocations: 0 / 0.6644 GB, free: 4.984 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001019/0.1576, allocations: 28.39 kB / 0.6644 GB, free: 4.957 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002767/0.1579, allocations: 1.969 kB / 0.6645 GB, free: 4.957 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004363/0.1583, allocations: 135.1 kB / 0.6646 GB, free: 4.785 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002157/0.1586, allocations: 0.6846 MB / 0.6652 GB, free: 4.074 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.913e-05/0.1586, allocations: 0 / 0.6652 GB, free: 4.074 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.959e-05/0.1587, allocations: 15.42 kB / 0.6653 GB, free: 4.059 MB / 0.4981 GB Notification: Performance of SimCode: time 2.31e-07/0.1587, allocations: 0 / 0.6653 GB, free: 4.059 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01632/0.175, allocations: 1.572 MB / 0.6668 GB, free: 2.566 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.527/7.702, allocations: 4 kB / 0.6668 GB, free: 2.562 MB / 0.4981 GB (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 & python3 -m fmpy simulate --output-file IDEAS_IDEAS.Utilities.Math.Examples.Factorial_res.csv --start-time 0 --stop-time 13 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0052 IDEAS_IDEAS_Utilities_Math_Examples_Factorial.fmu > IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe 2>&1)