Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.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: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8686/0.8686, allocations: 141.7 MB / 154.3 MB, free: 15.48 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.001196/0.001196, allocations: 181.5 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.644/1.644, allocations: 221.3 MB / 441.4 MB, free: 4.641 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.0009864/0.0009865, allocations: 96.31 kB / 0.5124 GB, free: 24.24 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001875/0.001875, allocations: 274.6 kB / 0.5939 GB, free: 7.941 MB / 442.7 MB Notification: Performance of FrontEnd - loaded program: time 4.438e-05/4.441e-05, allocations: 8 kB / 0.6835 GB, free: 12.14 MB / 0.5261 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5659/0.5659, allocations: 82.78 MB / 0.7644 GB, free: 108.7 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1389/0.7049, allocations: 108.8 MB / 0.8707 GB, free: 15.67 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002954/0.7053, allocations: 75.89 kB / 0.8707 GB, free: 15.6 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.003004/0.7083, allocations: 0.9437 MB / 0.8717 GB, free: 14.66 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.324e-06/0.7083, allocations: 0 / 0.8717 GB, free: 14.66 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 8.135e-06/0.7084, allocations: 1.75 kB / 0.8717 GB, free: 14.66 MB / 0.5417 GB 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.0004253/0.7088, allocations: 348.3 kB / 0.872 GB, free: 14.28 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 6.037e-05/0.7089, allocations: 8.031 kB / 0.872 GB, free: 14.27 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.396e-05/0.7089, allocations: 42.5 kB / 0.872 GB, free: 14.22 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.659e-05/0.709, allocations: 0 / 0.872 GB, free: 14.22 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001607/0.7091, allocations: 163 kB / 0.8722 GB, free: 14.02 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.188e-05/0.7092, allocations: 9.328 kB / 0.8722 GB, free: 14.01 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.877e-05/0.7092, allocations: 7.969 kB / 0.8722 GB, free: 14 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001338/0.7093, allocations: 49.62 kB / 0.8723 GB, free: 13.95 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.7094, allocations: 4 kB / 0.8723 GB, free: 13.95 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.12e-05/0.7094, allocations: 0 / 0.8723 GB, free: 13.95 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.7094, allocations: 4 kB / 0.8723 GB, free: 13.94 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.504e-05/0.7095, allocations: 12 kB / 0.8723 GB, free: 13.93 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005132/0.71, allocations: 280.9 kB / 0.8725 GB, free: 13.61 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002536/0.7103, allocations: 50.5 kB / 0.8726 GB, free: 13.55 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.778e-05/0.7103, allocations: 12.92 kB / 0.8726 GB, free: 13.53 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001563/0.7105, allocations: 81.11 kB / 0.8727 GB, free: 13.43 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.534e-05/0.7105, allocations: 34.64 kB / 0.8727 GB, free: 13.39 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=3): time 1.132e-06/0.7105, allocations: 0 / 0.8727 GB, free: 13.39 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3): time 0.000185/0.7107, allocations: 49.7 kB / 0.8728 GB, free: 13.34 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.5e-05/0.7108, allocations: 59.39 kB / 0.8728 GB, free: 13.27 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.268e-05/0.7109, allocations: 89 kB / 0.8729 GB, free: 13.17 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 2.667e-05/0.7109, allocations: 29.7 kB / 0.8729 GB, free: 13.14 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 6.385e-05/0.711, allocations: 84.05 kB / 0.873 GB, free: 13.05 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 1.984e-05/0.711, allocations: 7.906 kB / 0.873 GB, free: 13.04 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.298e-06/0.711, allocations: 0 / 0.873 GB, free: 13.04 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001813/0.7112, allocations: 322.8 kB / 0.8733 GB, free: 12.72 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.165e-05/0.7112, allocations: 11.88 kB / 0.8733 GB, free: 12.71 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.903e-05/0.7112, allocations: 8 kB / 0.8733 GB, free: 12.7 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.72e-05/0.7113, allocations: 8 kB / 0.8734 GB, free: 12.69 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.7113, allocations: 4 kB / 0.8734 GB, free: 12.69 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.424e-05/0.7114, allocations: 49.69 kB / 0.8734 GB, free: 12.63 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.869e-05/0.7114, allocations: 4 kB / 0.8734 GB, free: 12.63 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.861e-06/0.7114, allocations: 0 / 0.8734 GB, free: 12.63 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.706e-05/0.7114, allocations: 4 kB / 0.8734 GB, free: 12.62 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.091e-05/0.7115, allocations: 15.92 kB / 0.8734 GB, free: 12.61 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.186e-06/0.7116, allocations: 0 / 0.8734 GB, free: 12.61 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.358e-05/0.7116, allocations: 19.98 kB / 0.8734 GB, free: 12.59 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.306e-06/0.7117, allocations: 0 / 0.8734 GB, free: 12.59 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.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 9.608e-05/0.7118, allocations: 108.9 kB / 0.8736 GB, free: 12.48 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.587e-05/0.7118, allocations: 8 kB / 0.8736 GB, free: 12.47 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001558/0.712, allocations: 57.55 kB / 0.8736 GB, free: 12.41 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.913e-06/0.712, allocations: 0 / 0.8736 GB, free: 12.41 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.207e-06/0.712, allocations: 48 / 0.8736 GB, free: 12.41 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.712, allocations: 3.984 kB / 0.8736 GB, free: 12.4 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001777/0.7122, allocations: 169.6 kB / 0.8738 GB, free: 12.19 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.7122, allocations: 0 / 0.8738 GB, free: 12.19 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.244e-05/0.7123, allocations: 15.98 kB / 0.8738 GB, free: 12.17 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.7123, allocations: 0 / 0.8738 GB, free: 12.17 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.688e-06/0.7123, allocations: 0 / 0.8738 GB, free: 12.17 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.242e-06/0.7123, allocations: 0 / 0.8738 GB, free: 12.17 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.7123, allocations: 0 / 0.8738 GB, free: 12.17 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001688/0.7125, allocations: 157.4 kB / 0.8739 GB, free: 12 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 5.527e-05/0.7125, allocations: 81.06 kB / 0.874 GB, free: 11.91 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.407e-05/0.7126, allocations: 0 / 0.874 GB, free: 11.91 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.407e-05/0.7127, allocations: 11.98 kB / 0.874 GB, free: 11.89 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.571e-05/0.7127, allocations: 11.98 kB / 0.874 GB, free: 11.88 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.309e-06/0.7128, allocations: 3.938 kB / 0.874 GB, free: 11.88 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 4.754e-05/0.7128, allocations: 79.28 kB / 0.8741 GB, free: 11.8 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.51e-07/0.7128, allocations: 0 / 0.8741 GB, free: 11.8 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002125/0.713, allocations: 15.94 kB / 0.8741 GB, free: 11.79 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.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.0005148/0.7136, allocations: 0.6968 MB / 0.8748 GB, free: 11.06 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001122/0.7137, allocations: 19.98 kB / 0.8748 GB, free: 11.04 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.7137, allocations: 0 / 0.8748 GB, free: 11.04 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 3.508e-05/0.7137, allocations: 12 kB / 0.8749 GB, free: 11.03 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001865/0.7139, allocations: 8 kB / 0.8749 GB, free: 11.02 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004009/0.7143, allocations: 106.8 kB / 0.875 GB, free: 10.88 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003184/0.7147, allocations: 0.677 MB / 0.8756 GB, free: 10.18 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 3.494e-05/0.7147, allocations: 4 kB / 0.8756 GB, free: 10.17 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.475e-05/0.7148, allocations: 11.44 kB / 0.8756 GB, free: 10.16 MB / 0.5417 GB Notification: Performance of SimCode: time 3.51e-07/0.7148, allocations: 4 kB / 0.8756 GB, free: 10.16 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01379/0.7286, allocations: 1.288 MB / 0.8769 GB, free: 9.004 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001962/0.7288, allocations: 159 kB / 0.877 GB, free: 8.777 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.788/2.517, allocations: 0 / 0.877 GB, free: 8.777 MB / 0.5417 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_Factorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe 2>&1)