Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.Math.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.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.Math.Examples.Factorial,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_Math_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.001672/0.001672, allocations: 182.8 kB / 15.76 MB, free: 6.359 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.5583/0.5583, allocations: 91.98 MB / 108.5 MB, free: 13.05 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.571/1.571, allocations: 223.2 MB / 354.3 MB, free: 10.48 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009887/0.0009885, allocations: 100.3 kB / 427.4 MB, free: 2.141 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003763/0.0003764, allocations: 12 kB / 0.4983 GB, free: 41.95 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1611/0.1615, allocations: 72.31 MB / 0.5689 GB, free: 1.574 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5441/0.7057, allocations: 101.8 MB / 0.6683 GB, free: 2.539 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002358/0.7059, allocations: 75.97 kB / 0.6684 GB, free: 2.465 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002846/0.7088, allocations: 0.9517 MB / 0.6693 GB, free: 1.527 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.424e-06/0.7088, allocations: 0 / 0.6693 GB, free: 1.527 MB / 458.7 MB Notification: Performance of Transformations before backend: time 7.244e-06/0.7088, allocations: 0 / 0.6693 GB, free: 1.527 MB / 458.7 MB 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.0004582/0.7093, allocations: 356.4 kB / 0.6697 GB, free: 1.133 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.605e-05/0.7094, allocations: 15.97 kB / 0.6697 GB, free: 1.117 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.905e-05/0.7094, allocations: 31.44 kB / 0.6697 GB, free: 1.078 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.58e-05/0.7094, allocations: 3.953 kB / 0.6697 GB, free: 1.074 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001429/0.7096, allocations: 171 kB / 0.6699 GB, free: 0.8672 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.225e-05/0.7096, allocations: 0 / 0.6699 GB, free: 0.8672 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.138e-05/0.7096, allocations: 4 kB / 0.6699 GB, free: 0.8633 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002032/0.7099, allocations: 62.8 kB / 0.6699 GB, free: 0.7969 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.396e-06/0.7099, allocations: 0 / 0.6699 GB, free: 0.7969 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.608e-06/0.7099, allocations: 0 / 0.6699 GB, free: 0.7969 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.7099, allocations: 4 kB / 0.67 GB, free: 0.793 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001986/0.7101, allocations: 55.91 kB / 0.67 GB, free: 0.7383 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004973/0.7106, allocations: 284.8 kB / 0.6703 GB, free: 420 kB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003189/0.7109, allocations: 66.53 kB / 0.6703 GB, free: 344 kB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001334/0.7111, allocations: 81.17 kB / 0.6704 GB, free: 244 kB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.137e-05/0.7111, allocations: 30.56 kB / 0.6704 GB, free: 204 kB / 458.7 MB Notification: Performance of pre-optimization done (n=3): time 1.182e-06/0.7111, allocations: 0 / 0.6704 GB, free: 204 kB / 458.7 MB Notification: Performance of matching and sorting (n=3): time 0.0004125/0.7115, allocations: 125.5 kB / 0.6706 GB, free: 72 kB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.25e-05/0.7116, allocations: 51.41 kB / 0.6706 GB, free: 8 kB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.537e-05/0.7117, allocations: 89 kB / 0.6707 GB, free: 15.91 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 1.933e-05/0.7117, allocations: 29.7 kB / 0.6707 GB, free: 15.88 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.664e-05/0.7118, allocations: 84.12 kB / 0.6708 GB, free: 15.79 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.999e-05/0.7118, allocations: 11.89 kB / 0.6708 GB, free: 15.78 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.958e-06/0.7118, allocations: 4 kB / 0.6708 GB, free: 15.78 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001195/0.7119, allocations: 314.8 kB / 0.6711 GB, free: 15.46 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.51e-05/0.712, allocations: 27.91 kB / 0.6712 GB, free: 15.43 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.241e-05/0.7121, allocations: 24.36 kB / 0.6712 GB, free: 15.41 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001013/0.7122, allocations: 24.08 kB / 0.6712 GB, free: 15.39 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.7123, allocations: 4 kB / 0.6712 GB, free: 15.38 MB / 474.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000223/0.7125, allocations: 97.47 kB / 0.6713 GB, free: 15.28 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.694e-05/0.7125, allocations: 4 kB / 0.6713 GB, free: 15.28 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.302e-06/0.7125, allocations: 4 kB / 0.6713 GB, free: 15.27 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.928e-05/0.7125, allocations: 0 / 0.6713 GB, free: 15.27 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.232e-05/0.7126, allocations: 21.56 kB / 0.6713 GB, free: 15.25 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/0.7127, allocations: 0 / 0.6713 GB, free: 15.25 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.088e-05/0.7127, allocations: 4 kB / 0.6713 GB, free: 15.25 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.688e-06/0.7127, allocations: 7.984 kB / 0.6713 GB, free: 15.24 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.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 9.194e-05/0.7128, allocations: 109.8 kB / 0.6714 GB, free: 15.12 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.508e-05/0.7129, allocations: 4 kB / 0.6714 GB, free: 15.12 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002702/0.7131, allocations: 93.08 kB / 0.6715 GB, free: 15.02 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.525e-06/0.7132, allocations: 0 / 0.6715 GB, free: 15.02 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.172e-06/0.7132, allocations: 3.953 kB / 0.6715 GB, free: 15.02 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.7132, allocations: 8 kB / 0.6715 GB, free: 15.01 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000166/0.7134, allocations: 157.7 kB / 0.6717 GB, free: 14.81 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.62e-07/0.7134, allocations: 0 / 0.6717 GB, free: 14.81 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.294e-05/0.7134, allocations: 16.86 kB / 0.6717 GB, free: 14.79 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.7135, allocations: 0 / 0.6717 GB, free: 14.79 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.727e-06/0.7135, allocations: 0 / 0.6717 GB, free: 14.79 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.7135, allocations: 0 / 0.6717 GB, free: 14.79 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.7135, allocations: 0 / 0.6717 GB, free: 14.79 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002807/0.7138, allocations: 195.4 kB / 0.6719 GB, free: 14.59 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.71e-05/0.7138, allocations: 77.11 kB / 0.672 GB, free: 14.49 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.723e-05/0.7138, allocations: 4 kB / 0.672 GB, free: 14.49 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.003e-05/0.7139, allocations: 12 kB / 0.672 GB, free: 14.48 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.018e-05/0.714, allocations: 3.984 kB / 0.672 GB, free: 14.47 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.101e-06/0.714, allocations: 11.88 kB / 0.672 GB, free: 14.46 MB / 474.7 MB Notification: Performance of sorting global known variables: time 4.831e-05/0.7141, allocations: 83.27 kB / 0.6721 GB, free: 14.38 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.7141, allocations: 0 / 0.6721 GB, free: 14.38 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0002345/0.7143, allocations: 19.89 kB / 0.6721 GB, free: 14.36 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.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.000684/0.715, allocations: 0.7202 MB / 0.6728 GB, free: 13.61 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.000231/0.7152, allocations: 55.95 kB / 0.6729 GB, free: 13.56 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/0.7153, allocations: 7.938 kB / 0.6729 GB, free: 13.55 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001015/0.7154, allocations: 28.39 kB / 0.6729 GB, free: 13.52 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002008/0.7156, allocations: 4 kB / 0.6729 GB, free: 13.52 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004671/0.716, allocations: 151.4 kB / 0.673 GB, free: 13.32 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002874/0.7163, allocations: 0.6848 MB / 0.6737 GB, free: 12.61 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 3.158e-05/0.7164, allocations: 0 / 0.6737 GB, free: 12.61 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.562e-05/0.7164, allocations: 15.44 kB / 0.6737 GB, free: 12.6 MB / 474.7 MB Notification: Performance of SimCode: time 2.3e-07/0.7164, allocations: 0 / 0.6737 GB, free: 12.6 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01387/0.7303, allocations: 1.268 MB / 0.675 GB, free: 11.44 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003233/0.7307, allocations: 159.4 kB / 0.6751 GB, free: 11.21 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.497/2.227, allocations: 0 / 0.6751 GB, free: 11.21 MB / 474.7 MB (rm -f IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_Math_Examples_Factorial.fmu > IBPSA_latest_IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1)