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.005553/0.005553, allocations: 100.7 kB / 15.73 MB, free: 6.043 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.001189/0.001189, allocations: 196.3 kB / 16.67 MB, free: 5.977 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.357/1.357, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9378/0.9378, allocations: 135.1 MB / 425.7 MB, free: 11.94 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001401/0.001401, allocations: 67.89 kB / 0.5851 GB, free: 3.852 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4322/0.4336, allocations: 80.92 MB / 0.6642 GB, free: 7.305 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.FallingFactorial): time 0.002579/0.4362, allocations: 1.533 MB / 0.6657 GB, free: 6.109 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0003905/0.4366, allocations: 130.5 kB / 0.6658 GB, free: 6.008 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.263e-05/0.4367, allocations: 5.219 kB / 0.6658 GB, free: 6.004 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 4.603e-05/0.4367, allocations: 3.938 kB / 0.6658 GB, free: 6 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 4.599e-05/0.4368, allocations: 5.281 kB / 0.6658 GB, free: 5.996 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003474/0.4371, allocations: 36.3 kB / 0.6658 GB, free: 5.969 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 9.752e-05/0.4372, allocations: 34.45 kB / 0.6659 GB, free: 5.949 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000126/0.4374, allocations: 13.95 kB / 0.6659 GB, free: 5.941 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 3.925e-05/0.4374, allocations: 14.16 kB / 0.6659 GB, free: 5.934 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.223e-05/0.4375, allocations: 28.7 kB / 0.6659 GB, free: 5.91 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.865e-05/0.4375, allocations: 4.031 kB / 0.6659 GB, free: 5.91 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 9.1e-05/0.4376, allocations: 17.27 kB / 0.6659 GB, free: 5.902 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.571e-05/0.4376, allocations: 5.406 kB / 0.6659 GB, free: 5.898 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.935e-05/0.4376, allocations: 19.97 kB / 0.666 GB, free: 5.883 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001404/0.4378, allocations: 43.8 kB / 0.666 GB, free: 5.852 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.379e-06/0.4378, allocations: 0 / 0.666 GB, free: 5.852 MB / 0.4981 GB Notification: Performance of FrontEnd: time 2.334e-06/0.4378, allocations: 0 / 0.666 GB, free: 5.852 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.053e-06/0.4378, allocations: 0 / 0.666 GB, free: 5.852 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.0004715/0.4383, allocations: 356 kB / 0.6663 GB, free: 5.473 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/0.4384, allocations: 13.58 kB / 0.6664 GB, free: 5.469 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.773e-05/0.4384, allocations: 32.12 kB / 0.6664 GB, free: 5.43 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.972e-05/0.4384, allocations: 2.438 kB / 0.6664 GB, free: 5.43 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001052/0.4385, allocations: 170.9 kB / 0.6666 GB, free: 5.227 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.301e-05/0.4386, allocations: 5.562 kB / 0.6666 GB, free: 5.223 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.689e-05/0.4386, allocations: 6.469 kB / 0.6666 GB, free: 5.219 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001977/0.4388, allocations: 67.06 kB / 0.6666 GB, free: 5.164 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.3e-05/0.4388, allocations: 9.047 kB / 0.6666 GB, free: 5.156 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.103e-05/0.4388, allocations: 4 kB / 0.6666 GB, free: 5.152 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.182e-06/0.4388, allocations: 1.562 kB / 0.6666 GB, free: 5.152 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001823/0.439, allocations: 44.17 kB / 0.6667 GB, free: 5.133 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003395/0.4394, allocations: 281.9 kB / 0.667 GB, free: 4.824 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002981/0.4397, allocations: 63.38 kB / 0.667 GB, free: 4.777 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.769e-05/0.4398, allocations: 27.86 kB / 0.667 GB, free: 4.758 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002099/0.44, allocations: 397.1 kB / 0.6674 GB, free: 4.285 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.488e-05/0.44, allocations: 30.56 kB / 0.6674 GB, free: 4.246 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.44, allocations: 1.312 kB / 0.6674 GB, free: 4.246 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0003632/0.4404, allocations: 101.3 kB / 0.6675 GB, free: 4.176 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.966e-05/0.4404, allocations: 56.91 kB / 0.6676 GB, free: 4.109 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.452e-05/0.4405, allocations: 107.5 kB / 0.6677 GB, free: 4.004 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.003e-05/0.4405, allocations: 25.7 kB / 0.6677 GB, free: 3.973 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 4.246e-05/0.4405, allocations: 85.7 kB / 0.6678 GB, free: 3.887 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.737e-05/0.4406, allocations: 5.312 kB / 0.6678 GB, free: 3.883 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.495e-05/0.4406, allocations: 21.8 kB / 0.6678 GB, free: 3.859 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 5.868e-05/0.4407, allocations: 315.9 kB / 0.6681 GB, free: 3.543 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.382e-05/0.4408, allocations: 22.67 kB / 0.6682 GB, free: 3.531 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.553e-05/0.4409, allocations: 23.16 kB / 0.6682 GB, free: 3.52 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001528/0.441, allocations: 38.45 kB / 0.6682 GB, free: 3.5 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.537e-06/0.441, allocations: 0 / 0.6682 GB, free: 3.5 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001953/0.4412, allocations: 81.64 kB / 0.6683 GB, free: 3.441 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.4413, allocations: 9.094 kB / 0.6683 GB, free: 3.438 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.075e-06/0.4413, allocations: 4 kB / 0.6683 GB, free: 3.434 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.112e-05/0.4413, allocations: 1.062 kB / 0.6683 GB, free: 3.434 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.884e-05/0.4414, allocations: 10.64 kB / 0.6683 GB, free: 3.43 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.4414, allocations: 1.125 kB / 0.6683 GB, free: 3.43 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.677e-05/0.4414, allocations: 19.7 kB / 0.6683 GB, free: 3.414 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.315e-06/0.4415, allocations: 1.219 kB / 0.6683 GB, free: 3.414 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.141e-05/0.4415, allocations: 112.7 kB / 0.6684 GB, free: 3.297 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.397e-05/0.4416, allocations: 5.281 kB / 0.6684 GB, free: 3.293 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000253/0.4418, allocations: 88.08 kB / 0.6685 GB, free: 3.223 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.4418, allocations: 4.312 kB / 0.6685 GB, free: 3.219 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.4418, allocations: 1.625 kB / 0.6685 GB, free: 3.219 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.286e-06/0.4419, allocations: 0 / 0.6685 GB, free: 3.219 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001265/0.442, allocations: 165.2 kB / 0.6687 GB, free: 3.016 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.442, allocations: 0 / 0.6687 GB, free: 3.016 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.953e-05/0.4421, allocations: 15.31 kB / 0.6687 GB, free: 3.008 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.254e-06/0.4421, allocations: 5.375 kB / 0.6687 GB, free: 3.004 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.002e-05/0.4421, allocations: 7.938 kB / 0.6687 GB, free: 2.996 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.014e-06/0.4421, allocations: 1.25 kB / 0.6687 GB, free: 2.996 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.4421, allocations: 0 / 0.6687 GB, free: 2.996 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002364/0.4423, allocations: 175.7 kB / 0.6689 GB, free: 2.836 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 2.679e-05/0.4424, allocations: 82.3 kB / 0.669 GB, free: 2.738 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.474e-05/0.4424, allocations: 0 / 0.669 GB, free: 2.738 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.655e-05/0.4425, allocations: 12.8 kB / 0.669 GB, free: 2.73 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.518e-05/0.4426, allocations: 10.89 kB / 0.669 GB, free: 2.723 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.118e-06/0.4426, allocations: 0 / 0.669 GB, free: 2.723 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 3.556e-05/0.4426, allocations: 90.05 kB / 0.6691 GB, free: 2.641 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.4426, allocations: 0 / 0.6691 GB, free: 2.641 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002247/0.4428, allocations: 8.969 kB / 0.6691 GB, free: 2.641 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.0004841/0.4433, allocations: 0.7111 MB / 0.6698 GB, free: 1.953 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002182/0.4436, allocations: 49.69 kB / 0.6698 GB, free: 1.93 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.4436, allocations: 0 / 0.6698 GB, free: 1.93 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.401e-05/0.4437, allocations: 23.39 kB / 0.6699 GB, free: 1.922 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003031/0.444, allocations: 11.06 kB / 0.6699 GB, free: 1.914 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001152/0.4451, allocations: 1.284 MB / 0.6711 GB, free: 0.668 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001316/0.4453, allocations: 0.6836 MB / 0.6718 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 2.955e-05/0.4453, allocations: 6.844 kB / 0.6718 GB, free: 15.96 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.174e-05/0.4454, allocations: 17.86 kB / 0.6718 GB, free: 15.95 MB / 0.5137 GB Notification: Performance of SimCode: time 2.3e-07/0.4454, allocations: 1.094 kB / 0.6718 GB, free: 15.95 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01763/0.463, allocations: 1.693 MB / 0.6735 GB, free: 15 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.369/7.832, allocations: 1.656 kB / 0.6735 GB, free: 15 MB / 0.5137 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/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)