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.709/2.709, allocations: 284.9 MB / 292.4 MB, free: 10.47 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.00146/0.00146, allocations: 184.8 kB / 360.6 MB, free: 7.273 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.22/2.22, allocations: 205.3 MB / 0.6191 GB, free: 12.2 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.00108/0.001079, allocations: 88.3 kB / 0.7321 GB, free: 44.73 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.355e-05/3.375e-05, allocations: 4 kB / 0.8508 GB, free: 3.336 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9613/0.9614, allocations: 115.3 MB / 0.9634 GB, free: 78.48 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.245/1.206, allocations: 137.3 MB / 1.098 GB, free: 3.094 MB / 0.698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003026/1.207, allocations: 75.95 kB / 1.098 GB, free: 3.02 MB / 0.698 GB Notification: Performance of FrontEnd - DAE generated: time 0.00406/1.211, allocations: 0.9232 MB / 1.098 GB, free: 2.113 MB / 0.698 GB Notification: Performance of FrontEnd: time 1.804e-06/1.211, allocations: 0.7812 kB / 1.098 GB, free: 2.113 MB / 0.698 GB Notification: Performance of Transformations before backend: time 6.683e-06/1.211, allocations: 0 / 1.098 GB, free: 2.113 MB / 0.698 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.0005512/1.212, allocations: 342.6 kB / 1.099 GB, free: 1.738 MB / 0.698 GB Notification: Performance of prepare preOptimizeDAE: time 5.65e-05/1.212, allocations: 20.52 kB / 1.099 GB, free: 1.719 MB / 0.698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.722e-05/1.212, allocations: 5.984 kB / 1.099 GB, free: 1.715 MB / 0.698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001589/1.212, allocations: 167 kB / 1.099 GB, free: 1.512 MB / 0.698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.128e-05/1.212, allocations: 11.89 kB / 1.099 GB, free: 1.504 MB / 0.698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.287e-05/1.212, allocations: 0.6562 kB / 1.099 GB, free: 1.504 MB / 0.698 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.648e-05/1.212, allocations: 12.72 kB / 1.099 GB, free: 1.492 MB / 0.698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001082/1.212, allocations: 43.62 kB / 1.099 GB, free: 1.445 MB / 0.698 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.758e-06/1.212, allocations: 0.6875 kB / 1.099 GB, free: 1.445 MB / 0.698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.299e-05/1.212, allocations: 4 kB / 1.099 GB, free: 1.441 MB / 0.698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.521e-06/1.212, allocations: 0.5938 kB / 1.099 GB, free: 1.441 MB / 0.698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006088/1.213, allocations: 260.1 kB / 1.099 GB, free: 1.152 MB / 0.698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003523/1.213, allocations: 44.31 kB / 1.099 GB, free: 1.102 MB / 0.698 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.494e-05/1.213, allocations: 12.92 kB / 1.099 GB, free: 1.086 MB / 0.698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001618/1.213, allocations: 85.19 kB / 1.099 GB, free: 0.9844 MB / 0.698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.277e-05/1.213, allocations: 35.62 kB / 1.099 GB, free: 0.9414 MB / 0.698 GB Notification: Performance of pre-optimization done (n=3): time 2.955e-06/1.213, allocations: 1.125 kB / 1.099 GB, free: 0.9414 MB / 0.698 GB Notification: Performance of matching and sorting (n=3): time 0.0002535/1.214, allocations: 45.69 kB / 1.1 GB, free: 0.8906 MB / 0.698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.023e-05/1.214, allocations: 51.41 kB / 1.1 GB, free: 0.8281 MB / 0.698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001027/1.214, allocations: 97.84 kB / 1.1 GB, free: 0.7266 MB / 0.698 GB Notification: Performance of collectPreVariables (initialization): time 2.383e-05/1.214, allocations: 29.64 kB / 1.1 GB, free: 0.6914 MB / 0.698 GB Notification: Performance of collectInitialEqns (initialization): time 5.812e-05/1.214, allocations: 84.73 kB / 1.1 GB, free: 0.6055 MB / 0.698 GB Notification: Performance of collectInitialBindings (initialization): time 5.49e-05/1.214, allocations: 5.875 kB / 1.1 GB, free: 0.6016 MB / 0.698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.691e-06/1.214, allocations: 0 / 1.1 GB, free: 0.6016 MB / 0.698 GB Notification: Performance of setup shared object (initialization): time 0.0001585/1.214, allocations: 323.3 kB / 1.1 GB, free: 284 kB / 0.698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.959e-05/1.214, allocations: 9.188 kB / 1.1 GB, free: 276 kB / 0.698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.03e-05/1.214, allocations: 8 kB / 1.1 GB, free: 268 kB / 0.698 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.758e-05/1.214, allocations: 4 kB / 1.1 GB, free: 264 kB / 0.698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.4e-06/1.214, allocations: 5.094 kB / 1.1 GB, free: 260 kB / 0.698 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001472/1.215, allocations: 49.69 kB / 1.1 GB, free: 204 kB / 0.698 GB Notification: Performance of prepare postOptimizeDAE: time 2.017e-05/1.215, allocations: 4.781 kB / 1.1 GB, free: 200 kB / 0.698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/1.215, allocations: 0.5312 kB / 1.1 GB, free: 200 kB / 0.698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.41e-05/1.215, allocations: 0.5625 kB / 1.1 GB, free: 200 kB / 0.698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001651/1.215, allocations: 19.3 kB / 1.1 GB, free: 184 kB / 0.698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.46e-06/1.215, allocations: 0 / 1.1 GB, free: 184 kB / 0.698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001066/1.215, allocations: 10.67 kB / 1.1 GB, free: 176 kB / 0.698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.849e-06/1.215, allocations: 4.875 kB / 1.1 GB, free: 172 kB / 0.698 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 () * 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 9.91e-05/1.215, allocations: 110.5 kB / 1.1 GB, free: 56 kB / 0.698 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001434/1.215, allocations: 45.69 kB / 1.1 GB, free: 4 kB / 0.698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.729e-05/1.215, allocations: 8.078 kB / 1.1 GB, free: 15.99 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001945/1.216, allocations: 62.45 kB / 1.1 GB, free: 15.93 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/1.216, allocations: 0 / 1.1 GB, free: 15.93 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.959e-06/1.216, allocations: 0 / 1.1 GB, free: 15.93 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.156e-06/1.216, allocations: 3.281 kB / 1.1 GB, free: 15.93 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002091/1.216, allocations: 150 kB / 1.101 GB, free: 15.75 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/1.216, allocations: 0 / 1.101 GB, free: 15.75 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001407/1.216, allocations: 15.92 kB / 1.101 GB, free: 15.73 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.377e-06/1.216, allocations: 0 / 1.101 GB, free: 15.73 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.01e-05/1.216, allocations: 0 / 1.101 GB, free: 15.73 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/1.216, allocations: 6.062 kB / 1.101 GB, free: 15.73 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.507e-06/1.216, allocations: 0 / 1.101 GB, free: 15.73 MB / 0.7136 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002006/1.216, allocations: 147.8 kB / 1.101 GB, free: 15.57 MB / 0.7136 GB Notification: Performance of postOpt removeConstants (simulation): time 5.271e-05/1.216, allocations: 77.11 kB / 1.101 GB, free: 15.48 MB / 0.7136 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.385e-05/1.216, allocations: 7.984 kB / 1.101 GB, free: 15.47 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001522/1.217, allocations: 11.06 kB / 1.101 GB, free: 15.46 MB / 0.7136 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.026e-05/1.217, allocations: 15.92 kB / 1.101 GB, free: 15.45 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.546e-06/1.217, allocations: 0 / 1.101 GB, free: 15.45 MB / 0.7136 GB Notification: Performance of sorting global known variables: time 5.967e-05/1.217, allocations: 79.28 kB / 1.101 GB, free: 15.37 MB / 0.7136 GB Notification: Performance of sort global known variables: time 4.01e-07/1.217, allocations: 0 / 1.101 GB, free: 15.37 MB / 0.7136 GB Notification: Performance of remove unused functions: time 0.0003414/1.217, allocations: 11.94 kB / 1.101 GB, free: 15.36 MB / 0.7136 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 () * 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.0007036/1.218, allocations: 0.6967 MB / 1.102 GB, free: 14.63 MB / 0.7136 GB Notification: Performance of simCode: created initialization part: time 0.0001323/1.218, allocations: 23.98 kB / 1.102 GB, free: 14.61 MB / 0.7136 GB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/1.218, allocations: 0 / 1.102 GB, free: 14.61 MB / 0.7136 GB Notification: Performance of simCode: created simulation system equations: time 5.415e-05/1.218, allocations: 12 kB / 1.102 GB, free: 14.6 MB / 0.7136 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002834/1.218, allocations: 8.922 kB / 1.102 GB, free: 14.59 MB / 0.7136 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005214/1.219, allocations: 96.05 kB / 1.102 GB, free: 14.46 MB / 0.7136 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003662/1.219, allocations: 0.6807 MB / 1.102 GB, free: 13.75 MB / 0.7136 GB Notification: Performance of simCode: alias equations: time 5.588e-05/1.219, allocations: 4 kB / 1.102 GB, free: 13.75 MB / 0.7136 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.663e-05/1.219, allocations: 14.06 kB / 1.102 GB, free: 13.74 MB / 0.7136 GB Notification: Performance of SimCode: time 1.242e-06/1.219, allocations: 0 / 1.102 GB, free: 13.74 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03866/1.258, allocations: 0.9744 MB / 1.103 GB, free: 12.8 MB / 0.7136 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003623/1.259, allocations: 128.9 kB / 1.104 GB, free: 12.62 MB / 0.7136 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.336/3.594, allocations: 3.938 kB / 1.104 GB, free: 12.61 MB / 0.7136 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)