Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.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.Examples.Factorial,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_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.7169/0.7169, allocations: 127.4 MB / 134.9 MB, free: 3.73 MB / 106.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001051/0.001051, allocations: 168.9 kB / 164.6 MB, free: 6.539 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.794/1.794, allocations: 205.2 MB / 399.5 MB, free: 5.93 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.0008688/0.0008689, allocations: 95.55 kB / 476.7 MB, free: 8.648 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 2.619e-05/2.621e-05, allocations: 7.984 kB / 0.5467 GB, free: 60.41 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1857/0.1857, allocations: 76.76 MB / 0.6216 GB, free: 15.57 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6403/0.8261, allocations: 102.2 MB / 0.7215 GB, free: 13.41 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002526/0.8264, allocations: 72.95 kB / 0.7215 GB, free: 13.37 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002648/0.8291, allocations: 0.9338 MB / 0.7224 GB, free: 12.54 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.8291, allocations: 2.188 kB / 0.7225 GB, free: 12.54 MB / 490.7 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.8291, allocations: 0 / 0.7225 GB, free: 12.54 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.000375/0.8295, allocations: 342.5 kB / 0.7228 GB, free: 12.16 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.626e-05/0.8295, allocations: 8.031 kB / 0.7228 GB, free: 12.16 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.331e-05/0.8296, allocations: 8.734 kB / 0.7228 GB, free: 12.15 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001231/0.8297, allocations: 166.2 kB / 0.723 GB, free: 11.95 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.054e-05/0.8297, allocations: 0 / 0.723 GB, free: 11.95 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.382e-05/0.8298, allocations: 4 kB / 0.723 GB, free: 11.95 MB / 490.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.131e-05/0.8298, allocations: 22.55 kB / 0.723 GB, free: 11.93 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.083e-05/0.8299, allocations: 44.5 kB / 0.723 GB, free: 11.88 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.064e-06/0.8299, allocations: 0 / 0.723 GB, free: 11.88 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.207e-06/0.83, allocations: 0 / 0.723 GB, free: 11.88 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.468e-06/0.83, allocations: 0 / 0.723 GB, free: 11.88 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004618/0.8304, allocations: 260.7 kB / 0.7233 GB, free: 11.6 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002127/0.8307, allocations: 42.09 kB / 0.7233 GB, free: 11.56 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.554e-05/0.8307, allocations: 23.97 kB / 0.7233 GB, free: 11.54 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001249/0.8308, allocations: 85.08 kB / 0.7234 GB, free: 11.43 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.833e-05/0.8309, allocations: 38.56 kB / 0.7235 GB, free: 11.39 MB / 490.7 MB Notification: Performance of pre-optimization done (n=3): time 1.011e-06/0.8309, allocations: 0 / 0.7235 GB, free: 11.39 MB / 490.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001973/0.8311, allocations: 48.06 kB / 0.7235 GB, free: 11.34 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.411e-05/0.8311, allocations: 55.36 kB / 0.7235 GB, free: 11.27 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.909e-05/0.8312, allocations: 96.23 kB / 0.7236 GB, free: 11.18 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.395e-05/0.8312, allocations: 29.64 kB / 0.7237 GB, free: 11.14 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.844e-05/0.8313, allocations: 83.52 kB / 0.7237 GB, free: 11.06 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.805e-05/0.8313, allocations: 7.906 kB / 0.7238 GB, free: 11.05 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.709e-06/0.8313, allocations: 0 / 0.7238 GB, free: 11.05 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.000127/0.8315, allocations: 314.8 kB / 0.7241 GB, free: 10.73 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.881e-05/0.8315, allocations: 7.312 kB / 0.7241 GB, free: 10.73 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.528e-05/0.8315, allocations: 7.375 kB / 0.7241 GB, free: 10.73 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.556e-05/0.8315, allocations: 7.984 kB / 0.7241 GB, free: 10.72 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.463e-06/0.8316, allocations: 3.938 kB / 0.7241 GB, free: 10.71 MB / 490.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 8.679e-05/0.8316, allocations: 52.34 kB / 0.7241 GB, free: 10.66 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.085e-05/0.8317, allocations: 8 kB / 0.7241 GB, free: 10.66 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.11e-06/0.8317, allocations: 0 / 0.7241 GB, free: 10.66 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.165e-05/0.8317, allocations: 0 / 0.7241 GB, free: 10.66 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.948e-05/0.8318, allocations: 19.92 kB / 0.7242 GB, free: 10.64 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.977e-06/0.8318, allocations: 0 / 0.7242 GB, free: 10.64 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.24e-05/0.8319, allocations: 14.61 kB / 0.7242 GB, free: 10.62 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.927e-06/0.8319, allocations: 5.609 kB / 0.7242 GB, free: 10.62 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.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 8.105e-05/0.832, allocations: 105 kB / 0.7243 GB, free: 10.51 MB / 490.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 9.684e-05/0.8321, allocations: 52.12 kB / 0.7243 GB, free: 10.46 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.903e-05/0.8321, allocations: 0 / 0.7243 GB, free: 10.46 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001258/0.8322, allocations: 56.5 kB / 0.7244 GB, free: 10.4 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.8323, allocations: 4 kB / 0.7244 GB, free: 10.4 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.257e-06/0.8323, allocations: 7.938 kB / 0.7244 GB, free: 10.39 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.184e-06/0.8323, allocations: 0 / 0.7244 GB, free: 10.39 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001262/0.8324, allocations: 137.3 kB / 0.7245 GB, free: 10.22 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.8324, allocations: 0 / 0.7245 GB, free: 10.22 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.339e-05/0.8325, allocations: 19.17 kB / 0.7245 GB, free: 10.21 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.8325, allocations: 0 / 0.7245 GB, free: 10.21 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.444e-06/0.8325, allocations: 0 / 0.7245 GB, free: 10.21 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.8325, allocations: 4.625 kB / 0.7245 GB, free: 10.2 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.8325, allocations: 0 / 0.7245 GB, free: 10.2 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001376/0.8327, allocations: 153.5 kB / 0.7247 GB, free: 10.04 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.111e-05/0.8327, allocations: 77.11 kB / 0.7248 GB, free: 9.949 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.318e-05/0.8328, allocations: 0 / 0.7248 GB, free: 9.949 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.168e-05/0.8329, allocations: 15.98 kB / 0.7248 GB, free: 9.934 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.848e-05/0.8329, allocations: 6.719 kB / 0.7248 GB, free: 9.93 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.24e-06/0.8329, allocations: 8 kB / 0.7248 GB, free: 9.922 MB / 490.7 MB Notification: Performance of sorting global known variables: time 3.794e-05/0.833, allocations: 79.27 kB / 0.7249 GB, free: 9.844 MB / 490.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.833, allocations: 4 kB / 0.7249 GB, free: 9.84 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0002137/0.8332, allocations: 22.62 kB / 0.7249 GB, free: 9.82 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.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.0004857/0.8337, allocations: 0.6915 MB / 0.7256 GB, free: 9.109 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 9.619e-05/0.8338, allocations: 18.56 kB / 0.7256 GB, free: 9.098 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.412e-06/0.8338, allocations: 3.938 kB / 0.7256 GB, free: 9.094 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 3.015e-05/0.8338, allocations: 11.5 kB / 0.7256 GB, free: 9.086 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001711/0.834, allocations: 1.797 kB / 0.7256 GB, free: 9.086 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003691/0.8344, allocations: 104 kB / 0.7257 GB, free: 8.953 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002797/0.8347, allocations: 0.6807 MB / 0.7264 GB, free: 8.246 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 3.909e-05/0.8347, allocations: 7.984 kB / 0.7264 GB, free: 8.238 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.104e-05/0.8348, allocations: 19.36 kB / 0.7264 GB, free: 8.219 MB / 490.7 MB Notification: Performance of SimCode: time 2.5e-07/0.8348, allocations: 0 / 0.7264 GB, free: 8.219 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01993/0.8547, allocations: 0.9833 MB / 0.7274 GB, free: 7.258 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002877/0.8551, allocations: 132.7 kB / 0.7275 GB, free: 7.07 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.537/2.392, allocations: 0 / 0.7275 GB, free: 7.07 MB / 490.7 MB (rm -f BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe ; mkfifo BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe >> ../files/BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 BuildSysPro_BuildSysPro_IBPSA_Utilities_Math_Examples_Factorial.fmu > BuildSysPro_BuildSysPro.IBPSA.Utilities.Math.Examples.Factorial.pipe 2>&1)