Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.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 BuildSysPro with version 3.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo) Running command: "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0/package.mo): time 0.8033/0.8033, allocations: 127.3 MB / 139.8 MB, free: 15.48 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001171/0.001171, allocations: 180.8 kB / 169.7 MB, free: 1.734 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.979/1.979, allocations: 205.1 MB / 404.5 MB, free: 1.664 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009564/0.0009559, allocations: 90.88 kB / 481.8 MB, free: 4.32 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 5.555e-05/5.557e-05, allocations: 4 kB / 0.5533 GB, free: 54.76 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2012/0.2013, allocations: 76.76 MB / 0.6283 GB, free: 9.938 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6097/0.811, allocations: 101.8 MB / 0.7277 GB, free: 11.55 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003133/0.8114, allocations: 79.5 kB / 0.7278 GB, free: 11.51 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.001268/0.8127, allocations: 0.5252 MB / 0.7283 GB, free: 11.02 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.8127, allocations: 0 / 0.7283 GB, free: 11.02 MB / 490.7 MB Notification: Performance of Transformations before backend: time 5.69e-06/0.8127, allocations: 0 / 0.7283 GB, free: 11.02 MB / 490.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.0003087/0.813, allocations: 321.8 kB / 0.7286 GB, free: 10.67 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.277e-05/0.8131, allocations: 8.031 kB / 0.7286 GB, free: 10.66 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.478e-05/0.8132, allocations: 30.56 kB / 0.7286 GB, free: 10.62 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.385e-05/0.8132, allocations: 7.953 kB / 0.7286 GB, free: 10.61 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001297/0.8133, allocations: 167 kB / 0.7288 GB, free: 10.41 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.24e-05/0.8133, allocations: 0 / 0.7288 GB, free: 10.41 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.019e-05/0.8134, allocations: 3.984 kB / 0.7288 GB, free: 10.41 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001084/0.8135, allocations: 33.64 kB / 0.7288 GB, free: 10.37 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.8135, allocations: 0 / 0.7288 GB, free: 10.37 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.516e-06/0.8135, allocations: 0 / 0.7288 GB, free: 10.37 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.599e-06/0.8135, allocations: 4 kB / 0.7288 GB, free: 10.37 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.567e-05/0.8136, allocations: 7.953 kB / 0.7288 GB, free: 10.36 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001722/0.8137, allocations: 153.6 kB / 0.729 GB, free: 10.16 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.948e-05/0.8138, allocations: 26.27 kB / 0.729 GB, free: 10.13 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.202e-05/0.8138, allocations: 4.922 kB / 0.729 GB, free: 10.12 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001494/0.814, allocations: 85.09 kB / 0.7291 GB, free: 10.02 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.825e-05/0.814, allocations: 38.06 kB / 0.7291 GB, free: 9.977 MB / 490.7 MB Notification: Performance of pre-optimization done (n=2): time 1.182e-06/0.814, allocations: 4 kB / 0.7291 GB, free: 9.973 MB / 490.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001388/0.8142, allocations: 29.7 kB / 0.7292 GB, free: 9.938 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.364e-05/0.8142, allocations: 51.41 kB / 0.7292 GB, free: 9.875 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.904e-05/0.8143, allocations: 89 kB / 0.7293 GB, free: 9.781 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.401e-05/0.8143, allocations: 25.7 kB / 0.7293 GB, free: 9.75 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.113e-05/0.8143, allocations: 80.14 kB / 0.7294 GB, free: 9.668 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.299e-05/0.8144, allocations: 3.594 kB / 0.7294 GB, free: 9.668 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.615e-06/0.8144, allocations: 0 / 0.7294 GB, free: 9.668 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.8145, allocations: 322.8 kB / 0.7297 GB, free: 9.344 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.235e-05/0.8145, allocations: 7.938 kB / 0.7297 GB, free: 9.336 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.051e-06/0.8145, allocations: 0 / 0.7297 GB, free: 9.336 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.221e-05/0.8146, allocations: 11.19 kB / 0.7297 GB, free: 9.328 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.8146, allocations: 0 / 0.7297 GB, free: 9.328 MB / 490.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 5.548e-05/0.8146, allocations: 37.61 kB / 0.7298 GB, free: 9.285 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.382e-05/0.8146, allocations: 4 kB / 0.7298 GB, free: 9.281 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.8147, allocations: 0 / 0.7298 GB, free: 9.281 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.74e-05/0.8147, allocations: 8.078 kB / 0.7298 GB, free: 9.273 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.065e-05/0.8148, allocations: 7.938 kB / 0.7298 GB, free: 9.27 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/0.8148, allocations: 0 / 0.7298 GB, free: 9.27 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.366e-05/0.8148, allocations: 0 / 0.7298 GB, free: 9.27 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.035e-06/0.8148, allocations: 4.859 kB / 0.7298 GB, free: 9.266 MB / 490.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 8.231e-05/0.8149, allocations: 108.4 kB / 0.7299 GB, free: 9.156 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.841e-06/0.8149, allocations: 0 / 0.7299 GB, free: 9.156 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001158/0.815, allocations: 47.44 kB / 0.7299 GB, free: 9.109 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.506e-06/0.815, allocations: 4.031 kB / 0.7299 GB, free: 9.105 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.815, allocations: 3.938 kB / 0.7299 GB, free: 9.102 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.8151, allocations: 0 / 0.7299 GB, free: 9.102 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001214/0.8152, allocations: 153.6 kB / 0.7301 GB, free: 8.902 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.8152, allocations: 0 / 0.7301 GB, free: 8.902 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.235e-05/0.8152, allocations: 4 kB / 0.7301 GB, free: 8.898 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.463e-06/0.8152, allocations: 0 / 0.7301 GB, free: 8.898 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.292e-06/0.8152, allocations: 0 / 0.7301 GB, free: 8.898 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.21e-07/0.8152, allocations: 0 / 0.7301 GB, free: 8.898 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.8153, allocations: 0 / 0.7301 GB, free: 8.898 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.622e-05/0.8153, allocations: 72.77 kB / 0.7302 GB, free: 8.812 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.632e-05/0.8154, allocations: 81.11 kB / 0.7302 GB, free: 8.715 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.324e-05/0.8154, allocations: 3.812 kB / 0.7302 GB, free: 8.715 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.027e-05/0.8154, allocations: 0 / 0.7302 GB, free: 8.715 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.96e-05/0.8155, allocations: 0 / 0.7302 GB, free: 8.715 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.178e-06/0.8155, allocations: 4 kB / 0.7302 GB, free: 8.711 MB / 490.7 MB Notification: Performance of sorting global known variables: time 3.6e-05/0.8155, allocations: 81.98 kB / 0.7303 GB, free: 8.633 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.8155, allocations: 0 / 0.7303 GB, free: 8.633 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0001945/0.8157, allocations: 12.03 kB / 0.7303 GB, free: 8.621 MB / 490.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.0004645/0.8162, allocations: 0.6081 MB / 0.7309 GB, free: 7.988 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 7.535e-05/0.8163, allocations: 11.31 kB / 0.7309 GB, free: 7.98 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.8163, allocations: 0 / 0.7309 GB, free: 7.98 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 1.701e-05/0.8163, allocations: 8.094 kB / 0.731 GB, free: 7.973 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001056/0.8164, allocations: 0 / 0.731 GB, free: 7.973 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002817/0.8167, allocations: 90.27 kB / 0.731 GB, free: 7.852 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002603/0.817, allocations: 0.677 MB / 0.7317 GB, free: 7.148 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 4.963e-05/0.8171, allocations: 3.984 kB / 0.7317 GB, free: 7.145 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.433e-05/0.8171, allocations: 15.38 kB / 0.7317 GB, free: 7.129 MB / 490.7 MB Notification: Performance of SimCode: time 3.5e-07/0.8171, allocations: 3.938 kB / 0.7317 GB, free: 7.125 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01179/0.8289, allocations: 0.8856 MB / 0.7326 GB, free: 6.359 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002031/0.8292, allocations: 161.5 kB / 0.7327 GB, free: 6.137 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.484/2.314, allocations: 4 kB / 0.7327 GB, free: 6.133 MB / 490.7 MB (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Functions_Examples_Factorial.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)