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.009594/0.009594, allocations: 101.7 kB / 15.73 MB, free: 5.492 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.001297/0.001297, allocations: 188.4 kB / 16.67 MB, free: 5.422 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.31/1.31, 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.7959/0.7959, allocations: 132.2 MB / 422.7 MB, free: 6.562 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001284/0.001284, allocations: 62.78 kB / 0.5809 GB, free: 24.14 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1424/0.1437, allocations: 80.21 MB / 0.6592 GB, free: 10.84 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.002573/0.1463, allocations: 1.505 MB / 0.6607 GB, free: 9.328 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0003502/0.1467, allocations: 120.5 kB / 0.6608 GB, free: 9.207 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.14e-05/0.1468, allocations: 4 kB / 0.6608 GB, free: 9.203 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 2.675e-05/0.1468, allocations: 7.922 kB / 0.6608 GB, free: 9.195 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.233e-05/0.1468, allocations: 3.938 kB / 0.6608 GB, free: 9.191 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002095/0.1471, allocations: 15.98 kB / 0.6608 GB, free: 9.176 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 7.603e-05/0.1471, allocations: 31.92 kB / 0.6608 GB, free: 9.145 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.501e-05/0.1472, allocations: 15.98 kB / 0.6609 GB, free: 9.129 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.496e-05/0.1473, allocations: 19.91 kB / 0.6609 GB, free: 9.109 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.359e-05/0.1473, allocations: 11.98 kB / 0.6609 GB, free: 9.098 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.292e-05/0.1474, allocations: 4 kB / 0.6609 GB, free: 9.094 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.47e-05/0.1474, allocations: 8 kB / 0.6609 GB, free: 9.086 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.633e-05/0.1474, allocations: 11.92 kB / 0.6609 GB, free: 9.074 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.507e-05/0.1475, allocations: 11.88 kB / 0.6609 GB, free: 9.062 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001142/0.1476, allocations: 43.88 kB / 0.661 GB, free: 9.02 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.1476, allocations: 7.938 kB / 0.661 GB, free: 9.012 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.293e-06/0.1476, allocations: 0 / 0.661 GB, free: 9.012 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.015e-06/0.1476, allocations: 0 / 0.661 GB, free: 9.012 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.0004317/0.1481, allocations: 346.3 kB / 0.6613 GB, free: 8.625 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.535e-05/0.1481, allocations: 8.031 kB / 0.6613 GB, free: 8.617 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.104e-05/0.1481, allocations: 30.75 kB / 0.6613 GB, free: 8.578 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.558e-05/0.1482, allocations: 4.938 kB / 0.6613 GB, free: 8.574 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.728e-05/0.1483, allocations: 164.4 kB / 0.6615 GB, free: 8.375 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.906e-05/0.1483, allocations: 4.375 kB / 0.6615 GB, free: 8.371 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.506e-06/0.1483, allocations: 4.375 kB / 0.6615 GB, free: 8.367 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001763/0.1485, allocations: 62.23 kB / 0.6616 GB, free: 8.301 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.1485, allocations: 3.938 kB / 0.6616 GB, free: 8.297 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.496e-06/0.1485, allocations: 0 / 0.6616 GB, free: 8.297 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.577e-06/0.1485, allocations: 0 / 0.6616 GB, free: 8.297 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001885/0.1487, allocations: 47.89 kB / 0.6616 GB, free: 8.25 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003324/0.1491, allocations: 269.7 kB / 0.6619 GB, free: 7.938 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002986/0.1494, allocations: 58.53 kB / 0.6619 GB, free: 7.871 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.987e-05/0.1495, allocations: 24.91 kB / 0.6619 GB, free: 7.844 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001059/0.1496, allocations: 77.11 kB / 0.662 GB, free: 7.75 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.816e-05/0.1496, allocations: 46.48 kB / 0.6621 GB, free: 7.695 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.202e-06/0.1496, allocations: 0 / 0.6621 GB, free: 7.695 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.000348/0.15, allocations: 89.64 kB / 0.6622 GB, free: 7.602 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.173e-05/0.15, allocations: 51.41 kB / 0.6622 GB, free: 7.539 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.572e-05/0.1501, allocations: 97.84 kB / 0.6623 GB, free: 7.434 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.527e-05/0.1501, allocations: 29.7 kB / 0.6623 GB, free: 7.398 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.883e-05/0.1502, allocations: 88.08 kB / 0.6624 GB, free: 7.309 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.441e-05/0.1502, allocations: 15.83 kB / 0.6624 GB, free: 7.293 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.965e-05/0.1502, allocations: 21.7 kB / 0.6624 GB, free: 7.266 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 8.726e-05/0.1503, allocations: 310.8 kB / 0.6627 GB, free: 6.953 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.598e-05/0.1504, allocations: 19.98 kB / 0.6628 GB, free: 6.934 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.603e-05/0.1505, allocations: 19.97 kB / 0.6628 GB, free: 6.914 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001582/0.1507, allocations: 56.69 kB / 0.6628 GB, free: 6.855 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.1507, allocations: 0 / 0.6628 GB, free: 6.855 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002003/0.1509, allocations: 70.12 kB / 0.6629 GB, free: 6.781 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.406e-05/0.1509, allocations: 8 kB / 0.6629 GB, free: 6.773 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.878e-06/0.1509, allocations: 0 / 0.6629 GB, free: 6.773 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.126e-05/0.1509, allocations: 0 / 0.6629 GB, free: 6.773 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.742e-05/0.151, allocations: 11.98 kB / 0.6629 GB, free: 6.762 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.079e-06/0.151, allocations: 0 / 0.6629 GB, free: 6.762 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.524e-05/0.1511, allocations: 15.89 kB / 0.6629 GB, free: 6.746 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.911e-06/0.1511, allocations: 3.984 kB / 0.6629 GB, free: 6.742 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.626e-05/0.1512, allocations: 126.6 kB / 0.6631 GB, free: 6.609 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.339e-05/0.1512, allocations: 0 / 0.6631 GB, free: 6.609 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002453/0.1514, allocations: 81.14 kB / 0.6631 GB, free: 6.52 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.345e-06/0.1515, allocations: 0 / 0.6631 GB, free: 6.52 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.817e-06/0.1515, allocations: 0 / 0.6631 GB, free: 6.52 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.1515, allocations: 4 kB / 0.6631 GB, free: 6.516 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001525/0.1516, allocations: 169.6 kB / 0.6633 GB, free: 6.301 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.1516, allocations: 0 / 0.6633 GB, free: 6.301 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.924e-05/0.1517, allocations: 7.984 kB / 0.6633 GB, free: 6.293 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.485e-06/0.1517, allocations: 4 kB / 0.6633 GB, free: 6.289 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.744e-06/0.1517, allocations: 0 / 0.6633 GB, free: 6.289 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.1517, allocations: 0 / 0.6633 GB, free: 6.289 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.1517, allocations: 4 kB / 0.6633 GB, free: 6.285 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002329/0.152, allocations: 179.4 kB / 0.6635 GB, free: 6.094 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.101e-05/0.152, allocations: 81.02 kB / 0.6636 GB, free: 5.996 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.122e-05/0.152, allocations: 0 / 0.6636 GB, free: 5.996 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.201e-05/0.1521, allocations: 7.984 kB / 0.6636 GB, free: 5.988 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.291e-05/0.1522, allocations: 8 kB / 0.6636 GB, free: 5.98 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.238e-06/0.1522, allocations: 0 / 0.6636 GB, free: 5.98 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.467e-05/0.1522, allocations: 83.27 kB / 0.6637 GB, free: 5.898 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.362e-06/0.1522, allocations: 0 / 0.6637 GB, free: 5.898 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002254/0.1525, allocations: 19.94 kB / 0.6637 GB, free: 5.879 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.0005091/0.153, allocations: 0.7045 MB / 0.6644 GB, free: 5.145 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002129/0.1532, allocations: 47.95 kB / 0.6644 GB, free: 5.098 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1532, allocations: 0 / 0.6644 GB, free: 5.098 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.023e-05/0.1533, allocations: 27.97 kB / 0.6644 GB, free: 5.07 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002597/0.1536, allocations: 3.125 kB / 0.6644 GB, free: 5.07 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004127/0.154, allocations: 149 kB / 0.6646 GB, free: 4.887 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002033/0.1542, allocations: 0.6807 MB / 0.6652 GB, free: 4.18 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.835e-05/0.1542, allocations: 4 kB / 0.6653 GB, free: 4.176 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.296e-05/0.1543, allocations: 19.42 kB / 0.6653 GB, free: 4.156 MB / 0.4981 GB Notification: Performance of SimCode: time 2.5e-07/0.1543, allocations: 0 / 0.6653 GB, free: 4.156 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0174/0.1717, allocations: 1.564 MB / 0.6668 GB, free: 2.668 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.398/7.57, allocations: 7.453 kB / 0.6668 GB, free: 2.664 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Math_Examples_Factorial.fmu > IDEAS_IDEAS.Utilities.Math.Examples.Factorial.pipe 2>&1)