Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_dev_IDEAS.Utilities.Math.Functions.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.Functions.Examples.Factorial,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="IDEAS_dev_IDEAS_Utilities_Math_Functions_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.001076/0.001081, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.001178/0.001178, allocations: 195.4 kB / 16.14 MB, free: 6.688 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.235/1.235, allocations: 222.9 MB / 239.8 MB, free: 4.613 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9068/0.9068, allocations: 135.1 MB / 425.1 MB, free: 11.93 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001176/0.001176, allocations: 67.52 kB / 0.5048 GB, free: 5.668 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1448/0.146, allocations: 80.92 MB / 0.5838 GB, free: 4.918 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Utilities.Math.Functions.Examples.Factorial): time 0.001682/0.1477, allocations: 0.6388 MB / 0.5844 GB, free: 4.27 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00024/0.1479, allocations: 51.8 kB / 0.5845 GB, free: 4.219 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.167e-06/0.1479, allocations: 0 / 0.5845 GB, free: 4.219 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 1.279e-05/0.148, allocations: 0 / 0.5845 GB, free: 4.219 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 4.949e-06/0.148, allocations: 0 / 0.5845 GB, free: 4.219 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001676/0.1482, allocations: 4 kB / 0.5845 GB, free: 4.215 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 3.559e-05/0.1482, allocations: 7.938 kB / 0.5845 GB, free: 4.207 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 3.413e-05/0.1482, allocations: 4 kB / 0.5845 GB, free: 4.203 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 1.549e-05/0.1483, allocations: 7.984 kB / 0.5845 GB, free: 4.195 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 1.722e-05/0.1483, allocations: 0 / 0.5845 GB, free: 4.195 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.118e-05/0.1483, allocations: 7.984 kB / 0.5845 GB, free: 4.188 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.014e-05/0.1484, allocations: 8 kB / 0.5845 GB, free: 4.18 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.027e-06/0.1484, allocations: 0 / 0.5845 GB, free: 4.18 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 2.062e-05/0.1484, allocations: 4 kB / 0.5845 GB, free: 4.176 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 7.095e-05/0.1485, allocations: 11.92 kB / 0.5845 GB, free: 4.164 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1485, allocations: 0 / 0.5845 GB, free: 4.164 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.82e-07/0.1485, allocations: 0 / 0.5845 GB, free: 4.164 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.941e-06/0.1485, allocations: 0 / 0.5845 GB, free: 4.164 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002425/0.1487, allocations: 319.6 kB / 0.5849 GB, free: 3.801 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.637e-05/0.1488, allocations: 12.03 kB / 0.5849 GB, free: 3.789 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.601e-05/0.1488, allocations: 30.75 kB / 0.5849 GB, free: 3.75 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.085e-05/0.1488, allocations: 4.875 kB / 0.5849 GB, free: 3.746 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.278e-05/0.1489, allocations: 160.4 kB / 0.5851 GB, free: 3.551 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.816e-06/0.1489, allocations: 384 / 0.5851 GB, free: 3.551 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.231e-06/0.149, allocations: 384 / 0.5851 GB, free: 3.551 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.927e-05/0.149, allocations: 34.25 kB / 0.5851 GB, free: 3.512 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.793e-06/0.149, allocations: 7.938 kB / 0.5851 GB, free: 3.504 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.613e-06/0.1491, allocations: 0 / 0.5851 GB, free: 3.504 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.25e-06/0.1491, allocations: 4 kB / 0.5851 GB, free: 3.5 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.718e-05/0.1491, allocations: 4 kB / 0.5851 GB, free: 3.496 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001109/0.1492, allocations: 145.7 kB / 0.5852 GB, free: 3.305 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 4.421e-05/0.1493, allocations: 30.53 kB / 0.5853 GB, free: 3.266 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.985e-05/0.1493, allocations: 16.91 kB / 0.5853 GB, free: 3.246 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000139/0.1495, allocations: 81.05 kB / 0.5854 GB, free: 3.148 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.803e-05/0.1495, allocations: 38.56 kB / 0.5854 GB, free: 3.102 MB / 494.1 MB Notification: Performance of pre-optimization done (n=2): time 1.072e-06/0.1495, allocations: 0 / 0.5854 GB, free: 3.102 MB / 494.1 MB Notification: Performance of matching and sorting (n=2): time 0.0001165/0.1496, allocations: 45.62 kB / 0.5854 GB, free: 3.051 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.966e-05/0.1496, allocations: 55.34 kB / 0.5855 GB, free: 2.984 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.223e-05/0.1497, allocations: 93.77 kB / 0.5856 GB, free: 2.883 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.014e-05/0.1497, allocations: 25.7 kB / 0.5856 GB, free: 2.852 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.332e-05/0.1497, allocations: 80.14 kB / 0.5857 GB, free: 2.77 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.869e-05/0.1497, allocations: 12.12 kB / 0.5857 GB, free: 2.758 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.7e-05/0.1498, allocations: 13.7 kB / 0.5857 GB, free: 2.738 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.356e-05/0.1499, allocations: 310.8 kB / 0.586 GB, free: 2.426 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.044e-05/0.1499, allocations: 4 kB / 0.586 GB, free: 2.422 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.933e-06/0.1499, allocations: 0 / 0.586 GB, free: 2.422 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.148e-05/0.1499, allocations: 16.86 kB / 0.586 GB, free: 2.402 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.996e-06/0.1499, allocations: 0 / 0.586 GB, free: 2.402 MB / 494.1 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.921e-05/0.15, allocations: 49.69 kB / 0.5861 GB, free: 2.348 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.353e-05/0.15, allocations: 4 kB / 0.5861 GB, free: 2.344 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.15, allocations: 7.875 kB / 0.5861 GB, free: 2.336 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.458e-06/0.15, allocations: 0 / 0.5861 GB, free: 2.336 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.79e-05/0.1501, allocations: 4 kB / 0.5861 GB, free: 2.332 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.518e-06/0.1501, allocations: 0 / 0.5861 GB, free: 2.332 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.507e-05/0.1501, allocations: 4.281 kB / 0.5861 GB, free: 2.328 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.062e-06/0.1501, allocations: 4 kB / 0.5861 GB, free: 2.324 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 (n,fac) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.554e-05/0.1502, allocations: 105.8 kB / 0.5862 GB, free: 2.211 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.014e-06/0.1502, allocations: 4.031 kB / 0.5862 GB, free: 2.207 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.094e-05/0.1503, allocations: 52.69 kB / 0.5863 GB, free: 2.148 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-06/0.1503, allocations: 0 / 0.5863 GB, free: 2.148 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.1503, allocations: 0 / 0.5863 GB, free: 2.148 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.314e-06/0.1503, allocations: 0 / 0.5863 GB, free: 2.148 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.203e-05/0.1504, allocations: 153.7 kB / 0.5864 GB, free: 1.949 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.02e-07/0.1504, allocations: 0 / 0.5864 GB, free: 1.949 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.338e-05/0.1504, allocations: 7.938 kB / 0.5864 GB, free: 1.941 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.373e-06/0.1504, allocations: 0 / 0.5864 GB, free: 1.941 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.983e-06/0.1505, allocations: 3.938 kB / 0.5864 GB, free: 1.938 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.1505, allocations: 4.031 kB / 0.5864 GB, free: 1.934 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.22e-07/0.1505, allocations: 0 / 0.5864 GB, free: 1.934 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.756e-05/0.1505, allocations: 65.12 kB / 0.5865 GB, free: 1.852 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.915e-05/0.1506, allocations: 85.02 kB / 0.5866 GB, free: 1.75 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.047e-05/0.1506, allocations: 3.938 kB / 0.5866 GB, free: 1.746 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.15e-05/0.1506, allocations: 3.984 kB / 0.5866 GB, free: 1.742 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.154e-05/0.1506, allocations: 0 / 0.5866 GB, free: 1.742 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-06/0.1506, allocations: 0 / 0.5866 GB, free: 1.742 MB / 494.1 MB Notification: Performance of sorting global known variables: time 2.197e-05/0.1507, allocations: 87.25 kB / 0.5866 GB, free: 1.656 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1507, allocations: 0 / 0.5866 GB, free: 1.656 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0001889/0.1509, allocations: 4 kB / 0.5867 GB, free: 1.652 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 (fac,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0003343/0.1512, allocations: 0.6007 MB / 0.5872 GB, free: 1.02 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 6.425e-05/0.1513, allocations: 20.02 kB / 0.5873 GB, free: 1 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.1513, allocations: 0 / 0.5873 GB, free: 1 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 1.787e-05/0.1513, allocations: 7.938 kB / 0.5873 GB, free: 0.9922 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00012/0.1514, allocations: 3.938 kB / 0.5873 GB, free: 0.9883 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002509/0.1517, allocations: 116.4 kB / 0.5874 GB, free: 0.8359 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002068/0.1519, allocations: 0.6692 MB / 0.588 GB, free: 144 kB / 494.1 MB Notification: Performance of simCode: alias equations: time 1.538e-05/0.1519, allocations: 0 / 0.588 GB, free: 144 kB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.158e-05/0.152, allocations: 11.56 kB / 0.588 GB, free: 132 kB / 494.1 MB Notification: Performance of SimCode: time 2.4e-07/0.152, allocations: 4 kB / 0.588 GB, free: 128 kB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01015/0.1621, allocations: 0.9305 MB / 0.589 GB, free: 15.29 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001648/0.1623, allocations: 199.2 kB / 0.5891 GB, free: 15.04 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.624/1.787, allocations: 0 / 0.5891 GB, free: 15.04 MB / 0.4981 GB (rm -f IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Utilities_Math_Functions_Examples_Factorial.fmu > IDEAS_dev_IDEAS.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)