Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 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(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_8_Buildings_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.001506/0.001506, allocations: 99.7 kB / 15.05 MB, free: 1.105 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.002042/0.002042, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.719/2.719, allocations: 205.4 MB / 222.1 MB, free: 5.555 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 3.511/3.511, allocations: 292.6 MB / 0.5497 GB, free: 14.62 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0009068/0.000907, allocations: 15.59 kB / 0.6737 GB, free: 26.11 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5364/0.5374, allocations: 116.3 MB / 0.7872 GB, free: 11.87 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001468/0.539, allocations: 317.8 kB / 0.7875 GB, free: 11.55 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0004013/0.5394, allocations: 49.56 kB / 0.7876 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.278e-05/0.5395, allocations: 0 / 0.7876 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 1.953e-05/0.5395, allocations: 0 / 0.7876 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 9.728e-06/0.5395, allocations: 0 / 0.7876 GB, free: 11.51 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003688/0.5399, allocations: 11.98 kB / 0.7876 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 8.262e-05/0.54, allocations: 0 / 0.7876 GB, free: 11.5 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001173/0.5401, allocations: 4 kB / 0.7876 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 2.973e-05/0.5402, allocations: 4 kB / 0.7876 GB, free: 11.49 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 5.732e-05/0.5402, allocations: 3.984 kB / 0.7876 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.401e-05/0.5403, allocations: 0 / 0.7876 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000137/0.5404, allocations: 15.92 kB / 0.7876 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 1.264e-05/0.5404, allocations: 0 / 0.7876 GB, free: 11.47 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 5.315e-05/0.5405, allocations: 29.64 kB / 0.7876 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.000112/0.5406, allocations: 8 kB / 0.7877 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.5407, allocations: 3.938 kB / 0.7877 GB, free: 11.42 MB / 0.6075 GB Notification: Performance of FrontEnd: time 3.567e-06/0.5407, allocations: 0 / 0.7877 GB, free: 11.42 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 8.425e-06/0.5407, allocations: 0 / 0.7877 GB, free: 11.42 MB / 0.6075 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.0006146/0.5413, allocations: 315.4 kB / 0.788 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 8.286e-05/0.5414, allocations: 8.031 kB / 0.788 GB, free: 11.06 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.879e-05/0.5415, allocations: 30.56 kB / 0.788 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.549e-05/0.5415, allocations: 0 / 0.788 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002609/0.5418, allocations: 167 kB / 0.7882 GB, free: 10.82 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.491e-05/0.5419, allocations: 4 kB / 0.7882 GB, free: 10.81 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.427e-05/0.5419, allocations: 0 / 0.7882 GB, free: 10.81 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001858/0.5421, allocations: 33.69 kB / 0.7882 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/0.5421, allocations: 0 / 0.7882 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.203e-05/0.5421, allocations: 4 kB / 0.7882 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.5421, allocations: 0 / 0.7882 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.943e-05/0.5422, allocations: 7.938 kB / 0.7882 GB, free: 10.76 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002946/0.5425, allocations: 153.6 kB / 0.7884 GB, free: 10.56 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 9.344e-05/0.5426, allocations: 18.67 kB / 0.7884 GB, free: 10.54 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003244/0.543, allocations: 81.11 kB / 0.7884 GB, free: 10.44 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.473e-05/0.543, allocations: 34.56 kB / 0.7885 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=2): time 1.372e-06/0.543, allocations: 8 kB / 0.7885 GB, free: 10.39 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2): time 0.000257/0.5433, allocations: 41.62 kB / 0.7885 GB, free: 10.34 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.996e-05/0.5434, allocations: 51.41 kB / 0.7886 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.919e-05/0.5435, allocations: 93.86 kB / 0.7887 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 2.846e-05/0.5435, allocations: 25.7 kB / 0.7887 GB, free: 10.14 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.864e-05/0.5436, allocations: 80.14 kB / 0.7888 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 4.748e-05/0.5437, allocations: 4.188 kB / 0.7888 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.957e-06/0.5437, allocations: 3.938 kB / 0.7888 GB, free: 10.05 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0002769/0.544, allocations: 323 kB / 0.7891 GB, free: 9.73 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.631e-05/0.544, allocations: 0 / 0.7891 GB, free: 9.73 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.409e-05/0.544, allocations: 4 kB / 0.7891 GB, free: 9.727 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.11e-05/0.5441, allocations: 4 kB / 0.7891 GB, free: 9.723 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.836e-06/0.5441, allocations: 0 / 0.7891 GB, free: 9.723 MB / 0.6075 GB Notification: Performance of matching and sorting (n=2) (initialization): time 9.2e-05/0.5442, allocations: 37.66 kB / 0.7891 GB, free: 9.68 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.777e-05/0.5442, allocations: 4 kB / 0.7891 GB, free: 9.676 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.539e-05/0.5443, allocations: 11.92 kB / 0.7891 GB, free: 9.664 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.006e-05/0.5443, allocations: 96 / 0.7891 GB, free: 9.664 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.578e-05/0.5444, allocations: 4 kB / 0.7891 GB, free: 9.66 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.674e-05/0.5444, allocations: 8 kB / 0.7892 GB, free: 9.652 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.388e-05/0.5445, allocations: 3.938 kB / 0.7892 GB, free: 9.648 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.674e-06/0.5445, allocations: 0 / 0.7892 GB, free: 9.648 MB / 0.6075 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 0.0001547/0.5446, allocations: 113.8 kB / 0.7893 GB, free: 9.527 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.237e-05/0.5447, allocations: 3.953 kB / 0.7893 GB, free: 9.523 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001568/0.5448, allocations: 44.81 kB / 0.7893 GB, free: 9.469 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.474e-06/0.5449, allocations: 0 / 0.7893 GB, free: 9.469 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.336e-05/0.5449, allocations: 8.031 kB / 0.7893 GB, free: 9.461 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.5449, allocations: 0 / 0.7893 GB, free: 9.461 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002199/0.5451, allocations: 145.7 kB / 0.7895 GB, free: 9.27 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.5451, allocations: 0 / 0.7895 GB, free: 9.27 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.329e-05/0.5452, allocations: 7.938 kB / 0.7895 GB, free: 9.262 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.272e-06/0.5452, allocations: 3.953 kB / 0.7895 GB, free: 9.258 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.082e-05/0.5452, allocations: 0 / 0.7895 GB, free: 9.258 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.674e-06/0.5452, allocations: 0 / 0.7895 GB, free: 9.258 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.5452, allocations: 0 / 0.7895 GB, free: 9.258 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000161/0.5454, allocations: 73.11 kB / 0.7895 GB, free: 9.168 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 6.73e-05/0.5455, allocations: 81.02 kB / 0.7896 GB, free: 9.07 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.149e-05/0.5455, allocations: 3.953 kB / 0.7896 GB, free: 9.066 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.706e-05/0.5455, allocations: 0 / 0.7896 GB, free: 9.066 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.782e-05/0.5456, allocations: 7.984 kB / 0.7896 GB, free: 9.059 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.366e-06/0.5456, allocations: 0 / 0.7896 GB, free: 9.059 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 6.233e-05/0.5457, allocations: 75.28 kB / 0.7897 GB, free: 8.984 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.9e-07/0.5457, allocations: 0 / 0.7897 GB, free: 8.984 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0003764/0.5461, allocations: 11.94 kB / 0.7897 GB, free: 8.973 MB / 0.6075 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.001154/0.5473, allocations: 0.6047 MB / 0.7903 GB, free: 8.336 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0001214/0.5474, allocations: 4 kB / 0.7903 GB, free: 8.332 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 4.558e-06/0.5474, allocations: 0 / 0.7903 GB, free: 8.332 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 2.824e-05/0.5475, allocations: 12.09 kB / 0.7903 GB, free: 8.32 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001773/0.5476, allocations: 15.83 kB / 0.7903 GB, free: 8.305 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005473/0.5482, allocations: 104.4 kB / 0.7904 GB, free: 8.164 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005014/0.5487, allocations: 0.677 MB / 0.7911 GB, free: 7.461 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.042e-05/0.5488, allocations: 0 / 0.7911 GB, free: 7.461 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.25e-05/0.5488, allocations: 11.44 kB / 0.7911 GB, free: 7.449 MB / 0.6075 GB Notification: Performance of SimCode: time 5.51e-07/0.5488, allocations: 0 / 0.7911 GB, free: 7.449 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01989/0.5687, allocations: 0.8617 MB / 0.7919 GB, free: 6.715 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003435/0.5692, allocations: 179.7 kB / 0.7921 GB, free: 6.477 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.108/3.678, allocations: 8 kB / 0.7921 GB, free: 6.469 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_8_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) Environment - environmentSimulation: