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.005138/0.005138, 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.001094/0.001094, allocations: 193.8 kB / 16.67 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.338/1.338, allocations: 222.9 MB / 240.4 MB, free: 15.11 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7737/0.7737, allocations: 132.2 MB / 422.7 MB, free: 6.605 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 63.75 kB / 0.5809 GB, free: 24.18 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1398/0.141, allocations: 80.22 MB / 0.6592 GB, free: 10.84 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.FallingFactorial): time 0.002713/0.1438, allocations: 1.528 MB / 0.6607 GB, free: 9.305 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0003537/0.1441, allocations: 140.3 kB / 0.6608 GB, free: 9.164 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.469e-05/0.1442, allocations: 0 / 0.6608 GB, free: 9.164 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 3.028e-05/0.1442, allocations: 3.938 kB / 0.6608 GB, free: 9.16 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 3.781e-05/0.1443, allocations: 3.938 kB / 0.6608 GB, free: 9.156 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.00026/0.1445, allocations: 31.95 kB / 0.6609 GB, free: 9.125 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 6.667e-05/0.1446, allocations: 31.92 kB / 0.6609 GB, free: 9.094 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 8.718e-05/0.1447, allocations: 15.94 kB / 0.6609 GB, free: 9.078 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.359e-05/0.1448, allocations: 19.92 kB / 0.6609 GB, free: 9.059 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.162e-05/0.1448, allocations: 23.91 kB / 0.6609 GB, free: 9.035 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.292e-05/0.1448, allocations: 4 kB / 0.661 GB, free: 9.031 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.861e-05/0.1449, allocations: 15.98 kB / 0.661 GB, free: 9.016 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.749e-05/0.1449, allocations: 11.98 kB / 0.661 GB, free: 9.004 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.797e-05/0.145, allocations: 15.88 kB / 0.661 GB, free: 8.988 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.000145/0.1451, allocations: 51.8 kB / 0.661 GB, free: 8.938 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.1451, allocations: 0 / 0.661 GB, free: 8.938 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.333e-06/0.1451, allocations: 0 / 0.661 GB, free: 8.938 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.889e-06/0.1451, allocations: 4 kB / 0.661 GB, free: 8.934 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004561/0.1456, allocations: 346.3 kB / 0.6614 GB, free: 8.547 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.102e-05/0.1456, allocations: 12.03 kB / 0.6614 GB, free: 8.535 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.707e-05/0.1457, allocations: 30.75 kB / 0.6614 GB, free: 8.496 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.927e-05/0.1457, allocations: 4.938 kB / 0.6614 GB, free: 8.492 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001204/0.1458, allocations: 173.1 kB / 0.6616 GB, free: 8.285 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.221e-05/0.1459, allocations: 384 / 0.6616 GB, free: 8.285 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.112e-05/0.1459, allocations: 4.375 kB / 0.6616 GB, free: 8.281 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002001/0.1461, allocations: 66.22 kB / 0.6617 GB, free: 8.211 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.868e-06/0.1461, allocations: 3.938 kB / 0.6617 GB, free: 8.207 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.127e-06/0.1461, allocations: 0 / 0.6617 GB, free: 8.207 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.192e-06/0.1461, allocations: 4 kB / 0.6617 GB, free: 8.203 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001749/0.1463, allocations: 47.89 kB / 0.6617 GB, free: 8.156 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003583/0.1467, allocations: 276.8 kB / 0.662 GB, free: 7.836 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002967/0.147, allocations: 70.45 kB / 0.662 GB, free: 7.758 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.988e-05/0.1471, allocations: 28.84 kB / 0.6621 GB, free: 7.727 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002532/0.1474, allocations: 401.5 kB / 0.6625 GB, free: 7.242 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.794e-05/0.1474, allocations: 30.56 kB / 0.6625 GB, free: 7.203 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.1474, allocations: 0 / 0.6625 GB, free: 7.203 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0003842/0.1478, allocations: 97.55 kB / 0.6626 GB, free: 7.102 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.416e-05/0.1478, allocations: 55.41 kB / 0.6626 GB, free: 7.035 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.164e-05/0.1479, allocations: 105.8 kB / 0.6627 GB, free: 6.922 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.546e-05/0.1479, allocations: 29.7 kB / 0.6628 GB, free: 6.887 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.769e-05/0.148, allocations: 88.12 kB / 0.6628 GB, free: 6.797 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.4e-05/0.148, allocations: 3.906 kB / 0.6628 GB, free: 6.793 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.618e-05/0.148, allocations: 25.66 kB / 0.6629 GB, free: 6.762 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.784e-05/0.1481, allocations: 318.8 kB / 0.6632 GB, free: 6.441 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.428e-05/0.1482, allocations: 19.98 kB / 0.6632 GB, free: 6.422 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.467e-05/0.1483, allocations: 19.98 kB / 0.6632 GB, free: 6.402 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001516/0.1485, allocations: 44.81 kB / 0.6633 GB, free: 6.355 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.1485, allocations: 0 / 0.6633 GB, free: 6.355 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001982/0.1487, allocations: 81.56 kB / 0.6633 GB, free: 6.27 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.563e-05/0.1487, allocations: 11.92 kB / 0.6633 GB, free: 6.258 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.1487, allocations: 0 / 0.6633 GB, free: 6.258 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.225e-05/0.1487, allocations: 0 / 0.6633 GB, free: 6.258 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.708e-05/0.1488, allocations: 15.92 kB / 0.6634 GB, free: 6.242 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.32e-06/0.1488, allocations: 320 / 0.6634 GB, free: 6.242 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.174e-05/0.1489, allocations: 4 kB / 0.6634 GB, free: 6.238 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.402e-06/0.1489, allocations: 4 kB / 0.6634 GB, free: 6.234 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 (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.358e-05/0.149, allocations: 114.7 kB / 0.6635 GB, free: 6.113 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.755e-05/0.149, allocations: 7.984 kB / 0.6635 GB, free: 6.105 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002687/0.1493, allocations: 85.55 kB / 0.6636 GB, free: 6.004 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.1493, allocations: 4 kB / 0.6636 GB, free: 6 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.486e-06/0.1493, allocations: 0 / 0.6636 GB, free: 6 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.1493, allocations: 0 / 0.6636 GB, free: 6 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001555/0.1495, allocations: 169.6 kB / 0.6637 GB, free: 5.785 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.1495, allocations: 4 kB / 0.6637 GB, free: 5.781 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.209e-05/0.1496, allocations: 11.98 kB / 0.6637 GB, free: 5.77 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.24e-06/0.1496, allocations: 0 / 0.6637 GB, free: 5.77 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.183e-06/0.1496, allocations: 7.875 kB / 0.6638 GB, free: 5.762 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.1496, allocations: 0 / 0.6638 GB, free: 5.762 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.92e-07/0.1496, allocations: 0 / 0.6638 GB, free: 5.762 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002425/0.1498, allocations: 183.7 kB / 0.6639 GB, free: 5.566 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.678e-05/0.1499, allocations: 85.05 kB / 0.664 GB, free: 5.465 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.351e-05/0.1499, allocations: 0 / 0.664 GB, free: 5.465 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.142e-05/0.15, allocations: 7.984 kB / 0.664 GB, free: 5.457 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.665e-05/0.15, allocations: 4 kB / 0.664 GB, free: 5.453 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.663e-06/0.1501, allocations: 4 kB / 0.664 GB, free: 5.449 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 4.588e-05/0.1501, allocations: 91.25 kB / 0.6641 GB, free: 5.359 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.1501, allocations: 0 / 0.6641 GB, free: 5.359 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002265/0.1503, allocations: 12 kB / 0.6641 GB, free: 5.348 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 (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.0005443/0.1509, allocations: 0.7201 MB / 0.6648 GB, free: 4.602 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002129/0.1511, allocations: 43.95 kB / 0.6649 GB, free: 4.559 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.714e-06/0.1511, allocations: 4 kB / 0.6649 GB, free: 4.555 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.304e-05/0.1512, allocations: 27.91 kB / 0.6649 GB, free: 4.527 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002789/0.1515, allocations: 4 kB / 0.6649 GB, free: 4.523 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001291/0.1528, allocations: 1.284 MB / 0.6662 GB, free: 3.16 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000253/0.1531, allocations: 0.6845 MB / 0.6668 GB, free: 2.449 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 3.068e-05/0.1531, allocations: 8 kB / 0.6668 GB, free: 2.441 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.937e-05/0.1532, allocations: 15.44 kB / 0.6668 GB, free: 2.426 MB / 0.4981 GB Notification: Performance of SimCode: time 2.2e-07/0.1532, allocations: 0 / 0.6668 GB, free: 2.426 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01676/0.1699, allocations: 1.685 MB / 0.6685 GB, free: 0.8281 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.337/7.507, allocations: 4 kB / 0.6685 GB, free: 0.8242 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)