Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Math.Examples.FallingFactorial.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.FallingFactorial,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Examples_FallingFactorial",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.0009675/0.0009675, allocations: 91.22 kB / 15.06 MB, free: 1.098 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.001118/0.001118, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.399/1.399, allocations: 223.2 MB / 240 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9054/0.9054, allocations: 135.3 MB / 426.3 MB, free: 14.37 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003009/0.000301, allocations: 12 kB / 0.5071 GB, free: 5.031 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1431/0.1434, allocations: 82.31 MB / 0.5875 GB, free: 2.895 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.FallingFactorial): time 0.001413/0.1449, allocations: 1.241 MB / 0.5887 GB, free: 1.637 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002863/0.1452, allocations: 124.5 kB / 0.5888 GB, free: 1.512 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.657e-05/0.1452, allocations: 0 / 0.5888 GB, free: 1.512 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.645e-05/0.1452, allocations: 3.984 kB / 0.5888 GB, free: 1.508 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 3.473e-05/0.1453, allocations: 3.938 kB / 0.5888 GB, free: 1.504 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001951/0.1455, allocations: 19.98 kB / 0.5888 GB, free: 1.484 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.665e-05/0.1455, allocations: 35.91 kB / 0.5889 GB, free: 1.449 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.005e-05/0.1456, allocations: 11.98 kB / 0.5889 GB, free: 1.438 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.339e-05/0.1457, allocations: 11.94 kB / 0.5889 GB, free: 1.426 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.63e-05/0.1457, allocations: 19.92 kB / 0.5889 GB, free: 1.406 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.018e-05/0.1457, allocations: 0 / 0.5889 GB, free: 1.406 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.386e-05/0.1458, allocations: 11.98 kB / 0.5889 GB, free: 1.395 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.147e-05/0.1458, allocations: 7.984 kB / 0.5889 GB, free: 1.387 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.527e-05/0.1458, allocations: 33.69 kB / 0.5889 GB, free: 1.348 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 6.698e-05/0.1459, allocations: 23.95 kB / 0.589 GB, free: 1.324 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.1459, allocations: 4 kB / 0.589 GB, free: 1.32 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.1459, allocations: 0 / 0.589 GB, free: 1.32 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.59e-06/0.1459, allocations: 0 / 0.589 GB, free: 1.32 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0003735/0.1463, allocations: 353.6 kB / 0.5893 GB, free: 0.9297 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.196e-05/0.1463, allocations: 11.97 kB / 0.5893 GB, free: 0.918 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.211e-05/0.1464, allocations: 38.56 kB / 0.5894 GB, free: 0.8711 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.189e-05/0.1464, allocations: 3.906 kB / 0.5894 GB, free: 0.8672 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.675e-05/0.1465, allocations: 179 kB / 0.5895 GB, free: 0.6523 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.759e-05/0.1465, allocations: 4 kB / 0.5895 GB, free: 0.6484 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.059e-05/0.1466, allocations: 4 kB / 0.5895 GB, free: 0.6445 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000182/0.1467, allocations: 65.66 kB / 0.5896 GB, free: 0.5742 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.023e-06/0.1468, allocations: 3.938 kB / 0.5896 GB, free: 0.5703 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.855e-06/0.1468, allocations: 3.938 kB / 0.5896 GB, free: 0.5664 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.1468, allocations: 4 kB / 0.5896 GB, free: 0.5625 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001773/0.147, allocations: 59.89 kB / 0.5897 GB, free: 0.5039 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003204/0.1473, allocations: 284.7 kB / 0.5899 GB, free: 180 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000267/0.1476, allocations: 66.53 kB / 0.59 GB, free: 104 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.161e-05/0.1477, allocations: 28.91 kB / 0.59 GB, free: 72 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002351/0.1479, allocations: 401.5 kB / 0.5904 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.838e-05/0.1479, allocations: 38.5 kB / 0.5905 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.148, allocations: 0 / 0.5905 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0003496/0.1483, allocations: 105.6 kB / 0.5906 GB, free: 15.43 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.541e-05/0.1483, allocations: 59.36 kB / 0.5906 GB, free: 15.36 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.802e-05/0.1484, allocations: 105.8 kB / 0.5907 GB, free: 15.25 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.286e-05/0.1484, allocations: 29.7 kB / 0.5907 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 3.578e-05/0.1485, allocations: 88.12 kB / 0.5908 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.302e-05/0.1485, allocations: 3.906 kB / 0.5908 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.288e-06/0.1485, allocations: 0 / 0.5908 GB, free: 15.12 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 8.279e-05/0.1486, allocations: 318.8 kB / 0.5911 GB, free: 14.8 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.303e-05/0.1487, allocations: 31.97 kB / 0.5912 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.548e-05/0.1488, allocations: 19.92 kB / 0.5912 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.01e-05/0.1489, allocations: 23.98 kB / 0.5912 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.1489, allocations: 0 / 0.5912 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002029/0.1491, allocations: 97.55 kB / 0.5913 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.088e-05/0.1491, allocations: 4 kB / 0.5913 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.576e-06/0.1491, allocations: 0 / 0.5913 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.176e-06/0.1491, allocations: 0 / 0.5913 GB, free: 14.62 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.685e-05/0.1492, allocations: 15.98 kB / 0.5913 GB, free: 14.6 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.33e-06/0.1492, allocations: 7.953 kB / 0.5913 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.306e-05/0.1493, allocations: 4 kB / 0.5913 GB, free: 14.59 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.626e-06/0.1493, allocations: 7.984 kB / 0.5913 GB, free: 14.58 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,falFac.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.501e-05/0.1494, allocations: 109.8 kB / 0.5914 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.43e-05/0.1494, allocations: 4 kB / 0.5914 GB, free: 14.46 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002379/0.1496, allocations: 97.81 kB / 0.5915 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.1497, allocations: 48 / 0.5915 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.711e-06/0.1497, allocations: 3.984 kB / 0.5915 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.669e-06/0.1497, allocations: 7.891 kB / 0.5915 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001435/0.1498, allocations: 165.7 kB / 0.5917 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.1498, allocations: 0 / 0.5917 GB, free: 14.13 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.501e-05/0.1499, allocations: 19.98 kB / 0.5917 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.834e-06/0.1499, allocations: 0 / 0.5917 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.382e-06/0.1499, allocations: 0 / 0.5917 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.1499, allocations: 4 kB / 0.5917 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.1499, allocations: 3.938 kB / 0.5917 GB, free: 14.11 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002392/0.1502, allocations: 199.3 kB / 0.5919 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.003e-05/0.1502, allocations: 77.11 kB / 0.592 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.234e-05/0.1502, allocations: 0 / 0.592 GB, free: 13.8 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.34e-05/0.1503, allocations: 11.98 kB / 0.592 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.967e-05/0.1504, allocations: 3.984 kB / 0.592 GB, free: 13.79 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.063e-06/0.1504, allocations: 4 kB / 0.592 GB, free: 13.78 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.61e-05/0.1504, allocations: 87.58 kB / 0.5921 GB, free: 13.7 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.71e-07/0.1504, allocations: 4 kB / 0.5921 GB, free: 13.69 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002237/0.1507, allocations: 8 kB / 0.5921 GB, free: 13.68 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 (rea2Int.y,falFac.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005241/0.1512, allocations: 0.7318 MB / 0.5928 GB, free: 12.93 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002061/0.1514, allocations: 55.95 kB / 0.5929 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.1514, allocations: 0 / 0.5929 GB, free: 12.87 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.616e-05/0.1515, allocations: 35.97 kB / 0.5929 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002439/0.1518, allocations: 80 / 0.5929 GB, free: 12.84 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007854/0.1526, allocations: 458.4 kB / 0.5934 GB, free: 12.34 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001911/0.1528, allocations: 0.6848 MB / 0.594 GB, free: 11.63 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.295e-05/0.1528, allocations: 8 kB / 0.594 GB, free: 11.62 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.488e-05/0.1529, allocations: 15.42 kB / 0.594 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of SimCode: time 2.4e-07/0.1529, allocations: 0 / 0.594 GB, free: 11.61 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01036/0.1632, allocations: 1.393 MB / 0.5954 GB, free: 10.35 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001472/0.1634, allocations: 178.1 kB / 0.5956 GB, free: 10.11 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.614/1.778, allocations: 0 / 0.5956 GB, free: 10.11 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Math_Examples_FallingFactorial_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Math_Examples_FallingFactorial.fmu > IDEAS_dev_IDEAS.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) Environment - environmentSimulation: