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.007087/0.007087, allocations: 100.1 kB / 15.73 MB, free: 6.008 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.001663/0.001663, allocations: 197.3 kB / 16.68 MB, free: 5.93 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.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.7822/0.7822, allocations: 135.1 MB / 425.7 MB, free: 4.086 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001218/0.001218, allocations: 68.78 kB / 0.5851 GB, free: 21.99 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1417/0.143, allocations: 80.91 MB / 0.6642 GB, free: 6.27 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.002832/0.1458, allocations: 1.514 MB / 0.6656 GB, free: 4.746 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.000388/0.1463, allocations: 124.4 kB / 0.6658 GB, free: 4.621 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.169e-05/0.1463, allocations: 4 kB / 0.6658 GB, free: 4.617 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 3.023e-05/0.1463, allocations: 3.984 kB / 0.6658 GB, free: 4.613 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.104e-05/0.1464, allocations: 7.938 kB / 0.6658 GB, free: 4.605 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002107/0.1466, allocations: 15.98 kB / 0.6658 GB, free: 4.59 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 7.131e-05/0.1467, allocations: 27.92 kB / 0.6658 GB, free: 4.562 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.122e-05/0.1468, allocations: 15.97 kB / 0.6658 GB, free: 4.547 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.997e-05/0.1469, allocations: 12 kB / 0.6658 GB, free: 4.535 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.336e-05/0.1469, allocations: 15.92 kB / 0.6658 GB, free: 4.52 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.291e-05/0.1469, allocations: 4 kB / 0.6659 GB, free: 4.516 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.401e-05/0.147, allocations: 11.98 kB / 0.6659 GB, free: 4.504 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.621e-05/0.147, allocations: 15.94 kB / 0.6659 GB, free: 4.488 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.367e-05/0.147, allocations: 7.938 kB / 0.6659 GB, free: 4.48 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001187/0.1472, allocations: 43.81 kB / 0.6659 GB, free: 4.438 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 3.817e-06/0.1472, allocations: 4 kB / 0.6659 GB, free: 4.434 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.153e-06/0.1472, allocations: 0 / 0.6659 GB, free: 4.434 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.85e-06/0.1472, allocations: 0 / 0.6659 GB, free: 4.434 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.000428/0.1476, allocations: 338.4 kB / 0.6663 GB, free: 4.055 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.152e-05/0.1477, allocations: 9.109 kB / 0.6663 GB, free: 4.047 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.895e-05/0.1477, allocations: 30.75 kB / 0.6663 GB, free: 4.008 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.025e-05/0.1477, allocations: 16.83 kB / 0.6663 GB, free: 3.992 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001071/0.1478, allocations: 160.4 kB / 0.6665 GB, free: 3.797 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.072e-05/0.1479, allocations: 4.375 kB / 0.6665 GB, free: 3.793 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.375e-05/0.1479, allocations: 4.375 kB / 0.6665 GB, free: 3.789 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001752/0.1481, allocations: 54.23 kB / 0.6665 GB, free: 3.73 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.317e-06/0.1481, allocations: 3.938 kB / 0.6665 GB, free: 3.727 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.715e-05/0.1481, allocations: 3.984 kB / 0.6665 GB, free: 3.723 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.507e-06/0.1481, allocations: 0 / 0.6665 GB, free: 3.723 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001768/0.1483, allocations: 47.89 kB / 0.6666 GB, free: 3.676 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003661/0.1487, allocations: 265.8 kB / 0.6668 GB, free: 3.367 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003027/0.149, allocations: 58.59 kB / 0.6669 GB, free: 3.301 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.162e-05/0.1491, allocations: 20.84 kB / 0.6669 GB, free: 3.277 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000115/0.1492, allocations: 89.09 kB / 0.667 GB, free: 3.172 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.106e-05/0.1492, allocations: 34.5 kB / 0.667 GB, free: 3.129 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.1492, allocations: 4 kB / 0.667 GB, free: 3.125 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0003569/0.1496, allocations: 93.55 kB / 0.6671 GB, free: 3.027 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.595e-05/0.1497, allocations: 51.41 kB / 0.6672 GB, free: 2.965 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.347e-05/0.1497, allocations: 101.8 kB / 0.6673 GB, free: 2.855 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.165e-05/0.1497, allocations: 29.7 kB / 0.6673 GB, free: 2.82 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.93e-05/0.1498, allocations: 92 kB / 0.6674 GB, free: 2.727 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.332e-05/0.1498, allocations: 7.906 kB / 0.6674 GB, free: 2.719 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.71e-05/0.1499, allocations: 21.7 kB / 0.6674 GB, free: 2.691 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001037/0.15, allocations: 314.8 kB / 0.6677 GB, free: 2.375 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.716e-05/0.1501, allocations: 23.97 kB / 0.6677 GB, free: 2.352 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.512e-05/0.1501, allocations: 19.92 kB / 0.6677 GB, free: 2.332 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001628/0.1503, allocations: 52.75 kB / 0.6678 GB, free: 2.277 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.1503, allocations: 0 / 0.6678 GB, free: 2.277 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001946/0.1505, allocations: 69.66 kB / 0.6679 GB, free: 2.203 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.1505, allocations: 9.875 kB / 0.6679 GB, free: 2.195 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.218e-06/0.1506, allocations: 0 / 0.6679 GB, free: 2.195 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.165e-05/0.1506, allocations: 0 / 0.6679 GB, free: 2.195 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.199e-05/0.1507, allocations: 15.98 kB / 0.6679 GB, free: 2.18 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.438e-06/0.1507, allocations: 0 / 0.6679 GB, free: 2.18 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.531e-05/0.1507, allocations: 11.98 kB / 0.6679 GB, free: 2.168 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.551e-06/0.1507, allocations: 0 / 0.6679 GB, free: 2.168 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 8.12e-05/0.1508, allocations: 121.7 kB / 0.668 GB, free: 2.039 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.432e-05/0.1509, allocations: 3.906 kB / 0.668 GB, free: 2.035 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002404/0.1511, allocations: 81.66 kB / 0.6681 GB, free: 1.945 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.1511, allocations: 4 kB / 0.6681 GB, free: 1.941 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.1511, allocations: 0 / 0.6681 GB, free: 1.941 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.395e-06/0.1511, allocations: 48 / 0.6681 GB, free: 1.941 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001619/0.1513, allocations: 169.6 kB / 0.6683 GB, free: 1.727 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.1513, allocations: 4 kB / 0.6683 GB, free: 1.723 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.839e-05/0.1514, allocations: 7.984 kB / 0.6683 GB, free: 1.715 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.689e-06/0.1514, allocations: 4 kB / 0.6683 GB, free: 1.711 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.364e-06/0.1514, allocations: 0 / 0.6683 GB, free: 1.711 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.502e-06/0.1514, allocations: 0 / 0.6683 GB, free: 1.711 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.32e-07/0.1514, allocations: 0 / 0.6683 GB, free: 1.711 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002489/0.1517, allocations: 179.4 kB / 0.6685 GB, free: 1.52 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.486e-05/0.1517, allocations: 77.11 kB / 0.6685 GB, free: 1.426 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.157e-05/0.1517, allocations: 0 / 0.6685 GB, free: 1.426 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.077e-05/0.1518, allocations: 11.98 kB / 0.6685 GB, free: 1.414 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.86e-05/0.1519, allocations: 4 kB / 0.6685 GB, free: 1.41 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.024e-06/0.1519, allocations: 3.984 kB / 0.6685 GB, free: 1.406 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.79e-05/0.1519, allocations: 87.28 kB / 0.6686 GB, free: 1.32 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.31e-07/0.1519, allocations: 0 / 0.6686 GB, free: 1.32 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002215/0.1522, allocations: 8 kB / 0.6686 GB, free: 1.312 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.0005862/0.1528, allocations: 0.7174 MB / 0.6693 GB, free: 0.5664 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002176/0.153, allocations: 43.95 kB / 0.6694 GB, free: 0.5234 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.153, allocations: 3.938 kB / 0.6694 GB, free: 0.5195 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.38e-05/0.1531, allocations: 27.97 kB / 0.6694 GB, free: 0.4922 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002803/0.1534, allocations: 0 / 0.6694 GB, free: 0.4922 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004563/0.1538, allocations: 153.6 kB / 0.6696 GB, free: 312 kB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002772/0.1541, allocations: 0.6846 MB / 0.6702 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 2.919e-05/0.1542, allocations: 0 / 0.6702 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.577e-05/0.1542, allocations: 19.42 kB / 0.6702 GB, free: 15.57 MB / 0.5137 GB Notification: Performance of SimCode: time 2.21e-07/0.1542, allocations: 0 / 0.6702 GB, free: 15.57 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01744/0.1717, allocations: 1.568 MB / 0.6718 GB, free: 14.07 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.263/7.434, allocations: 6.625 kB / 0.6718 GB, free: 14.06 MB / 0.5137 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)