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/Buildings 8.1.4-maint.8.1.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 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.69/1.69, allocations: 289.7 MB / 302.3 MB, free: 2.141 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.001304/0.001304, allocations: 182.7 kB / 371.6 MB, free: 3.414 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.621/1.621, allocations: 205.2 MB / 0.6309 GB, free: 11.76 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009958/0.0009959, allocations: 88.42 kB / 0.745 GB, free: 54.46 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 3.823e-05/3.825e-05, allocations: 8 kB / 0.8663 GB, free: 14.95 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2568/0.2569, allocations: 116.3 MB / 0.9799 GB, free: 10.48 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.678/0.935, allocations: 138.2 MB / 1.115 GB, free: 45.15 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002237/0.9352, allocations: 74.45 kB / 1.115 GB, free: 45.12 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.0009662/0.9362, allocations: 0.5244 MB / 1.115 GB, free: 44.7 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.133e-06/0.9362, allocations: 0 / 1.115 GB, free: 44.7 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 4.949e-06/0.9363, allocations: 0.6875 kB / 1.115 GB, free: 44.7 MB / 0.7448 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.0001868/0.9364, allocations: 312.5 kB / 1.116 GB, free: 44.36 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 4.123e-05/0.9365, allocations: 12.69 kB / 1.116 GB, free: 44.34 MB / 0.7448 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.714e-05/0.9365, allocations: 30.56 kB / 1.116 GB, free: 44.3 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.139e-05/0.9366, allocations: 2.875 kB / 1.116 GB, free: 44.3 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.157e-05/0.9366, allocations: 159.6 kB / 1.116 GB, free: 44.11 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.03e-05/0.9366, allocations: 7.766 kB / 1.116 GB, free: 44.11 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.945e-06/0.9366, allocations: 4.625 kB / 1.116 GB, free: 44.11 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.661e-05/0.9367, allocations: 33.83 kB / 1.116 GB, free: 44.07 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.023e-06/0.9367, allocations: 1.734 kB / 1.116 GB, free: 44.07 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.725e-06/0.9368, allocations: 0.9375 kB / 1.116 GB, free: 44.07 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.024e-06/0.9368, allocations: 4 kB / 1.116 GB, free: 44.07 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.868e-05/0.9368, allocations: 0.6562 kB / 1.116 GB, free: 44.07 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.982e-05/0.9369, allocations: 153.5 kB / 1.116 GB, free: 43.87 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 4.221e-05/0.937, allocations: 26.55 kB / 1.116 GB, free: 43.84 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.566e-05/0.937, allocations: 13.42 kB / 1.116 GB, free: 43.83 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001074/0.9371, allocations: 81.61 kB / 1.116 GB, free: 43.73 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.4e-05/0.9371, allocations: 31.66 kB / 1.116 GB, free: 43.69 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=2): time 1.112e-06/0.9371, allocations: 0 / 1.116 GB, free: 43.69 MB / 0.7448 GB Notification: Performance of matching and sorting (n=2): time 0.0001053/0.9372, allocations: 41.5 kB / 1.116 GB, free: 43.65 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.938e-05/0.9373, allocations: 56.56 kB / 1.116 GB, free: 43.59 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.565e-05/0.9373, allocations: 85 kB / 1.116 GB, free: 43.5 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 5.881e-06/0.9373, allocations: 25.7 kB / 1.116 GB, free: 43.47 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 1.072e-05/0.9373, allocations: 81.77 kB / 1.117 GB, free: 43.39 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 1.481e-05/0.9373, allocations: 2.031 kB / 1.117 GB, free: 43.39 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.084e-06/0.9373, allocations: 0 / 1.117 GB, free: 43.39 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 6.837e-05/0.9374, allocations: 322.1 kB / 1.117 GB, free: 43.07 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.588e-06/0.9374, allocations: 1.188 kB / 1.117 GB, free: 43.07 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.205e-06/0.9374, allocations: 8.5 kB / 1.117 GB, free: 43.06 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.994e-05/0.9375, allocations: 4.094 kB / 1.117 GB, free: 43.06 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.9375, allocations: 0 / 1.117 GB, free: 43.06 MB / 0.7448 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.187e-05/0.9375, allocations: 40 kB / 1.117 GB, free: 43.02 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/0.9376, allocations: 11.95 kB / 1.117 GB, free: 43.01 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.128e-06/0.9376, allocations: 0 / 1.117 GB, free: 43.01 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.266e-05/0.9376, allocations: 1.641 kB / 1.117 GB, free: 43.01 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.198e-05/0.9376, allocations: 0.5625 kB / 1.117 GB, free: 43.01 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.003e-06/0.9377, allocations: 4 kB / 1.117 GB, free: 43 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.378e-05/0.9377, allocations: 3.562 kB / 1.117 GB, free: 43 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.398e-06/0.9377, allocations: 0 / 1.117 GB, free: 43 MB / 0.7448 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 () * 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 3.388e-05/0.9377, allocations: 105 kB / 1.117 GB, free: 42.89 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.694e-06/0.9377, allocations: 3.953 kB / 1.117 GB, free: 42.89 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.681e-05/0.9378, allocations: 47.72 kB / 1.117 GB, free: 42.84 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.9378, allocations: 0 / 1.117 GB, free: 42.84 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.9378, allocations: 5.844 kB / 1.117 GB, free: 42.84 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.9378, allocations: 2.953 kB / 1.117 GB, free: 42.84 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.234e-05/0.9379, allocations: 145.6 kB / 1.117 GB, free: 42.65 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.9379, allocations: 0 / 1.117 GB, free: 42.65 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.239e-05/0.9379, allocations: 8.719 kB / 1.117 GB, free: 42.64 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.906e-06/0.9379, allocations: 3.953 kB / 1.117 GB, free: 42.64 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.023e-06/0.938, allocations: 3.516 kB / 1.117 GB, free: 42.64 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.542e-06/0.938, allocations: 0 / 1.117 GB, free: 42.64 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.938, allocations: 4 kB / 1.117 GB, free: 42.64 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.078e-05/0.938, allocations: 64.77 kB / 1.117 GB, free: 42.56 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 1.98e-05/0.9381, allocations: 81.42 kB / 1.117 GB, free: 42.47 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.999e-06/0.9381, allocations: 3.953 kB / 1.117 GB, free: 42.46 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.025e-05/0.9381, allocations: 4.031 kB / 1.117 GB, free: 42.46 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.713e-05/0.9381, allocations: 5.125 kB / 1.117 GB, free: 42.46 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.916e-06/0.9381, allocations: 0 / 1.117 GB, free: 42.46 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 1.259e-05/0.9382, allocations: 78 kB / 1.117 GB, free: 42.38 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.1e-07/0.9382, allocations: 0 / 1.117 GB, free: 42.38 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001869/0.9384, allocations: 11.67 kB / 1.117 GB, free: 42.38 MB / 0.7448 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 () * 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.0002524/0.9386, allocations: 0.6074 MB / 1.118 GB, free: 41.76 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 5.559e-05/0.9387, allocations: 14.81 kB / 1.118 GB, free: 41.75 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.9387, allocations: 0 / 1.118 GB, free: 41.75 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 1.211e-05/0.9387, allocations: 4 kB / 1.118 GB, free: 41.74 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.559e-05/0.9388, allocations: 7.953 kB / 1.118 GB, free: 41.73 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002201/0.939, allocations: 81.03 kB / 1.118 GB, free: 41.62 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.551e-05/0.9391, allocations: 0.6775 MB / 1.119 GB, free: 40.93 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 1.516e-05/0.9391, allocations: 5.281 kB / 1.119 GB, free: 40.92 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.816e-05/0.9392, allocations: 7.438 kB / 1.119 GB, free: 40.92 MB / 0.7448 GB Notification: Performance of SimCode: time 3.01e-07/0.9392, allocations: 0 / 1.119 GB, free: 40.92 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01041/0.9496, allocations: 0.8618 MB / 1.12 GB, free: 40.47 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001869/0.9498, allocations: 159.9 kB / 1.12 GB, free: 40.25 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.566/2.516, allocations: 0 / 1.12 GB, free: 40.25 MB / 0.7448 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)