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 1.606/1.606, allocations: 287.4 MB / 302.6 MB, free: 8.25 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.001059/0.001059, allocations: 181.5 kB / 371.1 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 1.731/1.731, allocations: 205.4 MB / 0.6298 GB, free: 10.61 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.0008955/0.0008955, allocations: 93.28 kB / 0.7431 GB, free: 6.586 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0004119/0.0004122, allocations: 14.81 kB / 0.8662 GB, free: 140.5 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2382/0.2386, allocations: 115.3 MB / 0.9787 GB, free: 28.12 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.0007882/0.2395, allocations: 315.6 kB / 0.979 GB, free: 27.8 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0002223/0.2397, allocations: 47.84 kB / 0.9791 GB, free: 27.75 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.53e-05/0.2398, allocations: 0 / 0.9791 GB, free: 27.75 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 1.008e-05/0.2398, allocations: 0 / 0.9791 GB, free: 27.75 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 6.572e-06/0.2398, allocations: 0 / 0.9791 GB, free: 27.75 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001911/0.24, allocations: 15.97 kB / 0.9791 GB, free: 27.74 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 4.24e-05/0.2401, allocations: 4 kB / 0.9791 GB, free: 27.73 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 4.176e-05/0.2401, allocations: 0 / 0.9791 GB, free: 27.73 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 1.602e-05/0.2401, allocations: 4 kB / 0.9791 GB, free: 27.73 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 2.297e-05/0.2402, allocations: 4 kB / 0.9791 GB, free: 27.73 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.049e-05/0.2402, allocations: 0 / 0.9791 GB, free: 27.73 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 6.231e-05/0.2402, allocations: 7.984 kB / 0.9791 GB, free: 27.72 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 7.284e-06/0.2402, allocations: 0 / 0.9791 GB, free: 27.72 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 1.826e-05/0.2403, allocations: 29.64 kB / 0.9792 GB, free: 27.68 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 5.811e-05/0.2403, allocations: 8 kB / 0.9792 GB, free: 27.68 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 4.529e-06/0.2403, allocations: 0 / 0.9792 GB, free: 27.68 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.693e-06/0.2404, allocations: 3.938 kB / 0.9792 GB, free: 27.67 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 7.544e-06/0.2404, allocations: 0 / 0.9792 GB, free: 27.67 MB / 0.6198 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.0002126/0.2406, allocations: 311.6 kB / 0.9795 GB, free: 27.32 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.616e-05/0.2406, allocations: 12.03 kB / 0.9795 GB, free: 27.3 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.844e-05/0.2407, allocations: 30.75 kB / 0.9795 GB, free: 27.27 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.959e-05/0.2407, allocations: 4.938 kB / 0.9795 GB, free: 27.26 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.841e-05/0.2408, allocations: 160.4 kB / 0.9797 GB, free: 27.07 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.111e-05/0.2408, allocations: 384 / 0.9797 GB, free: 27.07 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.374e-06/0.2408, allocations: 384 / 0.9797 GB, free: 27.07 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.755e-05/0.2409, allocations: 38.25 kB / 0.9797 GB, free: 27.02 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.2409, allocations: 3.938 kB / 0.9797 GB, free: 27.02 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.743e-06/0.2409, allocations: 3.938 kB / 0.9797 GB, free: 27.02 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.2409, allocations: 4 kB / 0.9797 GB, free: 27.01 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.946e-05/0.241, allocations: 11.94 kB / 0.9797 GB, free: 27 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001079/0.2411, allocations: 153.7 kB / 0.9799 GB, free: 26.8 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 4.602e-05/0.2411, allocations: 22.61 kB / 0.9799 GB, free: 26.77 MB / 0.6198 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.483e-05/0.2412, allocations: 8.859 kB / 0.9799 GB, free: 26.76 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001413/0.2413, allocations: 89.16 kB / 0.98 GB, free: 26.65 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.432e-05/0.2413, allocations: 30.56 kB / 0.98 GB, free: 26.61 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=2): time 9.62e-07/0.2413, allocations: 4 kB / 0.98 GB, free: 26.61 MB / 0.6198 GB Notification: Performance of matching and sorting (n=2): time 0.0001275/0.2415, allocations: 41.58 kB / 0.9801 GB, free: 26.56 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.355e-05/0.2415, allocations: 59.41 kB / 0.9801 GB, free: 26.49 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.472e-05/0.2415, allocations: 93.84 kB / 0.9802 GB, free: 26.39 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 8.005e-06/0.2416, allocations: 25.7 kB / 0.9802 GB, free: 26.36 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 1.289e-05/0.2416, allocations: 80.14 kB / 0.9803 GB, free: 26.28 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 2.655e-05/0.2416, allocations: 4.188 kB / 0.9803 GB, free: 26.27 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.324e-06/0.2416, allocations: 0 / 0.9803 GB, free: 26.27 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.044e-05/0.2417, allocations: 315 kB / 0.9806 GB, free: 25.96 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.979e-06/0.2417, allocations: 4 kB / 0.9806 GB, free: 25.95 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.404e-06/0.2417, allocations: 4 kB / 0.9806 GB, free: 25.95 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.686e-05/0.2417, allocations: 12.86 kB / 0.9806 GB, free: 25.93 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-06/0.2417, allocations: 0 / 0.9806 GB, free: 25.93 MB / 0.6198 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.865e-05/0.2418, allocations: 45.62 kB / 0.9807 GB, free: 25.88 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.059e-05/0.2418, allocations: 4 kB / 0.9807 GB, free: 25.88 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.2418, allocations: 3.938 kB / 0.9807 GB, free: 25.88 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.121e-05/0.2418, allocations: 4.094 kB / 0.9807 GB, free: 25.87 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.406e-05/0.2419, allocations: 4 kB / 0.9807 GB, free: 25.87 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/0.2419, allocations: 3.984 kB / 0.9807 GB, free: 25.86 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.449e-05/0.2419, allocations: 3.938 kB / 0.9807 GB, free: 25.86 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.937e-06/0.2419, allocations: 0 / 0.9807 GB, free: 25.86 MB / 0.6198 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 5.405e-05/0.242, allocations: 119.1 kB / 0.9808 GB, free: 25.73 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.741e-06/0.242, allocations: 0 / 0.9808 GB, free: 25.73 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.811e-05/0.2421, allocations: 56.62 kB / 0.9809 GB, free: 25.68 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-06/0.2421, allocations: 4.031 kB / 0.9809 GB, free: 25.67 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.2421, allocations: 0 / 0.9809 GB, free: 25.67 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.2421, allocations: 3.984 kB / 0.9809 GB, free: 25.67 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.307e-05/0.2422, allocations: 145.7 kB / 0.981 GB, free: 25.48 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.72e-07/0.2422, allocations: 3.938 kB / 0.981 GB, free: 25.47 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.049e-05/0.2422, allocations: 4 kB / 0.981 GB, free: 25.47 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.2422, allocations: 4 kB / 0.981 GB, free: 25.46 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.452e-06/0.2422, allocations: 3.938 kB / 0.981 GB, free: 25.46 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-06/0.2422, allocations: 3.984 kB / 0.981 GB, free: 25.46 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.2422, allocations: 0 / 0.981 GB, free: 25.46 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.836e-05/0.2423, allocations: 61.14 kB / 0.9811 GB, free: 25.38 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 1.977e-05/0.2423, allocations: 77.11 kB / 0.9812 GB, free: 25.29 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.234e-05/0.2424, allocations: 7.922 kB / 0.9812 GB, free: 25.28 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.079e-05/0.2424, allocations: 7.938 kB / 0.9812 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.076e-05/0.2424, allocations: 0 / 0.9812 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.024e-06/0.2424, allocations: 0 / 0.9812 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 1.126e-05/0.2424, allocations: 75.28 kB / 0.9812 GB, free: 25.2 MB / 0.6198 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2424, allocations: 0 / 0.9812 GB, free: 25.2 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0001882/0.2426, allocations: 8.031 kB / 0.9813 GB, free: 25.19 MB / 0.6198 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.0002521/0.2429, allocations: 0.6124 MB / 0.9818 GB, free: 24.55 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 6.697e-05/0.243, allocations: 11.92 kB / 0.9819 GB, free: 24.54 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.243, allocations: 4.094 kB / 0.9819 GB, free: 24.53 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 1.303e-05/0.243, allocations: 4 kB / 0.9819 GB, free: 24.53 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001285/0.2431, allocations: 5.891 kB / 0.9819 GB, free: 24.52 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002609/0.2434, allocations: 108.4 kB / 0.982 GB, free: 24.38 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001436/0.2435, allocations: 0.6809 MB / 0.9826 GB, free: 23.67 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 1.344e-05/0.2436, allocations: 0 / 0.9826 GB, free: 23.67 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.638e-05/0.2436, allocations: 7.438 kB / 0.9826 GB, free: 23.66 MB / 0.6198 GB Notification: Performance of SimCode: time 2.1e-07/0.2436, allocations: 0 / 0.9826 GB, free: 23.66 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01092/0.2545, allocations: 0.8586 MB / 0.9835 GB, free: 22.94 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000152/0.2547, allocations: 184.5 kB / 0.9837 GB, free: 22.7 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.478/1.733, allocations: 3.938 kB / 0.9837 GB, free: 22.7 MB / 0.6198 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)