Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_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/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.FallingFactorial,fileNamePrefix="IDEAS_IDEAS_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="IDEAS_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.001569/0.001569, allocations: 108 kB / 15.61 MB, free: 152 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.001024/0.001024, allocations: 195 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.208/1.208, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.6861/0.6861, allocations: 132.2 MB / 422.6 MB, free: 1.797 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00162/0.00162, allocations: 64.03 kB / 0.5019 GB, free: 8.691 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1297/0.1314, allocations: 80.2 MB / 0.5802 GB, free: 8.711 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.FallingFactorial): time 0.002135/0.1335, allocations: 1.517 MB / 0.5817 GB, free: 7.172 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003026/0.1339, allocations: 146.1 kB / 0.5818 GB, free: 7.027 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.903e-05/0.1339, allocations: 0 / 0.5818 GB, free: 7.027 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 2.571e-05/0.1339, allocations: 3.984 kB / 0.5818 GB, free: 7.023 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.069e-05/0.134, allocations: 3.938 kB / 0.5818 GB, free: 7.02 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002362/0.1342, allocations: 35.91 kB / 0.5819 GB, free: 6.984 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 5.643e-05/0.1343, allocations: 35.86 kB / 0.5819 GB, free: 6.949 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.828e-05/0.1344, allocations: 15.98 kB / 0.5819 GB, free: 6.934 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.473e-05/0.1344, allocations: 11.98 kB / 0.5819 GB, free: 6.922 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.752e-05/0.1344, allocations: 27.86 kB / 0.5819 GB, free: 6.895 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.239e-05/0.1345, allocations: 4 kB / 0.5819 GB, free: 6.891 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.347e-05/0.1345, allocations: 19.98 kB / 0.582 GB, free: 6.871 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 1.202e-05/0.1345, allocations: 4 kB / 0.582 GB, free: 6.867 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.629e-05/0.1346, allocations: 19.91 kB / 0.582 GB, free: 6.848 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 8.825e-05/0.1347, allocations: 35.89 kB / 0.582 GB, free: 6.812 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.135e-06/0.1347, allocations: 0 / 0.582 GB, free: 6.812 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.232e-06/0.1347, allocations: 0 / 0.582 GB, free: 6.812 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.648e-06/0.1347, allocations: 0 / 0.582 GB, free: 6.812 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.0003874/0.1351, allocations: 367.6 kB / 0.5824 GB, free: 6.402 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.037e-05/0.1351, allocations: 8.031 kB / 0.5824 GB, free: 6.395 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.741e-05/0.1352, allocations: 34.75 kB / 0.5824 GB, free: 6.352 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.465e-05/0.1352, allocations: 8.844 kB / 0.5824 GB, free: 6.344 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 9.288e-05/0.1353, allocations: 164.3 kB / 0.5826 GB, free: 6.145 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.892e-05/0.1353, allocations: 8.375 kB / 0.5826 GB, free: 6.137 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.096e-05/0.1353, allocations: 4.359 kB / 0.5826 GB, free: 6.133 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001676/0.1355, allocations: 70.2 kB / 0.5827 GB, free: 6.059 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.875e-06/0.1355, allocations: 3.938 kB / 0.5827 GB, free: 6.055 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.585e-06/0.1355, allocations: 4 kB / 0.5827 GB, free: 6.051 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.536e-06/0.1355, allocations: 0 / 0.5827 GB, free: 6.051 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001639/0.1357, allocations: 43.95 kB / 0.5827 GB, free: 6.008 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00031/0.136, allocations: 288.6 kB / 0.583 GB, free: 5.676 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002701/0.1363, allocations: 58.55 kB / 0.583 GB, free: 5.609 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.671e-05/0.1364, allocations: 28.89 kB / 0.5831 GB, free: 5.578 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002245/0.1366, allocations: 393.5 kB / 0.5834 GB, free: 5.102 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.543e-05/0.1366, allocations: 30.56 kB / 0.5835 GB, free: 5.062 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.1366, allocations: 4 kB / 0.5835 GB, free: 5.059 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003342/0.137, allocations: 101.6 kB / 0.5836 GB, free: 4.953 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.28e-05/0.137, allocations: 51.41 kB / 0.5836 GB, free: 4.891 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.753e-05/0.1371, allocations: 105.8 kB / 0.5837 GB, free: 4.777 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.932e-05/0.1371, allocations: 29.7 kB / 0.5837 GB, free: 4.742 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.476e-05/0.1371, allocations: 88.05 kB / 0.5838 GB, free: 4.652 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.738e-06/0.1372, allocations: 0 / 0.5838 GB, free: 4.652 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.033e-05/0.1372, allocations: 21.7 kB / 0.5839 GB, free: 4.625 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.53e-05/0.1373, allocations: 322.7 kB / 0.5842 GB, free: 4.301 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.929e-05/0.1374, allocations: 23.97 kB / 0.5842 GB, free: 4.277 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.307e-05/0.1375, allocations: 19.98 kB / 0.5842 GB, free: 4.258 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001511/0.1376, allocations: 48.75 kB / 0.5842 GB, free: 4.207 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.019e-06/0.1376, allocations: 4 kB / 0.5843 GB, free: 4.203 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001866/0.1378, allocations: 77.5 kB / 0.5843 GB, free: 4.121 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.062e-05/0.1378, allocations: 10.19 kB / 0.5843 GB, free: 4.113 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.357e-06/0.1378, allocations: 0 / 0.5843 GB, free: 4.113 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.727e-06/0.1379, allocations: 0 / 0.5843 GB, free: 4.113 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.28e-05/0.1379, allocations: 15.98 kB / 0.5844 GB, free: 4.098 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.747e-06/0.1379, allocations: 0 / 0.5844 GB, free: 4.098 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.78e-05/0.138, allocations: 7.984 kB / 0.5844 GB, free: 4.09 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.648e-06/0.138, allocations: 0 / 0.5844 GB, free: 4.09 MB / 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 (falFac.y,rea2Int.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.178e-05/0.1381, allocations: 114.4 kB / 0.5845 GB, free: 3.969 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.263e-05/0.1381, allocations: 4 kB / 0.5845 GB, free: 3.965 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002252/0.1383, allocations: 89.81 kB / 0.5846 GB, free: 3.871 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.443e-06/0.1384, allocations: 48 / 0.5846 GB, free: 3.871 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.1384, allocations: 3.984 kB / 0.5846 GB, free: 3.867 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.923e-06/0.1384, allocations: 0 / 0.5846 GB, free: 3.867 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001375/0.1385, allocations: 173.6 kB / 0.5847 GB, free: 3.648 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.974e-06/0.1385, allocations: 3.984 kB / 0.5847 GB, free: 3.645 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.06e-05/0.1386, allocations: 20 kB / 0.5847 GB, free: 3.625 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.532e-06/0.1386, allocations: 0 / 0.5847 GB, free: 3.625 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.774e-06/0.1386, allocations: 3.984 kB / 0.5848 GB, free: 3.621 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.1386, allocations: 4 kB / 0.5848 GB, free: 3.617 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.52e-07/0.1386, allocations: 0 / 0.5848 GB, free: 3.617 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002243/0.1389, allocations: 171.4 kB / 0.5849 GB, free: 3.434 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.38e-05/0.1389, allocations: 77.11 kB / 0.585 GB, free: 3.34 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.337e-05/0.1389, allocations: 7.984 kB / 0.585 GB, free: 3.332 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.579e-05/0.139, allocations: 4 kB / 0.585 GB, free: 3.328 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.081e-05/0.139, allocations: 11.98 kB / 0.585 GB, free: 3.316 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.416e-06/0.139, allocations: 0 / 0.585 GB, free: 3.316 MB / 494.1 MB Notification: Performance of sorting global known variables: time 3.42e-05/0.1391, allocations: 87.28 kB / 0.5851 GB, free: 3.23 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1391, allocations: 0 / 0.5851 GB, free: 3.23 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002039/0.1393, allocations: 15.92 kB / 0.5851 GB, free: 3.215 MB / 494.1 MB 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 (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.0004877/0.1398, allocations: 0.7201 MB / 0.5858 GB, free: 2.465 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0001986/0.14, allocations: 39.95 kB / 0.5859 GB, free: 2.426 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.14, allocations: 4 kB / 0.5859 GB, free: 2.422 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 8.409e-05/0.1401, allocations: 23.98 kB / 0.5859 GB, free: 2.398 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002272/0.1403, allocations: 16.47 kB / 0.5859 GB, free: 2.383 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00117/0.1415, allocations: 1.287 MB / 0.5872 GB, free: 1.02 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001999/0.1417, allocations: 0.6846 MB / 0.5878 GB, free: 316 kB / 494.1 MB Notification: Performance of simCode: alias equations: time 2.416e-05/0.1418, allocations: 0 / 0.5878 GB, free: 316 kB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.129e-05/0.1418, allocations: 15.44 kB / 0.5878 GB, free: 300 kB / 494.1 MB Notification: Performance of SimCode: time 2.01e-07/0.1418, allocations: 0 / 0.5878 GB, free: 300 kB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.201/3.343, allocations: 1.648 MB / 0.5894 GB, free: 14.72 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.748/11.09, allocations: 4.719 kB / 0.5895 GB, free: 14.71 MB / 0.4981 GB (rm -f IDEAS_IDEAS.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo IDEAS_IDEAS.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < IDEAS_IDEAS.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/IDEAS_IDEAS.Utilities.Math.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Utilities_Math_Examples_FallingFactorial_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Utilities_Math_Examples_FallingFactorial.fmu > IDEAS_IDEAS.Utilities.Math.Examples.FallingFactorial.pipe 2>&1)