Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IBPSA.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009545/0.0009545, allocations: 178.8 kB / 13.19 MB, free: 2.133 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4771/0.4771, allocations: 90.81 MB / 104.5 MB, free: 9.801 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.291/1.291, allocations: 221.3 MB / 348.3 MB, free: 452 kB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009546/0.0009547, allocations: 104.3 kB / 421.2 MB, free: 5.477 MB / 314.7 MB Notification: Performance of FrontEnd - loaded program: time 3.4e-05/3.404e-05, allocations: 4 kB / 0.4897 GB, free: 5.254 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3379/0.338, allocations: 72.3 MB / 0.5603 GB, free: 40.43 MB / 410.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1177/0.4558, allocations: 100.8 MB / 0.6587 GB, free: 3.551 MB / 474.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002109/0.4561, allocations: 79.89 kB / 0.6588 GB, free: 3.473 MB / 474.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00104/0.4571, allocations: 0.5265 MB / 0.6593 GB, free: 2.949 MB / 474.7 MB Notification: Performance of FrontEnd: time 1.093e-06/0.4571, allocations: 0 / 0.6593 GB, free: 2.949 MB / 474.7 MB Notification: Performance of Transformations before backend: time 4.598e-06/0.4572, allocations: 3.062 kB / 0.6593 GB, free: 2.949 MB / 474.7 MB 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.0002134/0.4574, allocations: 310.6 kB / 0.6596 GB, free: 2.602 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.521e-05/0.4574, allocations: 15.98 kB / 0.6596 GB, free: 2.586 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.616e-05/0.4575, allocations: 35.5 kB / 0.6597 GB, free: 2.543 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.014e-05/0.4575, allocations: 3.953 kB / 0.6597 GB, free: 2.539 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 7.71e-05/0.4576, allocations: 159.1 kB / 0.6598 GB, free: 2.344 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.857e-06/0.4576, allocations: 0 / 0.6598 GB, free: 2.344 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.426e-06/0.4576, allocations: 7.531 kB / 0.6598 GB, free: 2.34 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 7.935e-05/0.4577, allocations: 29.69 kB / 0.6598 GB, free: 2.305 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.923e-06/0.4577, allocations: 0 / 0.6598 GB, free: 2.305 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.271e-06/0.4577, allocations: 0 / 0.6598 GB, free: 2.305 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/0.4577, allocations: 7.984 kB / 0.6599 GB, free: 2.297 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.227e-05/0.4578, allocations: 7.891 kB / 0.6599 GB, free: 2.289 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001236/0.4579, allocations: 154.6 kB / 0.66 GB, free: 2.09 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 3.935e-05/0.458, allocations: 22.61 kB / 0.66 GB, free: 2.059 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.129e-05/0.458, allocations: 12.92 kB / 0.66 GB, free: 2.043 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001462/0.4581, allocations: 85.05 kB / 0.6601 GB, free: 1.941 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.234e-05/0.4582, allocations: 30.56 kB / 0.6602 GB, free: 1.902 MB / 474.7 MB Notification: Performance of pre-optimization done (n=2): time 1.202e-06/0.4582, allocations: 0 / 0.6602 GB, free: 1.902 MB / 474.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001167/0.4583, allocations: 45.53 kB / 0.6602 GB, free: 1.852 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.317e-05/0.4583, allocations: 55.41 kB / 0.6602 GB, free: 1.785 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.025e-05/0.4584, allocations: 89.03 kB / 0.6603 GB, free: 1.691 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.05e-05/0.4584, allocations: 25.7 kB / 0.6604 GB, free: 1.66 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.243e-05/0.4584, allocations: 86.66 kB / 0.6604 GB, free: 1.574 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.873e-05/0.4584, allocations: 0 / 0.6604 GB, free: 1.574 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.124e-06/0.4584, allocations: 0 / 0.6604 GB, free: 1.574 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 9.004e-05/0.4585, allocations: 318.8 kB / 0.6607 GB, free: 1.254 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.358e-06/0.4586, allocations: 0 / 0.6607 GB, free: 1.254 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.999e-06/0.4586, allocations: 8 kB / 0.6608 GB, free: 1.246 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.063e-05/0.4586, allocations: 8.047 kB / 0.6608 GB, free: 1.238 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.172e-06/0.4586, allocations: 0 / 0.6608 GB, free: 1.238 MB / 474.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.658e-05/0.4587, allocations: 37.64 kB / 0.6608 GB, free: 1.195 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/0.4587, allocations: 9.094 kB / 0.6608 GB, free: 1.188 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.4587, allocations: 0 / 0.6608 GB, free: 1.188 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.084e-05/0.4587, allocations: 0 / 0.6608 GB, free: 1.188 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.183e-05/0.4588, allocations: 4 kB / 0.6608 GB, free: 1.184 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.241e-06/0.4588, allocations: 0 / 0.6608 GB, free: 1.184 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.488e-05/0.4588, allocations: 3.984 kB / 0.6608 GB, free: 1.18 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.248e-06/0.4588, allocations: 0 / 0.6608 GB, free: 1.18 MB / 474.7 MB 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 5.584e-05/0.4589, allocations: 109 kB / 0.6609 GB, free: 1.066 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.034e-05/0.4589, allocations: 8 kB / 0.6609 GB, free: 1.059 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.032e-05/0.459, allocations: 36.81 kB / 0.661 GB, free: 1.016 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.893e-06/0.459, allocations: 4 kB / 0.661 GB, free: 1.012 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.459, allocations: 0 / 0.661 GB, free: 1.012 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.459, allocations: 0 / 0.661 GB, free: 1.012 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.309e-05/0.4591, allocations: 159 kB / 0.6611 GB, free: 0.8086 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.4591, allocations: 0 / 0.6611 GB, free: 0.8086 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.482e-05/0.4591, allocations: 8.016 kB / 0.6611 GB, free: 0.8008 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.4592, allocations: 4 kB / 0.6611 GB, free: 0.7969 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.591e-06/0.4592, allocations: 0 / 0.6611 GB, free: 0.7969 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.356e-06/0.4592, allocations: 4.938 kB / 0.6611 GB, free: 0.793 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.4592, allocations: 0 / 0.6611 GB, free: 0.793 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.905e-05/0.4593, allocations: 65 kB / 0.6612 GB, free: 0.7109 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.882e-05/0.4593, allocations: 81.09 kB / 0.6613 GB, free: 0.6133 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.568e-06/0.4593, allocations: 0 / 0.6613 GB, free: 0.6133 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.096e-05/0.4593, allocations: 8.031 kB / 0.6613 GB, free: 0.6055 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.31e-05/0.4594, allocations: 4 kB / 0.6613 GB, free: 0.6016 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.385e-06/0.4594, allocations: 0 / 0.6613 GB, free: 0.6016 MB / 474.7 MB Notification: Performance of sorting global known variables: time 2.593e-05/0.4594, allocations: 75.28 kB / 0.6614 GB, free: 0.5273 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4594, allocations: 0 / 0.6614 GB, free: 0.5273 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0001723/0.4596, allocations: 6.344 kB / 0.6614 GB, free: 0.5234 MB / 474.7 MB 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.0003653/0.46, allocations: 0.6202 MB / 0.662 GB, free: 15.88 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 6.416e-05/0.46, allocations: 8 kB / 0.662 GB, free: 15.87 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.452e-06/0.46, allocations: 0 / 0.662 GB, free: 15.87 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 1.444e-05/0.4601, allocations: 7.938 kB / 0.662 GB, free: 15.86 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.321e-05/0.4601, allocations: 1.75 kB / 0.662 GB, free: 15.86 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002495/0.4604, allocations: 96.89 kB / 0.6621 GB, free: 15.73 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001965/0.4606, allocations: 0.6772 MB / 0.6627 GB, free: 15.03 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 1.65e-05/0.4606, allocations: 4 kB / 0.6627 GB, free: 15.02 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.181e-05/0.4607, allocations: 11.42 kB / 0.6627 GB, free: 15.01 MB / 490.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4607, allocations: 0 / 0.6627 GB, free: 15.01 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01033/0.471, allocations: 0.8476 MB / 0.6636 GB, free: 14.32 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001795/0.4712, allocations: 157.5 kB / 0.6637 GB, free: 14.09 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.286/1.757, allocations: 2.875 kB / 0.6637 GB, free: 14.09 MB / 490.7 MB (rm -f IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Math_Functions_Examples_Factorial.fmu > IBPSA_latest_IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)