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.7262/0.7262, allocations: 127.3 MB / 139.8 MB, free: 15.43 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.001019/0.001019, allocations: 179.8 kB / 169.7 MB, free: 1.754 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.599/1.599, allocations: 205.1 MB / 404.5 MB, free: 1.652 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.0008155/0.0008154, allocations: 95.36 kB / 481.8 MB, free: 4.301 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 3.574e-05/3.585e-05, allocations: 4 kB / 0.5533 GB, free: 54.76 MB / 394.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1578/0.1579, allocations: 76.76 MB / 0.6283 GB, free: 9.941 MB / 426.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5601/0.718, allocations: 102.8 MB / 0.7286 GB, free: 10.63 MB / 490.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002536/0.7183, allocations: 73.2 kB / 0.7287 GB, free: 10.59 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002707/0.7211, allocations: 0.9316 MB / 0.7296 GB, free: 9.754 MB / 490.7 MB Notification: Performance of FrontEnd: time 1.874e-06/0.7211, allocations: 0 / 0.7296 GB, free: 9.754 MB / 490.7 MB Notification: Performance of Transformations before backend: time 8.505e-06/0.7211, allocations: 0 / 0.7296 GB, free: 9.754 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.0003705/0.7215, allocations: 345.6 kB / 0.7299 GB, free: 9.375 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.545e-05/0.7216, allocations: 12.03 kB / 0.7299 GB, free: 9.363 MB / 490.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.122e-05/0.7216, allocations: 36.12 kB / 0.73 GB, free: 9.324 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.015e-05/0.7216, allocations: 8.734 kB / 0.73 GB, free: 9.316 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001386/0.7218, allocations: 163 kB / 0.7301 GB, free: 9.117 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.886e-05/0.7218, allocations: 7.938 kB / 0.7301 GB, free: 9.109 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.062e-05/0.7218, allocations: 0 / 0.7301 GB, free: 9.109 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001102/0.722, allocations: 44.94 kB / 0.7302 GB, free: 9.066 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.201e-05/0.722, allocations: 3.984 kB / 0.7302 GB, free: 9.062 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.096e-05/0.722, allocations: 3.984 kB / 0.7302 GB, free: 9.059 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.234e-06/0.722, allocations: 4 kB / 0.7302 GB, free: 9.055 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.506e-05/0.7221, allocations: 22.39 kB / 0.7302 GB, free: 9.039 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004832/0.7226, allocations: 287.3 kB / 0.7305 GB, free: 8.723 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002352/0.7228, allocations: 45.03 kB / 0.7305 GB, free: 8.676 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.324e-05/0.7229, allocations: 16.67 kB / 0.7305 GB, free: 8.66 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001224/0.723, allocations: 81.11 kB / 0.7306 GB, free: 8.562 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.369e-05/0.723, allocations: 37.25 kB / 0.7307 GB, free: 8.52 MB / 490.7 MB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.723, allocations: 0 / 0.7307 GB, free: 8.52 MB / 490.7 MB Notification: Performance of matching and sorting (n=3): time 0.000169/0.7232, allocations: 53.42 kB / 0.7307 GB, free: 8.465 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.478e-05/0.7233, allocations: 55.41 kB / 0.7308 GB, free: 8.398 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.502e-05/0.7234, allocations: 95.86 kB / 0.7309 GB, free: 8.301 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 3.269e-05/0.7234, allocations: 29.33 kB / 0.7309 GB, free: 8.27 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.453e-05/0.7234, allocations: 84.14 kB / 0.731 GB, free: 8.184 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.797e-05/0.7235, allocations: 7.906 kB / 0.731 GB, free: 8.176 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.157e-06/0.7235, allocations: 0 / 0.731 GB, free: 8.176 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.7236, allocations: 314.7 kB / 0.7313 GB, free: 7.863 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.309e-05/0.7236, allocations: 7.984 kB / 0.7313 GB, free: 7.855 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.83e-05/0.7237, allocations: 7.438 kB / 0.7313 GB, free: 7.852 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.651e-05/0.7237, allocations: 7.75 kB / 0.7313 GB, free: 7.848 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.7237, allocations: 0 / 0.7313 GB, free: 7.848 MB / 490.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 8.948e-05/0.7238, allocations: 58.34 kB / 0.7314 GB, free: 7.789 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.643e-05/0.7238, allocations: 8 kB / 0.7314 GB, free: 7.781 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.003e-06/0.7238, allocations: 4.719 kB / 0.7314 GB, free: 7.777 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.149e-05/0.7239, allocations: 0 / 0.7314 GB, free: 7.777 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.006e-05/0.724, allocations: 19.94 kB / 0.7314 GB, free: 7.758 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.313e-06/0.724, allocations: 0 / 0.7314 GB, free: 7.758 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.328e-05/0.7241, allocations: 11.98 kB / 0.7314 GB, free: 7.746 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.887e-06/0.7241, allocations: 3.812 kB / 0.7314 GB, free: 7.746 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.108e-05/0.7242, allocations: 105 kB / 0.7315 GB, free: 7.637 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.388e-05/0.7242, allocations: 4 kB / 0.7315 GB, free: 7.633 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001351/0.7243, allocations: 56.48 kB / 0.7316 GB, free: 7.578 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.7243, allocations: 432 / 0.7316 GB, free: 7.578 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.153e-06/0.7244, allocations: 3.953 kB / 0.7316 GB, free: 7.574 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.915e-06/0.7244, allocations: 3.938 kB / 0.7316 GB, free: 7.57 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001737/0.7245, allocations: 169.1 kB / 0.7317 GB, free: 7.363 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.11e-07/0.7245, allocations: 0 / 0.7317 GB, free: 7.363 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.341e-05/0.7246, allocations: 19.98 kB / 0.7317 GB, free: 7.344 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.955e-06/0.7246, allocations: 3.984 kB / 0.7317 GB, free: 7.34 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.956e-06/0.7247, allocations: 0 / 0.7317 GB, free: 7.34 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.955e-06/0.7247, allocations: 3.984 kB / 0.7317 GB, free: 7.336 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.7247, allocations: 0 / 0.7317 GB, free: 7.336 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001466/0.7248, allocations: 151 kB / 0.7319 GB, free: 7.18 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.427e-05/0.7249, allocations: 77.11 kB / 0.732 GB, free: 7.086 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.395e-05/0.7249, allocations: 0 / 0.732 GB, free: 7.086 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.106e-05/0.725, allocations: 15.98 kB / 0.732 GB, free: 7.07 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.585e-05/0.7251, allocations: 7.484 kB / 0.732 GB, free: 7.066 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.108e-06/0.7251, allocations: 4 kB / 0.732 GB, free: 7.062 MB / 490.7 MB Notification: Performance of sorting global known variables: time 3.608e-05/0.7251, allocations: 79.28 kB / 0.7321 GB, free: 6.984 MB / 490.7 MB Notification: Performance of sort global known variables: time 6.753e-06/0.7251, allocations: 3.938 kB / 0.7321 GB, free: 6.98 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0002102/0.7253, allocations: 31.39 kB / 0.7321 GB, free: 6.953 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.0004629/0.7258, allocations: 0.6844 MB / 0.7328 GB, free: 6.25 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 9.125e-05/0.7259, allocations: 22.38 kB / 0.7328 GB, free: 6.234 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.7259, allocations: 3.938 kB / 0.7328 GB, free: 6.23 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 3.387e-05/0.726, allocations: 15.92 kB / 0.7328 GB, free: 6.219 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001654/0.7261, allocations: 0 / 0.7328 GB, free: 6.219 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003571/0.7265, allocations: 97.64 kB / 0.7329 GB, free: 6.094 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002867/0.7268, allocations: 0.6887 MB / 0.7336 GB, free: 5.379 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 3.375e-05/0.7268, allocations: 4 kB / 0.7336 GB, free: 5.375 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.887e-05/0.7269, allocations: 11.12 kB / 0.7336 GB, free: 5.367 MB / 490.7 MB Notification: Performance of SimCode: time 2.31e-07/0.7269, allocations: 0 / 0.7336 GB, free: 5.367 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01332/0.7402, allocations: 1.287 MB / 0.7348 GB, free: 4.191 MB / 490.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000206/0.7405, allocations: 161.6 kB / 0.735 GB, free: 3.961 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.578/2.319, allocations: 0 / 0.735 GB, free: 3.961 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)