Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.Math.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.Examples.Factorial,fileNamePrefix="Buildings_7_0_0_Buildings_Utilities_Math_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.542/2.542, allocations: 248.7 MB / 256.2 MB, free: 7.02 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002019/0.002018, allocations: 185.5 kB / 315.4 MB, free: 3.984 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.059/2.059, allocations: 205.3 MB / 0.5662 GB, free: 0.5469 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001083/0.001083, allocations: 88.36 kB / 0.6704 GB, free: 5.754 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 2.48e-05/2.49e-05, allocations: 8 kB / 0.7803 GB, free: 103.3 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1967/0.1968, allocations: 106.3 MB / 0.8841 GB, free: 12.98 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8687/1.066, allocations: 132 MB / 1.013 GB, free: 6.812 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000277/1.066, allocations: 71.14 kB / 1.013 GB, free: 6.773 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003989/1.07, allocations: 0.93 MB / 1.014 GB, free: 5.945 MB / 0.6355 GB Notification: Performance of FrontEnd: time 1.733e-06/1.07, allocations: 4 kB / 1.014 GB, free: 5.941 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 6.793e-06/1.07, allocations: 0 / 1.014 GB, free: 5.941 MB / 0.6355 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.0005272/1.071, allocations: 344.1 kB / 1.014 GB, free: 5.566 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.376e-05/1.071, allocations: 15.97 kB / 1.014 GB, free: 5.551 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.557e-05/1.071, allocations: 3.984 kB / 1.014 GB, free: 5.547 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001568/1.071, allocations: 166.2 kB / 1.014 GB, free: 5.348 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.806e-05/1.071, allocations: 11.92 kB / 1.014 GB, free: 5.336 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.517e-05/1.071, allocations: 4 kB / 1.014 GB, free: 5.332 MB / 0.6355 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.937e-05/1.071, allocations: 11.25 kB / 1.014 GB, free: 5.324 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001082/1.071, allocations: 47.94 kB / 1.015 GB, free: 5.277 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/1.071, allocations: 0 / 1.015 GB, free: 5.277 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.254e-05/1.071, allocations: 4 kB / 1.015 GB, free: 5.273 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/1.071, allocations: 0 / 1.015 GB, free: 5.273 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005929/1.072, allocations: 268 kB / 1.015 GB, free: 4.984 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003454/1.072, allocations: 40.94 kB / 1.015 GB, free: 4.941 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.299e-05/1.072, allocations: 11.98 kB / 1.015 GB, free: 4.93 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001669/1.072, allocations: 85.19 kB / 1.015 GB, free: 4.828 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.389e-05/1.072, allocations: 30.56 kB / 1.015 GB, free: 4.789 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 1.964e-06/1.072, allocations: 3.938 kB / 1.015 GB, free: 4.785 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0002322/1.073, allocations: 51.31 kB / 1.015 GB, free: 4.734 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.541e-05/1.073, allocations: 51.41 kB / 1.015 GB, free: 4.672 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.35e-05/1.073, allocations: 92.31 kB / 1.015 GB, free: 4.578 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.61e-05/1.073, allocations: 25.7 kB / 1.015 GB, free: 4.547 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 5.72e-05/1.073, allocations: 87.33 kB / 1.015 GB, free: 4.461 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.972e-05/1.073, allocations: 3.906 kB / 1.015 GB, free: 4.457 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.991e-06/1.073, allocations: 0 / 1.015 GB, free: 4.457 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001544/1.073, allocations: 318.8 kB / 1.016 GB, free: 4.137 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.148e-05/1.073, allocations: 11.25 kB / 1.016 GB, free: 4.129 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.94e-05/1.073, allocations: 7.375 kB / 1.016 GB, free: 4.125 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.296e-05/1.073, allocations: 7 kB / 1.016 GB, free: 4.121 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/1.073, allocations: 4 kB / 1.016 GB, free: 4.117 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001449/1.073, allocations: 55.28 kB / 1.016 GB, free: 4.062 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.146e-05/1.074, allocations: 4 kB / 1.016 GB, free: 4.059 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/1.074, allocations: 4.75 kB / 1.016 GB, free: 4.055 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.394e-05/1.074, allocations: 0 / 1.016 GB, free: 4.055 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001547/1.074, allocations: 15.98 kB / 1.016 GB, free: 4.039 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.089e-06/1.074, allocations: 4 kB / 1.016 GB, free: 4.035 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000103/1.074, allocations: 7.984 kB / 1.016 GB, free: 4.027 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.629e-06/1.074, allocations: 4 kB / 1.016 GB, free: 4.023 MB / 0.6355 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.y,fac.u) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.502e-05/1.074, allocations: 107.6 kB / 1.016 GB, free: 3.914 MB / 0.6355 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001443/1.074, allocations: 50.25 kB / 1.016 GB, free: 3.867 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.779e-05/1.074, allocations: 4 kB / 1.016 GB, free: 3.863 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001884/1.074, allocations: 60.53 kB / 1.016 GB, free: 3.801 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/1.074, allocations: 4 kB / 1.016 GB, free: 3.797 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.509e-06/1.074, allocations: 48 / 1.016 GB, free: 3.797 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.495e-06/1.074, allocations: 11.88 kB / 1.016 GB, free: 3.785 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001939/1.075, allocations: 141.5 kB / 1.016 GB, free: 3.613 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.744e-06/1.075, allocations: 0 / 1.016 GB, free: 3.613 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001343/1.075, allocations: 11.98 kB / 1.016 GB, free: 3.602 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.557e-06/1.075, allocations: 0 / 1.016 GB, free: 3.602 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.388e-06/1.075, allocations: 0 / 1.016 GB, free: 3.602 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.894e-06/1.075, allocations: 4 kB / 1.016 GB, free: 3.598 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.065e-06/1.075, allocations: 0 / 1.016 GB, free: 3.598 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001868/1.075, allocations: 156.7 kB / 1.016 GB, free: 3.438 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 4.944e-05/1.075, allocations: 81.11 kB / 1.016 GB, free: 3.34 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.933e-05/1.075, allocations: 3.984 kB / 1.016 GB, free: 3.336 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001481/1.075, allocations: 4 kB / 1.016 GB, free: 3.332 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.363e-05/1.075, allocations: 7.984 kB / 1.016 GB, free: 3.324 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.717e-06/1.075, allocations: 4 kB / 1.016 GB, free: 3.32 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 5.246e-05/1.075, allocations: 86.28 kB / 1.016 GB, free: 3.238 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.11e-07/1.075, allocations: 0 / 1.016 GB, free: 3.238 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0003305/1.076, allocations: 15.88 kB / 1.016 GB, free: 3.223 MB / 0.6355 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,fac.u) * Number of discrete 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 (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.000614/1.076, allocations: 0.6868 MB / 1.017 GB, free: 2.516 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0001335/1.077, allocations: 30.11 kB / 1.017 GB, free: 2.492 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/1.077, allocations: 0 / 1.017 GB, free: 2.492 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 4.872e-05/1.077, allocations: 11.5 kB / 1.017 GB, free: 2.484 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002313/1.077, allocations: 4 kB / 1.017 GB, free: 2.48 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004859/1.077, allocations: 96.69 kB / 1.017 GB, free: 2.352 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003338/1.078, allocations: 0.6807 MB / 1.018 GB, free: 1.645 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 5.293e-05/1.078, allocations: 8 kB / 1.018 GB, free: 1.637 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.833e-05/1.078, allocations: 10.88 kB / 1.018 GB, free: 1.629 MB / 0.6355 GB Notification: Performance of SimCode: time 8.12e-07/1.078, allocations: 0 / 1.018 GB, free: 1.629 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03718/1.115, allocations: 0.9655 MB / 1.019 GB, free: 0.6758 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003594/1.116, allocations: 137 kB / 1.019 GB, free: 492 kB / 0.6355 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.266/3.382, allocations: 0 / 1.019 GB, free: 492 kB / 0.6355 GB