Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_maint_7_0_x_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.3-maint.7.0.x/package.mo): time 1.386/1.386, allocations: 251.9 MB / 266.9 MB, free: 11.05 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001542/0.001542, allocations: 175.4 kB / 326.5 MB, free: 2.27 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.044/2.044, allocations: 205.4 MB / 0.5775 GB, free: 20.32 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009752/0.0009753, allocations: 94.38 kB / 0.6821 GB, free: 12.9 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004254/0.0004254, allocations: 12.72 kB / 0.7963 GB, free: 135.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.277/0.2775, allocations: 106.3 MB / 0.9001 GB, free: 63.88 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2248/0.5023, allocations: 131.9 MB / 1.029 GB, free: 11.75 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003484/0.5027, allocations: 75.95 kB / 1.029 GB, free: 11.68 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.00364/0.5064, allocations: 0.9295 MB / 1.03 GB, free: 10.74 MB / 0.6823 GB Notification: Performance of FrontEnd: time 3.446e-06/0.5065, allocations: 4 kB / 1.03 GB, free: 10.74 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 7.554e-06/0.5065, allocations: 0 / 1.03 GB, free: 10.74 MB / 0.6823 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.0005254/0.507, allocations: 356.7 kB / 1.03 GB, free: 10.34 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 6.234e-05/0.5071, allocations: 8.031 kB / 1.03 GB, free: 10.34 MB / 0.6823 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.541e-05/0.5071, allocations: 30.56 kB / 1.03 GB, free: 10.3 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.752e-05/0.5072, allocations: 7.984 kB / 1.03 GB, free: 10.29 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001594/0.5074, allocations: 166.9 kB / 1.031 GB, free: 10.09 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.548e-05/0.5074, allocations: 15.98 kB / 1.031 GB, free: 10.07 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.34e-05/0.5074, allocations: 0 / 1.031 GB, free: 10.07 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002635/0.5077, allocations: 57.67 kB / 1.031 GB, free: 10.01 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.329e-05/0.5077, allocations: 3.938 kB / 1.031 GB, free: 10 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.681e-05/0.5078, allocations: 3.984 kB / 1.031 GB, free: 10 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.035e-06/0.5078, allocations: 3.938 kB / 1.031 GB, free: 9.996 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00027/0.5081, allocations: 51.97 kB / 1.031 GB, free: 9.945 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006791/0.5088, allocations: 280.9 kB / 1.031 GB, free: 9.621 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004328/0.5092, allocations: 70.53 kB / 1.031 GB, free: 9.543 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001682/0.5094, allocations: 81.09 kB / 1.031 GB, free: 9.445 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.079e-05/0.5094, allocations: 38.56 kB / 1.031 GB, free: 9.398 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=3): time 2.205e-06/0.5095, allocations: 0 / 1.031 GB, free: 9.398 MB / 0.6823 GB Notification: Performance of matching and sorting (n=3): time 0.0005482/0.51, allocations: 105.7 kB / 1.031 GB, free: 9.289 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.109e-05/0.5101, allocations: 51.41 kB / 1.031 GB, free: 9.227 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.827e-05/0.5102, allocations: 101 kB / 1.031 GB, free: 9.121 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 2.225e-05/0.5102, allocations: 29.7 kB / 1.031 GB, free: 9.086 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 7.477e-05/0.5103, allocations: 84.05 kB / 1.031 GB, free: 9 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 2.101e-05/0.5103, allocations: 7.844 kB / 1.031 GB, free: 8.992 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.923e-06/0.5104, allocations: 4 kB / 1.031 GB, free: 8.988 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001498/0.5105, allocations: 318.8 kB / 1.032 GB, free: 8.668 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001251/0.5107, allocations: 27.91 kB / 1.032 GB, free: 8.641 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001079/0.5108, allocations: 23.98 kB / 1.032 GB, free: 8.617 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001242/0.5109, allocations: 27.97 kB / 1.032 GB, free: 8.59 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.826e-06/0.5109, allocations: 0 / 1.032 GB, free: 8.59 MB / 0.6823 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003129/0.5113, allocations: 85.66 kB / 1.032 GB, free: 8.5 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 2.56e-05/0.5113, allocations: 8 kB / 1.032 GB, free: 8.492 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.613e-06/0.5113, allocations: 0 / 1.032 GB, free: 8.492 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.888e-05/0.5113, allocations: 0 / 1.032 GB, free: 8.492 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001103/0.5114, allocations: 11.98 kB / 1.032 GB, free: 8.48 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.033e-05/0.5115, allocations: 3.984 kB / 1.032 GB, free: 8.477 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.18e-05/0.5116, allocations: 15.98 kB / 1.032 GB, free: 8.461 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.926e-06/0.5116, allocations: 0 / 1.032 GB, free: 8.461 MB / 0.6823 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 () * 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 0.0001121/0.5117, allocations: 118.5 kB / 1.032 GB, free: 8.336 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.391e-05/0.5118, allocations: 3.938 kB / 1.032 GB, free: 8.332 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003696/0.5121, allocations: 97.59 kB / 1.032 GB, free: 8.227 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.409e-06/0.5122, allocations: 0 / 1.032 GB, free: 8.227 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.132e-06/0.5122, allocations: 0 / 1.032 GB, free: 8.227 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.487e-06/0.5122, allocations: 0 / 1.032 GB, free: 8.227 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002177/0.5124, allocations: 173.7 kB / 1.032 GB, free: 8.008 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.5124, allocations: 3.984 kB / 1.032 GB, free: 8.004 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001051/0.5125, allocations: 11.98 kB / 1.032 GB, free: 7.992 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.998e-06/0.5126, allocations: 4 kB / 1.032 GB, free: 7.988 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.286e-05/0.5126, allocations: 4 kB / 1.032 GB, free: 7.984 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.5126, allocations: 0 / 1.032 GB, free: 7.984 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.018e-06/0.5126, allocations: 0 / 1.032 GB, free: 7.984 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003819/0.513, allocations: 195.2 kB / 1.033 GB, free: 7.777 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 4.884e-05/0.5131, allocations: 77.11 kB / 1.033 GB, free: 7.684 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.967e-05/0.5131, allocations: 7.938 kB / 1.033 GB, free: 7.676 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001285/0.5132, allocations: 7.984 kB / 1.033 GB, free: 7.668 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.939e-05/0.5133, allocations: 8 kB / 1.033 GB, free: 7.66 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.127e-06/0.5133, allocations: 3.984 kB / 1.033 GB, free: 7.656 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 5.515e-05/0.5134, allocations: 79.28 kB / 1.033 GB, free: 7.578 MB / 0.6823 GB Notification: Performance of sort global known variables: time 2.2e-07/0.5134, allocations: 0 / 1.033 GB, free: 7.578 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0003755/0.5138, allocations: 8 kB / 1.033 GB, free: 7.57 MB / 0.6823 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 () * 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.0007974/0.5146, allocations: 0.7319 MB / 1.033 GB, free: 6.812 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0003108/0.5149, allocations: 55.95 kB / 1.034 GB, free: 6.758 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.5149, allocations: 0 / 1.034 GB, free: 6.758 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001468/0.5151, allocations: 35.97 kB / 1.034 GB, free: 6.723 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002768/0.5154, allocations: 2.656 kB / 1.034 GB, free: 6.723 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006742/0.5161, allocations: 162.2 kB / 1.034 GB, free: 6.52 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003034/0.5164, allocations: 0.6809 MB / 1.034 GB, free: 5.812 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 4.854e-05/0.5164, allocations: 4 kB / 1.034 GB, free: 5.809 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.587e-05/0.5165, allocations: 15.44 kB / 1.034 GB, free: 5.793 MB / 0.6823 GB Notification: Performance of SimCode: time 4.41e-07/0.5165, allocations: 0 / 1.034 GB, free: 5.793 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01381/0.5303, allocations: 1.26 MB / 1.036 GB, free: 4.656 MB / 0.6823 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002181/0.5306, allocations: 180.6 kB / 1.036 GB, free: 4.414 MB / 0.6823 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.522/2.053, allocations: 4 kB / 1.036 GB, free: 4.41 MB / 0.6823 GB (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 Buildings_maint_7_0_x_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1)