Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.conf.json Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_7_0_0_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.159/2.159, allocations: 251 MB / 265.9 MB, free: 11.68 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001643/0.001643, allocations: 188.4 kB / 325.5 MB, free: 2.898 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.49/2.49, allocations: 205.4 MB / 0.5764 GB, free: 21.18 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001159/0.001159, allocations: 102.4 kB / 0.6809 GB, free: 14.08 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0006492/0.0006496, allocations: 16.41 kB / 0.795 GB, free: 135.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2205/0.2212, allocations: 106.3 MB / 0.8988 GB, free: 65.97 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2231/0.4444, allocations: 130.8 MB / 1.027 GB, free: 14.96 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003222/0.4448, allocations: 75.95 kB / 1.027 GB, free: 14.89 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.001532/0.4463, allocations: 0.5239 MB / 1.027 GB, free: 14.36 MB / 0.6823 GB Notification: Performance of FrontEnd: time 2.665e-06/0.4464, allocations: 0 / 1.027 GB, free: 14.36 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 5.29e-06/0.4464, allocations: 0 / 1.027 GB, free: 14.36 MB / 0.6823 GB 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.0002965/0.4467, allocations: 311.4 kB / 1.027 GB, free: 14.01 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 5.004e-05/0.4467, allocations: 16.03 kB / 1.027 GB, free: 14 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.167e-05/0.4468, allocations: 30.56 kB / 1.028 GB, free: 13.96 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.203e-05/0.4468, allocations: 0 / 1.028 GB, free: 13.96 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001148/0.447, allocations: 167 kB / 1.028 GB, free: 13.75 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.306e-05/0.447, allocations: 0 / 1.028 GB, free: 13.75 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.265e-05/0.447, allocations: 7.938 kB / 1.028 GB, free: 13.75 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001062/0.4471, allocations: 37.64 kB / 1.028 GB, free: 13.7 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.298e-06/0.4471, allocations: 3.938 kB / 1.028 GB, free: 13.7 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.119e-05/0.4472, allocations: 4 kB / 1.028 GB, free: 13.7 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.4472, allocations: 0 / 1.028 GB, free: 13.7 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.248e-05/0.4472, allocations: 7.984 kB / 1.028 GB, free: 13.69 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001745/0.4474, allocations: 157.5 kB / 1.028 GB, free: 13.48 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 5.643e-05/0.4475, allocations: 18.61 kB / 1.028 GB, free: 13.46 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001681/0.4477, allocations: 85.16 kB / 1.028 GB, free: 13.36 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.897e-05/0.4477, allocations: 30.56 kB / 1.028 GB, free: 13.32 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=2): time 1.502e-06/0.4477, allocations: 0 / 1.028 GB, free: 13.32 MB / 0.6823 GB Notification: Performance of matching and sorting (n=2): time 0.0001745/0.4479, allocations: 53.61 kB / 1.028 GB, free: 13.26 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.242e-05/0.448, allocations: 55.41 kB / 1.028 GB, free: 13.19 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.409e-05/0.448, allocations: 85 kB / 1.028 GB, free: 13.1 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.778e-05/0.448, allocations: 25.7 kB / 1.028 GB, free: 13.07 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 3.158e-05/0.4481, allocations: 80.14 kB / 1.028 GB, free: 12.99 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.189e-05/0.4481, allocations: 4 kB / 1.028 GB, free: 12.98 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.737e-06/0.4481, allocations: 0 / 1.028 GB, free: 12.98 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001288/0.4483, allocations: 310.8 kB / 1.029 GB, free: 12.67 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.876e-05/0.4483, allocations: 8.125 kB / 1.029 GB, free: 12.66 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.013e-05/0.4483, allocations: 0 / 1.029 GB, free: 12.66 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.955e-05/0.4483, allocations: 7.953 kB / 1.029 GB, free: 12.66 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.364e-06/0.4484, allocations: 0 / 1.029 GB, free: 12.66 MB / 0.6823 GB Notification: Performance of matching and sorting (n=2) (initialization): time 8.524e-05/0.4485, allocations: 45.62 kB / 1.029 GB, free: 12.61 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.947e-05/0.4485, allocations: 4 kB / 1.029 GB, free: 12.6 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.4485, allocations: 0 / 1.029 GB, free: 12.6 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.395e-05/0.4485, allocations: 0 / 1.029 GB, free: 12.6 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.14e-05/0.4486, allocations: 4 kB / 1.029 GB, free: 12.6 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.4486, allocations: 0 / 1.029 GB, free: 12.6 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.335e-05/0.4487, allocations: 8.031 kB / 1.029 GB, free: 12.59 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.845e-06/0.4487, allocations: 4 kB / 1.029 GB, free: 12.59 MB / 0.6823 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 (fac,n) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.773e-05/0.4488, allocations: 113.8 kB / 1.029 GB, free: 12.46 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.416e-06/0.4488, allocations: 0 / 1.029 GB, free: 12.46 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001203/0.4489, allocations: 48.67 kB / 1.029 GB, free: 12.41 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.4489, allocations: 3.984 kB / 1.029 GB, free: 12.41 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.4489, allocations: 0 / 1.029 GB, free: 12.41 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.449, allocations: 0 / 1.029 GB, free: 12.41 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001239/0.4491, allocations: 153.7 kB / 1.029 GB, free: 12.21 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.4491, allocations: 3.953 kB / 1.029 GB, free: 12.2 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.583e-05/0.4492, allocations: 4 kB / 1.029 GB, free: 12.2 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.4492, allocations: 0 / 1.029 GB, free: 12.2 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.639e-06/0.4492, allocations: 3.984 kB / 1.029 GB, free: 12.2 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.4492, allocations: 3.938 kB / 1.029 GB, free: 12.19 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.4492, allocations: 0 / 1.029 GB, free: 12.19 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.678e-05/0.4493, allocations: 57.14 kB / 1.029 GB, free: 12.12 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.612e-05/0.4494, allocations: 93.08 kB / 1.029 GB, free: 12.01 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.396e-05/0.4494, allocations: 0 / 1.029 GB, free: 12.01 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.536e-05/0.4494, allocations: 0 / 1.029 GB, free: 12.01 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.022e-05/0.4495, allocations: 3.938 kB / 1.029 GB, free: 12 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.721e-06/0.4495, allocations: 4 kB / 1.029 GB, free: 12 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 3.032e-05/0.4495, allocations: 79.28 kB / 1.029 GB, free: 11.92 MB / 0.6823 GB Notification: Performance of sort global known variables: time 3.3e-07/0.4495, allocations: 0 / 1.029 GB, free: 11.92 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002486/0.4498, allocations: 8 kB / 1.029 GB, free: 11.91 MB / 0.6823 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,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005132/0.4503, allocations: 0.6173 MB / 1.03 GB, free: 11.27 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 8.495e-05/0.4504, allocations: 4 kB / 1.03 GB, free: 11.27 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 6.923e-06/0.4504, allocations: 0 / 1.03 GB, free: 11.27 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 2.343e-05/0.4505, allocations: 7.938 kB / 1.03 GB, free: 11.26 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001124/0.4506, allocations: 8.156 kB / 1.03 GB, free: 11.25 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000348/0.4509, allocations: 116.6 kB / 1.03 GB, free: 11.09 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002788/0.4512, allocations: 0.677 MB / 1.031 GB, free: 10.39 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 1.783e-05/0.4513, allocations: 0 / 1.031 GB, free: 10.39 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.813e-05/0.4513, allocations: 11.44 kB / 1.031 GB, free: 10.38 MB / 0.6823 GB Notification: Performance of SimCode: time 8.12e-07/0.4513, allocations: 0 / 1.031 GB, free: 10.38 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02253/0.4739, allocations: 0.8551 MB / 1.031 GB, free: 9.648 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003778/0.4743, allocations: 185 kB / 1.032 GB, free: 9.41 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.346/2.82, allocations: 0 / 1.032 GB, free: 9.41 MB / 0.6823 GB