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.854/0.854, allocations: 128.7 MB / 143.7 MB, free: 2.312 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.001019/0.001019, allocations: 186.4 kB / 173.7 MB, free: 6.125 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.567/1.567, allocations: 205.4 MB / 409 MB, free: 10.5 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.000891/0.0008907, allocations: 93.39 kB / 486.6 MB, free: 13 MB / 378.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003197/0.0003197, allocations: 11.25 kB / 0.5604 GB, free: 97.5 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1532/0.1536, allocations: 76.77 MB / 0.6354 GB, free: 30.45 MB / 442.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1338/0.2874, allocations: 101.9 MB / 0.7349 GB, free: 8.395 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002498/0.2877, allocations: 79.95 kB / 0.735 GB, free: 8.316 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.001071/0.2888, allocations: 0.5243 MB / 0.7355 GB, free: 7.789 MB / 0.5105 GB Notification: Performance of FrontEnd: time 2.245e-06/0.2888, allocations: 0 / 0.7355 GB, free: 7.789 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 4.619e-06/0.2888, allocations: 4 kB / 0.7355 GB, free: 7.785 MB / 0.5105 GB 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.0002421/0.2891, allocations: 331.3 kB / 0.7358 GB, free: 7.414 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 3.913e-05/0.2891, allocations: 8.031 kB / 0.7359 GB, free: 7.406 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.635e-05/0.2892, allocations: 30.56 kB / 0.7359 GB, free: 7.367 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.749e-05/0.2892, allocations: 11.94 kB / 0.7359 GB, free: 7.355 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.481e-05/0.2893, allocations: 159.1 kB / 0.736 GB, free: 7.16 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.041e-05/0.2893, allocations: 0 / 0.736 GB, free: 7.16 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.843e-06/0.2894, allocations: 7.938 kB / 0.7361 GB, free: 7.152 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.614e-05/0.2894, allocations: 33.7 kB / 0.7361 GB, free: 7.113 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.852e-06/0.2895, allocations: 4 kB / 0.7361 GB, free: 7.109 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.853e-06/0.2895, allocations: 0 / 0.7361 GB, free: 7.109 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.088e-06/0.2895, allocations: 0 / 0.7361 GB, free: 7.109 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.715e-05/0.2895, allocations: 11.94 kB / 0.7361 GB, free: 7.098 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001478/0.2897, allocations: 145.7 kB / 0.7362 GB, free: 6.906 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 5.245e-05/0.2897, allocations: 18.61 kB / 0.7363 GB, free: 6.879 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001305/0.2899, allocations: 89.09 kB / 0.7363 GB, free: 6.773 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.393e-05/0.2899, allocations: 34.56 kB / 0.7364 GB, free: 6.73 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=2): time 9.32e-07/0.2899, allocations: 0 / 0.7364 GB, free: 6.73 MB / 0.5105 GB Notification: Performance of matching and sorting (n=2): time 0.0001256/0.29, allocations: 41.69 kB / 0.7364 GB, free: 6.684 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.983e-05/0.2901, allocations: 55.41 kB / 0.7365 GB, free: 6.617 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.398e-05/0.2901, allocations: 85 kB / 0.7365 GB, free: 6.527 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 1.255e-05/0.2901, allocations: 25.7 kB / 0.7366 GB, free: 6.496 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 2.8e-05/0.2902, allocations: 80.14 kB / 0.7366 GB, free: 6.414 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 1.999e-05/0.2902, allocations: 11.97 kB / 0.7367 GB, free: 6.402 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.635e-06/0.2902, allocations: 4 kB / 0.7367 GB, free: 6.398 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 0.0001079/0.2903, allocations: 314.8 kB / 0.737 GB, free: 6.082 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.211e-05/0.2903, allocations: 4 kB / 0.737 GB, free: 6.078 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.113e-06/0.2904, allocations: 7.875 kB / 0.737 GB, free: 6.07 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.884e-05/0.2904, allocations: 4 kB / 0.737 GB, free: 6.066 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.2904, allocations: 0 / 0.737 GB, free: 6.066 MB / 0.5105 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.673e-05/0.2905, allocations: 41.69 kB / 0.737 GB, free: 6.02 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 1.221e-05/0.2905, allocations: 4 kB / 0.737 GB, free: 6.016 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.486e-06/0.2905, allocations: 4.094 kB / 0.737 GB, free: 6.012 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.2905, allocations: 0 / 0.737 GB, free: 6.012 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.044e-05/0.2906, allocations: 4 kB / 0.737 GB, free: 6.008 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.809e-06/0.2906, allocations: 0 / 0.737 GB, free: 6.008 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.473e-05/0.2906, allocations: 4 kB / 0.737 GB, free: 6.004 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.893e-06/0.2906, allocations: 3.984 kB / 0.737 GB, free: 6 MB / 0.5105 GB 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 6.46e-05/0.2907, allocations: 109.8 kB / 0.7371 GB, free: 5.883 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.671e-06/0.2907, allocations: 0 / 0.7371 GB, free: 5.883 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.304e-05/0.2908, allocations: 52.75 kB / 0.7372 GB, free: 5.824 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.674e-06/0.2908, allocations: 0 / 0.7372 GB, free: 5.824 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.2908, allocations: 0 / 0.7372 GB, free: 5.824 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.2908, allocations: 0 / 0.7372 GB, free: 5.824 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.256e-05/0.2909, allocations: 153.6 kB / 0.7373 GB, free: 5.625 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.2909, allocations: 0 / 0.7373 GB, free: 5.625 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.196e-05/0.2909, allocations: 4 kB / 0.7373 GB, free: 5.621 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.516e-06/0.291, allocations: 3.984 kB / 0.7373 GB, free: 5.617 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.071e-06/0.291, allocations: 0 / 0.7373 GB, free: 5.617 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.291, allocations: 0 / 0.7373 GB, free: 5.617 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.01e-07/0.291, allocations: 0 / 0.7373 GB, free: 5.617 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.842e-05/0.2911, allocations: 69.06 kB / 0.7374 GB, free: 5.531 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 3.604e-05/0.2911, allocations: 89.08 kB / 0.7375 GB, free: 5.426 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.088e-05/0.2911, allocations: 0 / 0.7375 GB, free: 5.426 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.042e-05/0.2911, allocations: 0 / 0.7375 GB, free: 5.426 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.927e-05/0.2912, allocations: 4 kB / 0.7375 GB, free: 5.422 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.481e-06/0.2912, allocations: 4 kB / 0.7375 GB, free: 5.418 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 3.046e-05/0.2912, allocations: 79.22 kB / 0.7376 GB, free: 5.34 MB / 0.5105 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2912, allocations: 4.031 kB / 0.7376 GB, free: 5.336 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0002278/0.2915, allocations: 4 kB / 0.7376 GB, free: 5.332 MB / 0.5105 GB 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.000393/0.2919, allocations: 0.6142 MB / 0.7382 GB, free: 4.688 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 6.635e-05/0.2919, allocations: 11.94 kB / 0.7382 GB, free: 4.676 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.2919, allocations: 4.094 kB / 0.7382 GB, free: 4.672 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 1.308e-05/0.292, allocations: 7.938 kB / 0.7382 GB, free: 4.664 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.015e-05/0.2921, allocations: 0 / 0.7382 GB, free: 4.664 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002954/0.2924, allocations: 112.7 kB / 0.7383 GB, free: 4.512 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002391/0.2926, allocations: 0.677 MB / 0.739 GB, free: 3.809 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 1.919e-05/0.2926, allocations: 7.984 kB / 0.739 GB, free: 3.801 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.949e-05/0.2927, allocations: 11.38 kB / 0.739 GB, free: 3.789 MB / 0.5105 GB Notification: Performance of SimCode: time 2.3e-07/0.2927, allocations: 0 / 0.739 GB, free: 3.789 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01257/0.3052, allocations: 0.8639 MB / 0.7398 GB, free: 3.07 MB / 0.5105 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00023/0.3055, allocations: 190.7 kB / 0.74 GB, free: 2.828 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.426/1.731, allocations: 0 / 0.74 GB, free: 2.828 MB / 0.5105 GB (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)