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 1.08/1.08, allocations: 143.4 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.001435/0.001435, allocations: 183.7 kB / 191.5 MB, free: 5.766 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.539/1.539, allocations: 223.2 MB / 447.7 MB, free: 4.82 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.0008856/0.0008855, allocations: 88.39 kB / 0.5187 GB, free: 1.18 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001709/0.001709, allocations: 268.5 kB / 0.6005 GB, free: 48.73 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004325/0.0004325, allocations: 13.47 kB / 0.6929 GB, free: 59.65 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1667/0.1671, allocations: 82.79 MB / 0.7738 GB, free: 13.73 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1508/0.3179, allocations: 108.9 MB / 0.8801 GB, free: 0.6641 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002756/0.3183, allocations: 71.97 kB / 0.8802 GB, free: 0.5938 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.4019/0.7202, allocations: 0.9435 MB / 0.8811 GB, free: 109.2 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.936e-06/0.7202, allocations: 0 / 0.8811 GB, free: 109.2 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 7.814e-06/0.7202, allocations: 0.8438 kB / 0.8811 GB, free: 109.2 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.0004368/0.7207, allocations: 352.7 kB / 0.8815 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 5.682e-05/0.7208, allocations: 9.344 kB / 0.8815 GB, free: 108.9 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.936e-05/0.7208, allocations: 34.33 kB / 0.8815 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.944e-05/0.7208, allocations: 6.094 kB / 0.8815 GB, free: 108.8 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 8.851e-05/0.7209, allocations: 167.6 kB / 0.8817 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.529e-05/0.721, allocations: 9.203 kB / 0.8817 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.17e-05/0.721, allocations: 4.781 kB / 0.8817 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001995/0.7212, allocations: 68.03 kB / 0.8818 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.235e-06/0.7212, allocations: 0 / 0.8818 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.091e-05/0.7212, allocations: 0.7188 kB / 0.8818 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.751e-06/0.7212, allocations: 0.9375 kB / 0.8818 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002034/0.7214, allocations: 50.38 kB / 0.8818 GB, free: 108.6 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004235/0.7219, allocations: 284.4 kB / 0.8821 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00033/0.7222, allocations: 60.11 kB / 0.8821 GB, free: 108.3 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00012/0.7223, allocations: 86.11 kB / 0.8822 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.922e-05/0.7224, allocations: 36.06 kB / 0.8823 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=3): time 1.192e-06/0.7224, allocations: 0 / 0.8823 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3): time 0.0004479/0.7228, allocations: 112.2 kB / 0.8824 GB, free: 108.2 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.675e-05/0.7229, allocations: 56.62 kB / 0.8824 GB, free: 108.1 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.973e-05/0.723, allocations: 95 kB / 0.8825 GB, free: 108 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.424e-05/0.723, allocations: 27.17 kB / 0.8825 GB, free: 108 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 4.856e-05/0.723, allocations: 82.86 kB / 0.8826 GB, free: 107.9 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 1.956e-05/0.7231, allocations: 7.188 kB / 0.8826 GB, free: 107.9 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.871e-06/0.7231, allocations: 8.938 kB / 0.8826 GB, free: 107.9 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 7.682e-05/0.7232, allocations: 314.8 kB / 0.8829 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001344/0.7233, allocations: 29.11 kB / 0.883 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.84e-05/0.7234, allocations: 26.28 kB / 0.883 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.009e-05/0.7235, allocations: 26.28 kB / 0.883 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.7235, allocations: 0 / 0.883 GB, free: 107.6 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002074/0.7237, allocations: 92.03 kB / 0.8831 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.837e-05/0.7237, allocations: 2.781 kB / 0.8831 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.7238, allocations: 2.812 kB / 0.8831 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.974e-05/0.7238, allocations: 1.781 kB / 0.8831 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.652e-05/0.7239, allocations: 16.05 kB / 0.8831 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.615e-06/0.7239, allocations: 0 / 0.8831 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.983e-05/0.724, allocations: 11.8 kB / 0.8831 GB, free: 107.5 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.815e-06/0.724, allocations: 0 / 0.8831 GB, free: 107.5 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 () * Number of clocked 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 7.363e-05/0.7241, allocations: 116.2 kB / 0.8832 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.459e-05/0.7241, allocations: 7.406 kB / 0.8832 GB, free: 107.4 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002579/0.7243, allocations: 93.91 kB / 0.8833 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.7244, allocations: 0 / 0.8833 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.7244, allocations: 0 / 0.8833 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.65e-06/0.7244, allocations: 2.203 kB / 0.8833 GB, free: 107.3 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001401/0.7245, allocations: 169.4 kB / 0.8835 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.7245, allocations: 1.312 kB / 0.8835 GB, free: 107.2 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.637e-05/0.7246, allocations: 16.31 kB / 0.8835 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.7246, allocations: 0 / 0.8835 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.129e-05/0.7246, allocations: 6.766 kB / 0.8835 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-06/0.7247, allocations: 0 / 0.8835 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.423e-06/0.7247, allocations: 0 / 0.8835 GB, free: 107.1 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002528/0.7249, allocations: 184.9 kB / 0.8837 GB, free: 107 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 2.668e-05/0.725, allocations: 81.06 kB / 0.8838 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.683e-05/0.725, allocations: 3.812 kB / 0.8838 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.298e-05/0.7251, allocations: 11.27 kB / 0.8838 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.601e-05/0.7251, allocations: 7.016 kB / 0.8838 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.609e-06/0.7251, allocations: 0 / 0.8838 GB, free: 106.9 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 2.571e-05/0.7252, allocations: 81.56 kB / 0.8839 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.31e-07/0.7252, allocations: 4 kB / 0.8839 GB, free: 106.8 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002233/0.7254, allocations: 16.2 kB / 0.8839 GB, free: 106.8 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 () * Number of clocked 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.0004848/0.7259, allocations: 0.7349 MB / 0.8846 GB, free: 106.2 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.000219/0.7261, allocations: 55.95 kB / 0.8847 GB, free: 106.2 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.216e-06/0.7261, allocations: 3.016 kB / 0.8847 GB, free: 106.2 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 9.21e-05/0.7262, allocations: 32.66 kB / 0.8847 GB, free: 106.2 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001947/0.7264, allocations: 6.531 kB / 0.8847 GB, free: 106.2 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004012/0.7268, allocations: 144.9 kB / 0.8848 GB, free: 106 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001334/0.727, allocations: 0.683 MB / 0.8855 GB, free: 105.3 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 3.247e-05/0.727, allocations: 14.34 kB / 0.8855 GB, free: 105.3 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.744e-05/0.7271, allocations: 17.22 kB / 0.8855 GB, free: 105.3 MB / 0.5417 GB Notification: Performance of SimCode: time 2.21e-07/0.7271, allocations: 0 / 0.8855 GB, free: 105.3 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01159/0.7387, allocations: 1.291 MB / 0.8868 GB, free: 105.1 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001669/0.7389, allocations: 188 kB / 0.887 GB, free: 104.9 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.685/2.424, allocations: 0 / 0.887 GB, free: 104.9 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)