Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Utilities.Math.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.Examples.Factorial,fileNamePrefix="Buildings_8_0_0_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_8_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 8.0.0/package.mo): time 2.577/2.577, allocations: 287.3 MB / 302.3 MB, free: 8.387 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.001613/0.001612, allocations: 179.2 kB / 370.8 MB, free: 10.85 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.15/2.15, allocations: 205.4 MB / 0.6295 GB, free: 10.58 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.001251/0.001251, allocations: 98.16 kB / 0.7428 GB, free: 6.574 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0007518/0.0007522, allocations: 13.5 kB / 0.8657 GB, free: 141.1 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2246/0.2254, allocations: 115.3 MB / 0.9783 GB, free: 28.27 MB / 0.6198 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001729/0.2272, allocations: 1.22 MB / 0.9795 GB, free: 27.04 MB / 0.6198 GB Notification: Performance of NFInst.instExpressions: time 0.0003466/0.2276, allocations: 116.6 kB / 0.9796 GB, free: 26.92 MB / 0.6198 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.779e-05/0.2276, allocations: 0 / 0.9796 GB, free: 26.92 MB / 0.6198 GB Notification: Performance of NFTyping.typeComponents: time 2.183e-05/0.2276, allocations: 7.938 kB / 0.9796 GB, free: 26.91 MB / 0.6198 GB Notification: Performance of NFTyping.typeBindings: time 4.313e-05/0.2277, allocations: 3.984 kB / 0.9796 GB, free: 26.91 MB / 0.6198 GB Notification: Performance of NFTyping.typeClassSections: time 0.000199/0.2279, allocations: 15.94 kB / 0.9796 GB, free: 26.89 MB / 0.6198 GB Notification: Performance of NFFlatten.flatten: time 7.552e-05/0.228, allocations: 19.91 kB / 0.9796 GB, free: 26.87 MB / 0.6198 GB Notification: Performance of NFFlatten.resolveConnections: time 9.22e-05/0.2281, allocations: 11.98 kB / 0.9796 GB, free: 26.86 MB / 0.6198 GB Notification: Performance of NFEvalConstants.evaluate: time 4.046e-05/0.2282, allocations: 15.92 kB / 0.9797 GB, free: 26.84 MB / 0.6198 GB Notification: Performance of NFSimplifyModel.simplify: time 5.031e-05/0.2282, allocations: 15.98 kB / 0.9797 GB, free: 26.83 MB / 0.6198 GB Notification: Performance of NFPackage.collectConstants: time 1.431e-05/0.2282, allocations: 0 / 0.9797 GB, free: 26.83 MB / 0.6198 GB Notification: Performance of NFFlatten.collectFunctions: time 5.491e-05/0.2283, allocations: 4 kB / 0.9797 GB, free: 26.82 MB / 0.6198 GB Notification: Performance of NFScalarize.scalarize: time 1.284e-05/0.2283, allocations: 7.922 kB / 0.9797 GB, free: 26.82 MB / 0.6198 GB Notification: Performance of NFVerifyModel.verify: time 2.413e-05/0.2284, allocations: 33.7 kB / 0.9797 GB, free: 26.78 MB / 0.6198 GB Notification: Performance of NFConvertDAE.convert: time 7.877e-05/0.2284, allocations: 11.97 kB / 0.9797 GB, free: 26.77 MB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 2.715e-06/0.2285, allocations: 0 / 0.9797 GB, free: 26.77 MB / 0.6198 GB Notification: Performance of FrontEnd: time 1.974e-06/0.2285, allocations: 0 / 0.9797 GB, free: 26.77 MB / 0.6198 GB Notification: Performance of Transformations before backend: time 4.86e-06/0.2285, allocations: 0 / 0.9797 GB, free: 26.77 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004517/0.2289, allocations: 351.5 kB / 0.9801 GB, free: 26.38 MB / 0.6198 GB Notification: Performance of prepare preOptimizeDAE: time 4.376e-05/0.229, allocations: 12.02 kB / 0.9801 GB, free: 26.36 MB / 0.6198 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.026e-05/0.229, allocations: 38.55 kB / 0.9801 GB, free: 26.32 MB / 0.6198 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.563e-05/0.2291, allocations: 0 / 0.9801 GB, free: 26.32 MB / 0.6198 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.502e-05/0.2292, allocations: 171 kB / 0.9803 GB, free: 26.11 MB / 0.6198 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.335e-05/0.2292, allocations: 7.938 kB / 0.9803 GB, free: 26.1 MB / 0.6198 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.131e-05/0.2292, allocations: 0 / 0.9803 GB, free: 26.1 MB / 0.6198 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002404/0.2295, allocations: 69.59 kB / 0.9803 GB, free: 26.03 MB / 0.6198 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.829e-06/0.2295, allocations: 0 / 0.9803 GB, free: 26.03 MB / 0.6198 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.2e-05/0.2295, allocations: 4 kB / 0.9804 GB, free: 26.02 MB / 0.6198 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.98e-06/0.2296, allocations: 0 / 0.9804 GB, free: 26.02 MB / 0.6198 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003017/0.2299, allocations: 51.95 kB / 0.9804 GB, free: 25.97 MB / 0.6198 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003745/0.2302, allocations: 268.8 kB / 0.9807 GB, free: 25.66 MB / 0.6198 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004718/0.2307, allocations: 66.47 kB / 0.9807 GB, free: 25.59 MB / 0.6198 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001116/0.2309, allocations: 77.11 kB / 0.9808 GB, free: 25.49 MB / 0.6198 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.227e-05/0.2309, allocations: 38.62 kB / 0.9808 GB, free: 25.45 MB / 0.6198 GB Notification: Performance of pre-optimization done (n=3): time 1.763e-06/0.2309, allocations: 0 / 0.9808 GB, free: 25.45 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3): time 0.0005642/0.2315, allocations: 105.7 kB / 0.9809 GB, free: 25.34 MB / 0.6198 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.523e-05/0.2315, allocations: 55.34 kB / 0.981 GB, free: 25.27 MB / 0.6198 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.097e-05/0.2316, allocations: 114 kB / 0.9811 GB, free: 25.15 MB / 0.6198 GB Notification: Performance of collectPreVariables (initialization): time 1.091e-05/0.2316, allocations: 25.7 kB / 0.9811 GB, free: 25.12 MB / 0.6198 GB Notification: Performance of collectInitialEqns (initialization): time 3.31e-05/0.2317, allocations: 80.14 kB / 0.9812 GB, free: 25.04 MB / 0.6198 GB Notification: Performance of collectInitialBindings (initialization): time 1.886e-05/0.2317, allocations: 15.84 kB / 0.9812 GB, free: 25.02 MB / 0.6198 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.892e-06/0.2317, allocations: 0 / 0.9812 GB, free: 25.02 MB / 0.6198 GB Notification: Performance of setup shared object (initialization): time 5.44e-05/0.2318, allocations: 314.8 kB / 0.9815 GB, free: 24.7 MB / 0.6198 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001503/0.2319, allocations: 27.97 kB / 0.9815 GB, free: 24.68 MB / 0.6198 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001749/0.2321, allocations: 23.98 kB / 0.9816 GB, free: 24.65 MB / 0.6198 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001495/0.2323, allocations: 23.97 kB / 0.9816 GB, free: 24.63 MB / 0.6198 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.2323, allocations: 4 kB / 0.9816 GB, free: 24.62 MB / 0.6198 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003459/0.2326, allocations: 81.66 kB / 0.9817 GB, free: 24.54 MB / 0.6198 GB Notification: Performance of prepare postOptimizeDAE: time 1.688e-05/0.2327, allocations: 7.938 kB / 0.9817 GB, free: 24.53 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/0.2327, allocations: 4 kB / 0.9817 GB, free: 24.53 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.555e-05/0.2327, allocations: 0 / 0.9817 GB, free: 24.53 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000141/0.2329, allocations: 19.92 kB / 0.9817 GB, free: 24.51 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.442e-06/0.2329, allocations: 0 / 0.9817 GB, free: 24.51 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.346e-05/0.233, allocations: 11.89 kB / 0.9817 GB, free: 24.5 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.076e-05/0.233, allocations: 3.953 kB / 0.9817 GB, free: 24.49 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.y,rea2Int.y) * Number of discrete states: 0 () * Number of clocked 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 7.063e-05/0.2331, allocations: 113.8 kB / 0.9818 GB, free: 24.37 MB / 0.6198 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.123e-05/0.2331, allocations: 4 kB / 0.9818 GB, free: 24.37 MB / 0.6198 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003902/0.2335, allocations: 93.08 kB / 0.9819 GB, free: 24.27 MB / 0.6198 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.829e-06/0.2336, allocations: 4 kB / 0.9819 GB, free: 24.27 MB / 0.6198 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.2336, allocations: 0 / 0.9819 GB, free: 24.27 MB / 0.6198 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.819e-06/0.2336, allocations: 4 kB / 0.9819 GB, free: 24.26 MB / 0.6198 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001684/0.2338, allocations: 169.6 kB / 0.9821 GB, free: 24.05 MB / 0.6198 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.2338, allocations: 0 / 0.9821 GB, free: 24.05 MB / 0.6198 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001236/0.2339, allocations: 15.98 kB / 0.9821 GB, free: 24.03 MB / 0.6198 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.2339, allocations: 0 / 0.9821 GB, free: 24.03 MB / 0.6198 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.988e-06/0.2339, allocations: 3.938 kB / 0.9821 GB, free: 24.03 MB / 0.6198 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.234, allocations: 0 / 0.9821 GB, free: 24.03 MB / 0.6198 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.234, allocations: 0 / 0.9821 GB, free: 24.03 MB / 0.6198 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003622/0.2343, allocations: 184.5 kB / 0.9823 GB, free: 23.83 MB / 0.6198 GB Notification: Performance of postOpt removeConstants (simulation): time 2.33e-05/0.2344, allocations: 85.02 kB / 0.9824 GB, free: 23.73 MB / 0.6198 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.729e-05/0.2344, allocations: 0 / 0.9824 GB, free: 23.73 MB / 0.6198 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001382/0.2345, allocations: 7.984 kB / 0.9824 GB, free: 23.72 MB / 0.6198 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.469e-05/0.2346, allocations: 12 kB / 0.9824 GB, free: 23.71 MB / 0.6198 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.577e-06/0.2346, allocations: 3.984 kB / 0.9824 GB, free: 23.71 MB / 0.6198 GB Notification: Performance of sorting global known variables: time 2.733e-05/0.2347, allocations: 79.28 kB / 0.9825 GB, free: 23.63 MB / 0.6198 GB Notification: Performance of sort global known variables: time 3.41e-07/0.2347, allocations: 0 / 0.9825 GB, free: 23.63 MB / 0.6198 GB Notification: Performance of remove unused functions: time 0.0003087/0.235, allocations: 16 kB / 0.9825 GB, free: 23.61 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.y,rea2Int.y) * Number of discrete states: 0 () * Number of clocked 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.0006012/0.2356, allocations: 0.7168 MB / 0.9832 GB, free: 22.87 MB / 0.6198 GB Notification: Performance of simCode: created initialization part: time 0.0003694/0.236, allocations: 63.98 kB / 0.9832 GB, free: 22.81 MB / 0.6198 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.236, allocations: 0 / 0.9832 GB, free: 22.81 MB / 0.6198 GB Notification: Performance of simCode: created simulation system equations: time 0.0001677/0.2362, allocations: 35.91 kB / 0.9833 GB, free: 22.77 MB / 0.6198 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002309/0.2364, allocations: 0 / 0.9833 GB, free: 22.77 MB / 0.6198 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004994/0.2369, allocations: 162.2 kB / 0.9834 GB, free: 22.58 MB / 0.6198 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001271/0.2371, allocations: 0.677 MB / 0.9841 GB, free: 21.88 MB / 0.6198 GB Notification: Performance of simCode: alias equations: time 5.104e-05/0.2372, allocations: 11.92 kB / 0.9841 GB, free: 21.86 MB / 0.6198 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.906e-05/0.2372, allocations: 11.44 kB / 0.9841 GB, free: 21.85 MB / 0.6198 GB Notification: Performance of SimCode: time 1.182e-06/0.2372, allocations: 0 / 0.9841 GB, free: 21.85 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01974/0.257, allocations: 1.262 MB / 0.9853 GB, free: 20.7 MB / 0.6198 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002433/0.2573, allocations: 182.7 kB / 0.9855 GB, free: 20.45 MB / 0.6198 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.477/2.734, allocations: 0 / 0.9855 GB, free: 20.45 MB / 0.6198 GB (rm -f Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_8_0_0_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 Buildings_8_0_0_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_8.0.0_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1)