Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_8_0_0_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_8_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 8.0.0/package.mo): time 2.706/2.706, allocations: 287.3 MB / 302.3 MB, free: 8.273 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00162/0.00162, allocations: 182.8 kB / 370.8 MB, free: 10.84 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.154/2.154, allocations: 205.4 MB / 0.6295 GB, free: 10.62 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001194/0.001194, allocations: 84.77 kB / 0.7428 GB, free: 6.625 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006998/0.0006997, allocations: 17.95 kB / 0.8657 GB, free: 140.4 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2482/0.249, allocations: 115.3 MB / 0.9783 GB, free: 28.29 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 1.057/1.306, allocations: 137.1 MB / 1.112 GB, free: 15.39 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002761/1.306, allocations: 73.94 kB / 1.112 GB, free: 15.39 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.00185/1.308, allocations: 0.5173 MB / 1.113 GB, free: 31.08 MB / 0.698 GB Notification: Performance of FrontEnd: time 2.224e-06/1.308, allocations: 0 / 1.113 GB, free: 31.08 MB / 0.698 GB Notification: Performance of Transformations before backend: time 6.112e-06/1.308, allocations: 0 / 1.113 GB, free: 31.08 MB / 0.698 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.0002976/1.308, allocations: 319.7 kB / 1.113 GB, free: 30.73 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 4.6e-05/1.309, allocations: 11.8 kB / 1.113 GB, free: 30.73 MB / 0.698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.333e-05/1.309, allocations: 30.56 kB / 1.113 GB, free: 30.69 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.42e-05/1.309, allocations: 6.938 kB / 1.113 GB, free: 30.69 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.55e-05/1.309, allocations: 164.4 kB / 1.113 GB, free: 30.49 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.21e-05/1.309, allocations: 0 / 1.113 GB, free: 30.49 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.256e-06/1.309, allocations: 0 / 1.113 GB, free: 30.49 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001098/1.309, allocations: 38.7 kB / 1.113 GB, free: 30.45 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.426e-06/1.309, allocations: 0 / 1.113 GB, free: 30.45 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.826e-06/1.309, allocations: 1.312 kB / 1.113 GB, free: 30.45 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/1.309, allocations: 0.5312 kB / 1.113 GB, free: 30.45 MB / 0.698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.085e-05/1.309, allocations: 5.375 kB / 1.113 GB, free: 30.45 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001464/1.309, allocations: 160.6 kB / 1.114 GB, free: 30.26 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 5.287e-05/1.309, allocations: 20.02 kB / 1.114 GB, free: 30.23 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001631/1.309, allocations: 82.61 kB / 1.114 GB, free: 30.14 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.05e-05/1.309, allocations: 37.94 kB / 1.114 GB, free: 30.1 MB / 0.698 GB Notification: Performance of pre-optimization done (n=2): time 1.523e-06/1.309, allocations: 0 / 1.114 GB, free: 30.1 MB / 0.698 GB Notification: Performance of matching and sorting (n=2): time 0.000161/1.31, allocations: 36.31 kB / 1.114 GB, free: 30.07 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.944e-05/1.31, allocations: 59.09 kB / 1.114 GB, free: 30 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.494e-05/1.31, allocations: 85 kB / 1.114 GB, free: 29.91 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 1.653e-05/1.31, allocations: 29.58 kB / 1.114 GB, free: 29.88 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 3.828e-05/1.31, allocations: 80.14 kB / 1.114 GB, free: 29.8 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 2.402e-05/1.31, allocations: 11.12 kB / 1.114 GB, free: 29.79 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.206e-06/1.31, allocations: 0 / 1.114 GB, free: 29.79 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0002328/1.31, allocations: 312.6 kB / 1.114 GB, free: 29.48 MB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.878e-05/1.31, allocations: 3.938 kB / 1.114 GB, free: 29.48 MB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.252e-05/1.31, allocations: 9.062 kB / 1.114 GB, free: 29.47 MB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.964e-05/1.31, allocations: 7.812 kB / 1.114 GB, free: 29.47 MB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/1.31, allocations: 3.938 kB / 1.114 GB, free: 29.46 MB / 0.698 GB Notification: Performance of matching and sorting (n=2) (initialization): time 8.745e-05/1.31, allocations: 46.34 kB / 1.114 GB, free: 29.43 MB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/1.31, allocations: 3.688 kB / 1.114 GB, free: 29.43 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.912e-06/1.31, allocations: 0 / 1.114 GB, free: 29.43 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/1.31, allocations: 0 / 1.114 GB, free: 29.43 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.782e-05/1.31, allocations: 5.328 kB / 1.114 GB, free: 29.43 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.62e-06/1.31, allocations: 0 / 1.114 GB, free: 29.43 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.954e-05/1.31, allocations: 4.969 kB / 1.114 GB, free: 29.42 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.251e-06/1.31, allocations: 5.328 kB / 1.114 GB, free: 29.42 MB / 0.698 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 9.089e-05/1.311, allocations: 105.8 kB / 1.114 GB, free: 29.31 MB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.057e-05/1.311, allocations: 3.953 kB / 1.114 GB, free: 29.3 MB / 0.698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001263/1.311, allocations: 46.23 kB / 1.114 GB, free: 29.27 MB / 0.698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.748e-06/1.311, allocations: 0 / 1.114 GB, free: 29.27 MB / 0.698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/1.311, allocations: 5.688 kB / 1.114 GB, free: 29.27 MB / 0.698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/1.311, allocations: 3.906 kB / 1.114 GB, free: 29.27 MB / 0.698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001177/1.311, allocations: 150.5 kB / 1.115 GB, free: 29.07 MB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/1.311, allocations: 0 / 1.115 GB, free: 29.07 MB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.599e-05/1.311, allocations: 5.266 kB / 1.115 GB, free: 29.07 MB / 0.698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.378e-06/1.311, allocations: 3.953 kB / 1.115 GB, free: 29.07 MB / 0.698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.114e-06/1.311, allocations: 0 / 1.115 GB, free: 29.07 MB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.824e-06/1.311, allocations: 0 / 1.115 GB, free: 29.07 MB / 0.698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.834e-06/1.311, allocations: 0 / 1.115 GB, free: 29.07 MB / 0.698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.477e-05/1.311, allocations: 67.33 kB / 1.115 GB, free: 29 MB / 0.698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.75e-05/1.311, allocations: 82.78 kB / 1.115 GB, free: 28.91 MB / 0.698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.62e-05/1.311, allocations: 3.953 kB / 1.115 GB, free: 28.9 MB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.548e-05/1.311, allocations: 0 / 1.115 GB, free: 28.9 MB / 0.698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.529e-05/1.311, allocations: 8.688 kB / 1.115 GB, free: 28.9 MB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.428e-06/1.311, allocations: 0 / 1.115 GB, free: 28.9 MB / 0.698 GB Notification: Performance of sorting global known variables: time 3.435e-05/1.311, allocations: 75.28 kB / 1.115 GB, free: 28.83 MB / 0.698 GB Notification: Performance of sort global known variables: time 1.733e-06/1.311, allocations: 0 / 1.115 GB, free: 28.83 MB / 0.698 GB Notification: Performance of remove unused functions: time 0.0002649/1.312, allocations: 9.109 kB / 1.115 GB, free: 28.82 MB / 0.698 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.000497/1.312, allocations: 0.61 MB / 1.115 GB, free: 28.23 MB / 0.698 GB Notification: Performance of simCode: created initialization part: time 8.623e-05/1.312, allocations: 11.66 kB / 1.115 GB, free: 28.23 MB / 0.698 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/1.312, allocations: 0 / 1.115 GB, free: 28.23 MB / 0.698 GB Notification: Performance of simCode: created simulation system equations: time 2.088e-05/1.312, allocations: 9.172 kB / 1.115 GB, free: 28.22 MB / 0.698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001051/1.312, allocations: 7.406 kB / 1.115 GB, free: 28.22 MB / 0.698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003401/1.313, allocations: 120.1 kB / 1.116 GB, free: 28.08 MB / 0.698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002888/1.313, allocations: 0.6759 MB / 1.116 GB, free: 27.38 MB / 0.698 GB Notification: Performance of simCode: alias equations: time 2.173e-05/1.313, allocations: 0 / 1.116 GB, free: 27.38 MB / 0.698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.452e-05/1.313, allocations: 11.25 kB / 1.116 GB, free: 27.38 MB / 0.698 GB Notification: Performance of SimCode: time 2.114e-06/1.313, allocations: 0 / 1.116 GB, free: 27.38 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02171/1.335, allocations: 0.8548 MB / 1.117 GB, free: 27.23 MB / 0.698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000272/1.335, allocations: 194.2 kB / 1.117 GB, free: 26.98 MB / 0.698 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.506/3.842, allocations: 0.5625 kB / 1.117 GB, free: 26.98 MB / 0.698 GB (rm -f Buildings_8.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_8.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_8.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_8.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)