Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) 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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) 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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Running command: translateModel(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial") translateModel(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.7549/0.7549, allocations: 141.7 MB / 154.3 MB, free: 15.49 MB / 138.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001126/0.001126, allocations: 187 kB / 187.3 MB, free: 11.88 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.57/1.57, allocations: 221.3 MB / 441.4 MB, free: 4.613 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008671/0.000867, allocations: 92.2 kB / 0.5124 GB, free: 24.21 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001739/0.001739, allocations: 292.1 kB / 0.594 GB, free: 7.961 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 4.436e-05/4.463e-05, allocations: 4 kB / 0.6835 GB, free: 12.23 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4074/0.4075, allocations: 82.76 MB / 0.7643 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1185/0.5261, allocations: 107.9 MB / 0.8696 GB, free: 0.6758 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001944/0.5263, allocations: 75.83 kB / 0.8697 GB, free: 0.6055 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.0009163/0.5273, allocations: 0.5274 MB / 0.8702 GB, free: 80 kB / 0.5261 GB Notification: Performance of FrontEnd: time 1.373e-06/0.5273, allocations: 0.625 kB / 0.8702 GB, free: 80 kB / 0.5261 GB Notification: Performance of Transformations before backend: time 5.45e-06/0.5273, allocations: 0 / 0.8702 GB, free: 80 kB / 0.5261 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.0002186/0.5275, allocations: 312.5 kB / 0.8705 GB, free: 15.73 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 3.767e-05/0.5276, allocations: 8.531 kB / 0.8705 GB, free: 15.72 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.316e-05/0.5276, allocations: 4.469 kB / 0.8705 GB, free: 15.72 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.239e-05/0.5277, allocations: 159.6 kB / 0.8707 GB, free: 15.52 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.412e-05/0.5277, allocations: 4.984 kB / 0.8707 GB, free: 15.52 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.296e-05/0.5277, allocations: 4 kB / 0.8707 GB, free: 15.52 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.327e-05/0.5278, allocations: 38.12 kB / 0.8707 GB, free: 15.47 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.5278, allocations: 4 kB / 0.8707 GB, free: 15.47 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.073e-06/0.5278, allocations: 0.5938 kB / 0.8707 GB, free: 15.47 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.531e-06/0.5279, allocations: 4.859 kB / 0.8707 GB, free: 15.46 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.805e-05/0.5279, allocations: 4 kB / 0.8707 GB, free: 15.46 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001226/0.528, allocations: 146.3 kB / 0.8709 GB, free: 15.27 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 4.649e-05/0.5281, allocations: 23.64 kB / 0.8709 GB, free: 15.24 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.029e-05/0.5281, allocations: 17.73 kB / 0.8709 GB, free: 15.22 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001207/0.5282, allocations: 81.11 kB / 0.871 GB, free: 15.12 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.263e-05/0.5283, allocations: 35.41 kB / 0.871 GB, free: 15.08 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.5283, allocations: 0.5312 kB / 0.871 GB, free: 15.08 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2): time 0.0001067/0.5284, allocations: 40.59 kB / 0.8711 GB, free: 15.04 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.855e-05/0.5284, allocations: 55.34 kB / 0.8711 GB, free: 14.97 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.595e-05/0.5285, allocations: 85 kB / 0.8712 GB, free: 14.88 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.096e-05/0.5285, allocations: 25.7 kB / 0.8712 GB, free: 14.85 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 3.978e-05/0.5285, allocations: 80.14 kB / 0.8713 GB, free: 14.77 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.471e-05/0.5286, allocations: 7.906 kB / 0.8713 GB, free: 14.76 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.635e-06/0.5286, allocations: 4.531 kB / 0.8713 GB, free: 14.75 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.000107/0.5287, allocations: 314.3 kB / 0.8716 GB, free: 14.44 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.067e-06/0.5287, allocations: 0 / 0.8716 GB, free: 14.44 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.965e-06/0.5287, allocations: 4 kB / 0.8716 GB, free: 14.44 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.553e-05/0.5287, allocations: 0 / 0.8716 GB, free: 14.44 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.153e-06/0.5287, allocations: 0 / 0.8716 GB, free: 14.44 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.544e-05/0.5288, allocations: 41.69 kB / 0.8717 GB, free: 14.39 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.308e-05/0.5288, allocations: 11.95 kB / 0.8717 GB, free: 14.38 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-06/0.5288, allocations: 128 / 0.8717 GB, free: 14.38 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 8.596e-06/0.5288, allocations: 4 kB / 0.8717 GB, free: 14.38 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.084e-05/0.5289, allocations: 4 kB / 0.8717 GB, free: 14.37 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/0.5289, allocations: 0 / 0.8717 GB, free: 14.37 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.45e-05/0.5289, allocations: 7.875 kB / 0.8717 GB, free: 14.36 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.878e-06/0.5289, allocations: 0 / 0.8717 GB, free: 14.36 MB / 0.5417 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 () * 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 5.904e-05/0.529, allocations: 105 kB / 0.8718 GB, free: 14.25 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.476e-06/0.529, allocations: 3.984 kB / 0.8718 GB, free: 14.25 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.176e-05/0.5291, allocations: 44.78 kB / 0.8718 GB, free: 14.2 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.353e-06/0.5291, allocations: 4.031 kB / 0.8718 GB, free: 14.2 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.126e-06/0.5291, allocations: 0 / 0.8718 GB, free: 14.2 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.5291, allocations: 0 / 0.8718 GB, free: 14.2 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.364e-05/0.5292, allocations: 149.7 kB / 0.872 GB, free: 14 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.5292, allocations: 7.938 kB / 0.872 GB, free: 14 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.018e-05/0.5293, allocations: 0 / 0.872 GB, free: 14 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.483e-06/0.5293, allocations: 0 / 0.872 GB, free: 14 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.143e-06/0.5293, allocations: 4 kB / 0.872 GB, free: 13.99 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.5293, allocations: 3.953 kB / 0.872 GB, free: 13.99 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/0.5293, allocations: 3.984 kB / 0.872 GB, free: 13.98 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.768e-05/0.5294, allocations: 65.08 kB / 0.8721 GB, free: 13.9 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 3.624e-05/0.5294, allocations: 77.11 kB / 0.8721 GB, free: 13.81 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.369e-05/0.5294, allocations: 7.984 kB / 0.8721 GB, free: 13.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.157e-05/0.5295, allocations: 4 kB / 0.8721 GB, free: 13.8 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.268e-05/0.5295, allocations: 3.953 kB / 0.8721 GB, free: 13.79 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.184e-06/0.5295, allocations: 0 / 0.8721 GB, free: 13.79 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 2.367e-05/0.5295, allocations: 75.28 kB / 0.8722 GB, free: 13.72 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.51e-07/0.5295, allocations: 4.031 kB / 0.8722 GB, free: 13.71 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0001887/0.5297, allocations: 12 kB / 0.8722 GB, free: 13.7 MB / 0.5417 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 () * 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.0001352/0.5299, allocations: 103.2 kB / 0.8723 GB, free: 13.59 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 6.679e-05/0.5299, allocations: 19.88 kB / 0.8723 GB, free: 13.57 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.383e-06/0.5299, allocations: 0 / 0.8723 GB, free: 13.57 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 1.534e-05/0.53, allocations: 4 kB / 0.8724 GB, free: 13.57 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 7.223e-05/0.53, allocations: 0 / 0.8724 GB, free: 13.57 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001311/0.5302, allocations: 57.31 kB / 0.8724 GB, free: 13.49 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002369/0.5304, allocations: 0.677 MB / 0.8731 GB, free: 12.79 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 1.263e-05/0.5304, allocations: 3.75 kB / 0.8731 GB, free: 12.79 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.282e-05/0.5305, allocations: 7.438 kB / 0.8731 GB, free: 12.78 MB / 0.5417 GB Notification: Performance of SimCode: time 2.5e-07/0.5305, allocations: 0 / 0.8731 GB, free: 12.78 MB / 0.5417 GB Notification: Performance of Templates: time 0.001802/0.5323, allocations: 319.9 kB / 0.8734 GB, free: 12.47 MB / 0.5417 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)