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: "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Functions_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.802/0.802, allocations: 143.3 MB / 158.3 MB, free: 5.793 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001432/0.001432, allocations: 181 kB / 191.5 MB, free: 5.762 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.492/1.492, allocations: 223.2 MB / 447.7 MB, free: 4.832 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.0009275/0.0009276, allocations: 88.33 kB / 0.5187 GB, free: 1.195 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001767/0.001767, allocations: 268.9 kB / 0.6005 GB, free: 48.76 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004654/0.0004657, allocations: 16.69 kB / 0.6929 GB, free: 59.7 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1902/0.1907, allocations: 82.79 MB / 0.7738 GB, free: 13.75 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.167/0.3577, allocations: 107.9 MB / 0.8792 GB, free: 1.672 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002357/0.358, allocations: 75.95 kB / 0.8793 GB, free: 1.598 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.001071/0.3591, allocations: 0.5281 MB / 0.8798 GB, free: 1.066 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.533e-06/0.3591, allocations: 0 / 0.8798 GB, free: 1.066 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 4.188e-06/0.3591, allocations: 3.938 kB / 0.8798 GB, free: 1.062 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0003031/0.3594, allocations: 319.4 kB / 0.8801 GB, free: 0.7031 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.974e-05/0.3595, allocations: 12.03 kB / 0.8801 GB, free: 0.6914 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.424e-05/0.3595, allocations: 34.56 kB / 0.8801 GB, free: 0.6484 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.2e-05/0.3595, allocations: 3.984 kB / 0.8801 GB, free: 0.6445 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001001/0.3597, allocations: 163.1 kB / 0.8803 GB, free: 456 kB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.326e-05/0.3597, allocations: 3.953 kB / 0.8803 GB, free: 452 kB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.565e-06/0.3597, allocations: 0 / 0.8803 GB, free: 452 kB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.282e-05/0.3598, allocations: 37.64 kB / 0.8803 GB, free: 408 kB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.482e-06/0.3598, allocations: 0 / 0.8803 GB, free: 408 kB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.973e-06/0.3598, allocations: 0 / 0.8803 GB, free: 408 kB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.578e-06/0.3598, allocations: 0 / 0.8803 GB, free: 408 kB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.319e-05/0.3599, allocations: 7.984 kB / 0.8803 GB, free: 400 kB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001908/0.3601, allocations: 153.7 kB / 0.8805 GB, free: 196 kB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 4.782e-05/0.3601, allocations: 22.56 kB / 0.8805 GB, free: 164 kB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001373/0.3603, allocations: 85.16 kB / 0.8806 GB, free: 60 kB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.498e-05/0.3603, allocations: 30.56 kB / 0.8806 GB, free: 20 kB / 0.5417 GB Notification: Performance of pre-optimization done (n=2): time 2.505e-06/0.3603, allocations: 0 / 0.8806 GB, free: 20 kB / 0.5417 GB Notification: Performance of matching and sorting (n=2): time 0.3507/0.711, allocations: 42.2 kB / 0.8807 GB, free: 109.4 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.413e-05/0.7111, allocations: 55.03 kB / 0.8807 GB, free: 109.3 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.578e-05/0.7111, allocations: 85 kB / 0.8808 GB, free: 109.2 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 9.377e-06/0.7111, allocations: 26.22 kB / 0.8808 GB, free: 109.2 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 1.313e-05/0.7111, allocations: 80.67 kB / 0.8809 GB, free: 109.1 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 2.927e-05/0.7112, allocations: 5.016 kB / 0.8809 GB, free: 109.1 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.766e-06/0.7112, allocations: 1.406 kB / 0.8809 GB, free: 109.1 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 5.779e-05/0.7112, allocations: 313.7 kB / 0.8812 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.523e-05/0.7113, allocations: 4.859 kB / 0.8812 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.157e-05/0.7113, allocations: 3.328 kB / 0.8812 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.813e-05/0.7113, allocations: 3.531 kB / 0.8812 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.7113, allocations: 0 / 0.8812 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of matching and sorting (n=2) (initialization): time 8.517e-05/0.7114, allocations: 40.97 kB / 0.8813 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.499e-05/0.7115, allocations: 12.73 kB / 0.8813 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.7115, allocations: 0.7812 kB / 0.8813 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.533e-05/0.7115, allocations: 1.812 kB / 0.8813 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.803e-05/0.7116, allocations: 3.766 kB / 0.8813 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.891e-06/0.7116, allocations: 3.25 kB / 0.8813 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.581e-05/0.7116, allocations: 0.75 kB / 0.8813 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.611e-06/0.7116, allocations: 1.453 kB / 0.8813 GB, free: 108.8 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 () * 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 5.035e-05/0.7117, allocations: 111.9 kB / 0.8814 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.307e-06/0.7117, allocations: 9.359 kB / 0.8814 GB, free: 108.7 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.252e-05/0.7118, allocations: 47.77 kB / 0.8814 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.7118, allocations: 1.125 kB / 0.8814 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.007e-06/0.7118, allocations: 2.438 kB / 0.8814 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.596e-06/0.7118, allocations: 0.75 kB / 0.8814 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.514e-05/0.7119, allocations: 150 kB / 0.8816 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.613e-06/0.7119, allocations: 0.8438 kB / 0.8816 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.238e-05/0.7119, allocations: 3.141 kB / 0.8816 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.687e-06/0.7119, allocations: 5.328 kB / 0.8816 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.522e-06/0.7119, allocations: 7.375 kB / 0.8816 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.7119, allocations: 1.438 kB / 0.8816 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.403e-06/0.7119, allocations: 0.7188 kB / 0.8816 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.882e-05/0.712, allocations: 63.12 kB / 0.8817 GB, free: 108.4 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 2.031e-05/0.7121, allocations: 78.39 kB / 0.8817 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.158e-05/0.7121, allocations: 5.312 kB / 0.8817 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.243e-05/0.7121, allocations: 1.812 kB / 0.8817 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.477e-05/0.7121, allocations: 6.703 kB / 0.8818 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.705e-06/0.7121, allocations: 1.609 kB / 0.8818 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 1.321e-05/0.7122, allocations: 76.28 kB / 0.8818 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.01e-07/0.7122, allocations: 0 / 0.8818 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002307/0.7124, allocations: 10.44 kB / 0.8818 GB, free: 108.2 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 () * 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.0002927/0.7127, allocations: 0.6107 MB / 0.8824 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 6.446e-05/0.7128, allocations: 11.17 kB / 0.8824 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.7128, allocations: 1.531 kB / 0.8824 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 1.36e-05/0.7128, allocations: 3.547 kB / 0.8825 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.674e-05/0.7129, allocations: 5.391 kB / 0.8825 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002721/0.7132, allocations: 121.7 kB / 0.8826 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001185/0.7133, allocations: 0.6799 MB / 0.8832 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 1.555e-05/0.7133, allocations: 1.188 kB / 0.8832 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.896e-05/0.7133, allocations: 8.562 kB / 0.8832 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of SimCode: time 7.91e-07/0.7134, allocations: 0.8438 kB / 0.8832 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0122/0.7256, allocations: 0.876 MB / 0.8841 GB, free: 106.6 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001541/0.7258, allocations: 192.3 kB / 0.8843 GB, free: 106.4 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.472/2.198, allocations: 0 / 0.8843 GB, free: 106.4 MB / 0.5417 GB (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 & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Functions_Examples_Factorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)