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.00195/0.00195, allocations: 181.5 kB / 15.76 MB, free: 6.363 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.6125/0.6125, allocations: 91.98 MB / 108.5 MB, free: 13.07 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.65/1.65, allocations: 223.2 MB / 354.3 MB, free: 12.21 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.001024/0.001024, allocations: 103.2 kB / 427.4 MB, free: 3.906 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003856/0.0003856, allocations: 16 kB / 0.4983 GB, free: 42.2 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1833/0.1837, allocations: 72.3 MB / 0.5689 GB, free: 1.832 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5301/0.7139, allocations: 100.8 MB / 0.6674 GB, free: 3.602 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002759/0.7142, allocations: 83.92 kB / 0.6675 GB, free: 3.52 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00124/0.7155, allocations: 0.5272 MB / 0.668 GB, free: 3 MB / 458.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.7155, allocations: 2.188 kB / 0.668 GB, free: 3 MB / 458.7 MB Notification: Performance of Transformations before backend: time 5.971e-06/0.7155, allocations: 0 / 0.668 GB, free: 3 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002974/0.7158, allocations: 317.5 kB / 0.6683 GB, free: 2.645 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.949e-05/0.7158, allocations: 8.031 kB / 0.6683 GB, free: 2.637 MB / 458.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.069e-05/0.7159, allocations: 30.56 kB / 0.6683 GB, free: 2.598 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.763e-05/0.7159, allocations: 13.39 kB / 0.6683 GB, free: 2.586 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001393/0.7161, allocations: 163.1 kB / 0.6685 GB, free: 2.387 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.217e-05/0.7161, allocations: 3.938 kB / 0.6685 GB, free: 2.383 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.236e-05/0.7161, allocations: 0 / 0.6685 GB, free: 2.383 MB / 458.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001147/0.7162, allocations: 37.62 kB / 0.6685 GB, free: 2.34 MB / 458.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.7162, allocations: 0 / 0.6685 GB, free: 2.34 MB / 458.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.077e-06/0.7163, allocations: 0 / 0.6685 GB, free: 2.34 MB / 458.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.711e-06/0.7163, allocations: 0 / 0.6685 GB, free: 2.34 MB / 458.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.96e-05/0.7163, allocations: 7.953 kB / 0.6685 GB, free: 2.332 MB / 458.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001903/0.7165, allocations: 149.7 kB / 0.6687 GB, free: 2.137 MB / 458.7 MB Notification: Performance of preOpt comSubExp (simulation): time 5.486e-05/0.7166, allocations: 26.59 kB / 0.6687 GB, free: 2.102 MB / 458.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001555/0.7167, allocations: 77.11 kB / 0.6688 GB, free: 2.008 MB / 458.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.094e-05/0.7168, allocations: 43.44 kB / 0.6688 GB, free: 1.957 MB / 458.7 MB Notification: Performance of pre-optimization done (n=2): time 1.252e-06/0.7168, allocations: 0 / 0.6688 GB, free: 1.957 MB / 458.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001459/0.7169, allocations: 41.59 kB / 0.6689 GB, free: 1.91 MB / 458.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.642e-05/0.717, allocations: 55.53 kB / 0.6689 GB, free: 1.844 MB / 458.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.5e-05/0.717, allocations: 89 kB / 0.669 GB, free: 1.75 MB / 458.7 MB Notification: Performance of collectPreVariables (initialization): time 1.437e-05/0.7171, allocations: 25.7 kB / 0.669 GB, free: 1.719 MB / 458.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.22e-05/0.7171, allocations: 80.14 kB / 0.6691 GB, free: 1.637 MB / 458.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.667e-05/0.7171, allocations: 0 / 0.6691 GB, free: 1.637 MB / 458.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.184e-06/0.7171, allocations: 4 kB / 0.6691 GB, free: 1.633 MB / 458.7 MB Notification: Performance of setup shared object (initialization): time 0.0001409/0.7173, allocations: 314.8 kB / 0.6694 GB, free: 1.316 MB / 458.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.738e-06/0.7173, allocations: 0 / 0.6694 GB, free: 1.316 MB / 458.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.989e-06/0.7173, allocations: 7.984 kB / 0.6694 GB, free: 1.309 MB / 458.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.09e-05/0.7173, allocations: 8.062 kB / 0.6694 GB, free: 1.301 MB / 458.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.7174, allocations: 0 / 0.6694 GB, free: 1.301 MB / 458.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.98e-05/0.7174, allocations: 37.64 kB / 0.6695 GB, free: 1.258 MB / 458.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.506e-05/0.7174, allocations: 8 kB / 0.6695 GB, free: 1.25 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.7174, allocations: 0 / 0.6695 GB, free: 1.25 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.18e-05/0.7175, allocations: 0 / 0.6695 GB, free: 1.25 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.993e-05/0.7175, allocations: 7.984 kB / 0.6695 GB, free: 1.242 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.416e-06/0.7175, allocations: 0 / 0.6695 GB, free: 1.242 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.408e-05/0.7176, allocations: 3.938 kB / 0.6695 GB, free: 1.238 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.929e-06/0.7176, allocations: 4.594 kB / 0.6695 GB, free: 1.234 MB / 458.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 () * Number of clocked 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 8.358e-05/0.7177, allocations: 117.7 kB / 0.6696 GB, free: 1.109 MB / 458.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.011e-05/0.7177, allocations: 7.984 kB / 0.6696 GB, free: 1.102 MB / 458.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001124/0.7178, allocations: 44.75 kB / 0.6696 GB, free: 1.055 MB / 458.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.272e-06/0.7178, allocations: 6.312 kB / 0.6697 GB, free: 1.051 MB / 458.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.7178, allocations: 0 / 0.6697 GB, free: 1.051 MB / 458.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.7178, allocations: 0 / 0.6697 GB, free: 1.051 MB / 458.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001131/0.718, allocations: 153.5 kB / 0.6698 GB, free: 0.8516 MB / 458.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.152e-06/0.718, allocations: 0 / 0.6698 GB, free: 0.8516 MB / 458.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.72e-05/0.718, allocations: 8.031 kB / 0.6698 GB, free: 0.8438 MB / 458.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.718, allocations: 0 / 0.6698 GB, free: 0.8438 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.801e-06/0.718, allocations: 0 / 0.6698 GB, free: 0.8438 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.607e-06/0.718, allocations: 4 kB / 0.6698 GB, free: 0.8398 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.718, allocations: 0 / 0.6698 GB, free: 0.8398 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.706e-05/0.7181, allocations: 65.08 kB / 0.6699 GB, free: 0.7578 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.388e-05/0.7182, allocations: 81.05 kB / 0.67 GB, free: 0.6602 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.359e-05/0.7182, allocations: 4.031 kB / 0.67 GB, free: 0.6562 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.174e-05/0.7182, allocations: 0 / 0.67 GB, free: 0.6562 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.297e-05/0.7183, allocations: 4 kB / 0.67 GB, free: 0.6523 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.739e-06/0.7183, allocations: 4 kB / 0.67 GB, free: 0.6484 MB / 458.7 MB Notification: Performance of sorting global known variables: time 4.501e-05/0.7183, allocations: 75.28 kB / 0.67 GB, free: 0.5742 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.7183, allocations: 0 / 0.67 GB, free: 0.5742 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.0002034/0.7185, allocations: 7.984 kB / 0.67 GB, free: 0.5664 MB / 458.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 () * Number of clocked 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.0005224/0.7191, allocations: 0.6124 MB / 0.6706 GB, free: 15.92 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 7.865e-05/0.7192, allocations: 15.94 kB / 0.6707 GB, free: 15.91 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 1.783e-06/0.7192, allocations: 0 / 0.6707 GB, free: 15.91 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 1.73e-05/0.7192, allocations: 4 kB / 0.6707 GB, free: 15.9 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.106e-05/0.7193, allocations: 0 / 0.6707 GB, free: 15.9 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003458/0.7196, allocations: 117.6 kB / 0.6708 GB, free: 15.75 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000305/0.72, allocations: 0.677 MB / 0.6714 GB, free: 15.05 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 2.185e-05/0.72, allocations: 8 kB / 0.6714 GB, free: 15.04 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.836e-05/0.72, allocations: 7.438 kB / 0.6714 GB, free: 15.03 MB / 474.7 MB Notification: Performance of SimCode: time 4.91e-07/0.72, allocations: 0 / 0.6714 GB, free: 15.03 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01401/0.734, allocations: 0.8653 MB / 0.6723 GB, free: 14.29 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002533/0.7343, allocations: 170.9 kB / 0.6725 GB, free: 14.06 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.458/2.192, allocations: 0 / 0.6725 GB, free: 14.06 MB / 474.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)