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.00486/0.004866, allocations: 104.1 kB / 15.74 MB, free: 6.031 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.001084/0.001084, allocations: 194 kB / 16.67 MB, free: 5.953 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.401/1.401, allocations: 222.9 MB / 240.4 MB, free: 4.184 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9637/0.9637, allocations: 135.1 MB / 425.7 MB, free: 12.04 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001369/0.001369, allocations: 63.91 kB / 0.5852 GB, free: 3.836 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4709/0.4722, allocations: 80.91 MB / 0.6642 GB, free: 7.285 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Examples.Factorial): time 0.002789/0.4751, allocations: 1.513 MB / 0.6656 GB, free: 6.102 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.000406/0.4755, allocations: 120.1 kB / 0.6658 GB, free: 6.008 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.754e-05/0.4756, allocations: 0 / 0.6658 GB, free: 6.008 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 3.531e-05/0.4756, allocations: 7.938 kB / 0.6658 GB, free: 6 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 5.65e-05/0.4757, allocations: 9.234 kB / 0.6658 GB, free: 5.992 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002487/0.476, allocations: 21.81 kB / 0.6658 GB, free: 5.977 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 7.978e-05/0.4761, allocations: 32.2 kB / 0.6658 GB, free: 5.957 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 9.643e-05/0.4762, allocations: 5.156 kB / 0.6658 GB, free: 5.957 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.657e-05/0.4762, allocations: 15.67 kB / 0.6658 GB, free: 5.945 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 4.98e-05/0.4763, allocations: 21.38 kB / 0.6659 GB, free: 5.93 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.426e-05/0.4763, allocations: 2.656 kB / 0.6659 GB, free: 5.93 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.207e-05/0.4764, allocations: 10.75 kB / 0.6659 GB, free: 5.926 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 1.319e-05/0.4764, allocations: 13.23 kB / 0.6659 GB, free: 5.914 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 2.888e-05/0.4764, allocations: 10.44 kB / 0.6659 GB, free: 5.906 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.000115/0.4766, allocations: 36.88 kB / 0.6659 GB, free: 5.879 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.4766, allocations: 0 / 0.6659 GB, free: 5.879 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.743e-06/0.4766, allocations: 0 / 0.6659 GB, free: 5.879 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 1.095e-05/0.4766, allocations: 1.25 kB / 0.6659 GB, free: 5.879 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.0004069/0.477, allocations: 337.1 kB / 0.6663 GB, free: 5.516 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.477, allocations: 9.781 kB / 0.6663 GB, free: 5.516 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.459e-05/0.4771, allocations: 35.94 kB / 0.6663 GB, free: 5.473 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.922e-05/0.4771, allocations: 10.44 kB / 0.6663 GB, free: 5.465 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.024e-05/0.4772, allocations: 173.8 kB / 0.6665 GB, free: 5.258 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.708e-05/0.4772, allocations: 9.703 kB / 0.6665 GB, free: 5.25 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.628e-06/0.4772, allocations: 2.031 kB / 0.6665 GB, free: 5.25 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001867/0.4774, allocations: 52.45 kB / 0.6665 GB, free: 5.207 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.285e-06/0.4775, allocations: 3.938 kB / 0.6665 GB, free: 5.203 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.093e-05/0.4775, allocations: 5.438 kB / 0.6665 GB, free: 5.199 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.479e-06/0.4775, allocations: 0 / 0.6665 GB, free: 5.199 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001813/0.4777, allocations: 42.86 kB / 0.6666 GB, free: 5.18 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003014/0.478, allocations: 265.4 kB / 0.6668 GB, free: 4.883 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003055/0.4783, allocations: 58.22 kB / 0.6669 GB, free: 4.84 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.111e-05/0.4784, allocations: 23.72 kB / 0.6669 GB, free: 4.824 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001016/0.4785, allocations: 84.98 kB / 0.667 GB, free: 4.727 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.432e-05/0.4785, allocations: 31.78 kB / 0.667 GB, free: 4.688 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.133e-06/0.4785, allocations: 3.938 kB / 0.667 GB, free: 4.684 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0003693/0.4789, allocations: 100.6 kB / 0.6671 GB, free: 4.613 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.387e-05/0.4789, allocations: 52.62 kB / 0.6672 GB, free: 4.551 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.1e-05/0.479, allocations: 107.8 kB / 0.6673 GB, free: 4.441 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 7.895e-06/0.479, allocations: 25.7 kB / 0.6673 GB, free: 4.41 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 2.724e-05/0.479, allocations: 81.36 kB / 0.6674 GB, free: 4.328 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.595e-05/0.4791, allocations: 9.156 kB / 0.6674 GB, free: 4.32 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.085e-05/0.4791, allocations: 16.58 kB / 0.6674 GB, free: 4.301 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 3.994e-05/0.4791, allocations: 312.2 kB / 0.6677 GB, free: 3.988 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.662e-05/0.4792, allocations: 18.55 kB / 0.6677 GB, free: 3.98 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.915e-05/0.4793, allocations: 27.03 kB / 0.6678 GB, free: 3.965 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001757/0.4795, allocations: 54.09 kB / 0.6678 GB, free: 3.93 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.445e-06/0.4795, allocations: 1.188 kB / 0.6678 GB, free: 3.93 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001972/0.4797, allocations: 67.31 kB / 0.6679 GB, free: 3.883 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.354e-05/0.4797, allocations: 5.25 kB / 0.6679 GB, free: 3.883 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.4797, allocations: 1.281 kB / 0.6679 GB, free: 3.883 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.357e-05/0.4798, allocations: 0 / 0.6679 GB, free: 3.883 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.464e-05/0.4798, allocations: 15.02 kB / 0.6679 GB, free: 3.875 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.771e-06/0.4799, allocations: 1.188 kB / 0.6679 GB, free: 3.875 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.371e-05/0.4799, allocations: 12.27 kB / 0.6679 GB, free: 3.867 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.98e-06/0.4799, allocations: 0 / 0.6679 GB, free: 3.867 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 5.121e-05/0.48, allocations: 114.7 kB / 0.668 GB, free: 3.75 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.515e-05/0.48, allocations: 9.281 kB / 0.668 GB, free: 3.742 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002348/0.4802, allocations: 90.44 kB / 0.6681 GB, free: 3.668 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.083e-06/0.4803, allocations: 0 / 0.6681 GB, free: 3.668 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.4803, allocations: 1.562 kB / 0.6681 GB, free: 3.668 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.665e-06/0.4803, allocations: 0 / 0.6681 GB, free: 3.668 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001126/0.4804, allocations: 168.2 kB / 0.6683 GB, free: 3.461 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.022e-06/0.4804, allocations: 0 / 0.6683 GB, free: 3.461 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.91e-05/0.4805, allocations: 15.2 kB / 0.6683 GB, free: 3.453 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.4805, allocations: 1.094 kB / 0.6683 GB, free: 3.453 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.464e-06/0.4805, allocations: 0 / 0.6683 GB, free: 3.453 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.4805, allocations: 1.5 kB / 0.6683 GB, free: 3.453 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.803e-06/0.4805, allocations: 4 kB / 0.6683 GB, free: 3.449 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002137/0.4807, allocations: 178.2 kB / 0.6685 GB, free: 3.285 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 1.614e-05/0.4807, allocations: 82.2 kB / 0.6685 GB, free: 3.188 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.228e-05/0.4808, allocations: 5.5 kB / 0.6685 GB, free: 3.184 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.909e-05/0.4808, allocations: 6.859 kB / 0.6686 GB, free: 3.18 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.564e-05/0.4809, allocations: 3 kB / 0.6686 GB, free: 3.18 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.719e-06/0.4809, allocations: 5.438 kB / 0.6686 GB, free: 3.176 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 2.126e-05/0.4809, allocations: 86.83 kB / 0.6686 GB, free: 3.094 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1e-07/0.4809, allocations: 0 / 0.6686 GB, free: 3.094 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002165/0.4812, allocations: 6.812 kB / 0.6686 GB, free: 3.094 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.0004083/0.4816, allocations: 0.7138 MB / 0.6693 GB, free: 2.398 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002196/0.4818, allocations: 44.27 kB / 0.6694 GB, free: 2.379 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.4818, allocations: 0 / 0.6694 GB, free: 2.379 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 9.214e-05/0.4819, allocations: 27.81 kB / 0.6694 GB, free: 2.367 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002373/0.4822, allocations: 1.531 kB / 0.6694 GB, free: 2.367 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003975/0.4826, allocations: 155.3 kB / 0.6696 GB, free: 2.199 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.21e-05/0.4827, allocations: 0.678 MB / 0.6702 GB, free: 1.5 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 2.96e-05/0.4827, allocations: 2.719 kB / 0.6702 GB, free: 1.5 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.701e-05/0.4827, allocations: 17.89 kB / 0.6702 GB, free: 1.484 MB / 0.4981 GB Notification: Performance of SimCode: time 2.4e-07/0.4827, allocations: 3.938 kB / 0.6702 GB, free: 1.48 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01882/0.5016, allocations: 1.587 MB / 0.6718 GB, free: 0.5859 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.326/7.828, allocations: 9.5 kB / 0.6718 GB, free: 0.5781 MB / 0.4981 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)