Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.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.FallingFactorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_Math_Examples_FallingFactorial",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.916/0.916, allocations: 143.3 MB / 158.3 MB, free: 5.801 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.001127/0.001127, allocations: 175.4 kB / 191.5 MB, free: 5.773 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.463/1.463, allocations: 223.2 MB / 447.7 MB, free: 6.543 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.0008678/0.000868, allocations: 92.27 kB / 0.5187 GB, free: 2.902 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001736/0.001736, allocations: 271.5 kB / 0.6005 GB, free: 49.02 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004255/0.0004256, allocations: 15.98 kB / 0.6929 GB, free: 2.254 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4334/0.4338, allocations: 82.77 MB / 0.7738 GB, free: 26.23 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1538/0.5877, allocations: 109 MB / 0.8803 GB, free: 13.05 MB / 0.5417 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002499/0.588, allocations: 75.95 kB / 0.8803 GB, free: 12.98 MB / 0.5417 GB Notification: Performance of FrontEnd - DAE generated: time 0.003067/0.5911, allocations: 1.053 MB / 0.8814 GB, free: 11.92 MB / 0.5417 GB Notification: Performance of FrontEnd: time 2.185e-06/0.5911, allocations: 0 / 0.8814 GB, free: 11.92 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 1.056e-05/0.5911, allocations: 4 kB / 0.8814 GB, free: 11.92 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004277/0.5915, allocations: 371.1 kB / 0.8817 GB, free: 11.51 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.885e-05/0.5916, allocations: 8.031 kB / 0.8817 GB, free: 11.5 MB / 0.5417 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.538e-05/0.5916, allocations: 38.56 kB / 0.8818 GB, free: 11.45 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.601e-05/0.5917, allocations: 0 / 0.8818 GB, free: 11.45 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001442/0.5918, allocations: 167.1 kB / 0.8819 GB, free: 11.25 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.685e-05/0.5919, allocations: 3.953 kB / 0.8819 GB, free: 11.25 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.223e-05/0.5919, allocations: 4 kB / 0.8819 GB, free: 11.24 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002078/0.5921, allocations: 69.66 kB / 0.882 GB, free: 11.17 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.544e-06/0.5921, allocations: 0 / 0.882 GB, free: 11.17 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.077e-05/0.5921, allocations: 3.938 kB / 0.882 GB, free: 11.16 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.439e-06/0.5921, allocations: 0 / 0.882 GB, free: 11.16 MB / 0.5417 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002028/0.5924, allocations: 59.89 kB / 0.8821 GB, free: 11.11 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004234/0.5928, allocations: 284.8 kB / 0.8823 GB, free: 10.78 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003131/0.5931, allocations: 58.64 kB / 0.8824 GB, free: 10.71 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003106/0.5934, allocations: 409.5 kB / 0.8828 GB, free: 10.22 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.891e-05/0.5935, allocations: 34.56 kB / 0.8828 GB, free: 10.18 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=3): time 2.354e-06/0.5935, allocations: 0 / 0.8828 GB, free: 10.18 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3): time 0.0004056/0.5939, allocations: 113.6 kB / 0.8829 GB, free: 10.06 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.684e-05/0.5939, allocations: 51.41 kB / 0.883 GB, free: 9.996 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.306e-05/0.594, allocations: 100.9 kB / 0.8831 GB, free: 9.891 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.679e-05/0.5941, allocations: 29.7 kB / 0.8831 GB, free: 9.855 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 4.877e-05/0.5941, allocations: 84.12 kB / 0.8832 GB, free: 9.77 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 1.433e-05/0.5941, allocations: 7.906 kB / 0.8832 GB, free: 9.762 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.342e-06/0.5941, allocations: 4 kB / 0.8832 GB, free: 9.758 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 0.0001208/0.5943, allocations: 314.8 kB / 0.8835 GB, free: 9.441 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.841e-05/0.5944, allocations: 31.97 kB / 0.8835 GB, free: 9.41 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.443e-05/0.5945, allocations: 27.92 kB / 0.8835 GB, free: 9.383 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.594e-05/0.5946, allocations: 23.98 kB / 0.8836 GB, free: 9.359 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.807e-06/0.5946, allocations: 3.984 kB / 0.8836 GB, free: 9.355 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002229/0.5948, allocations: 81.66 kB / 0.8836 GB, free: 9.27 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 2.292e-05/0.5948, allocations: 4.938 kB / 0.8837 GB, free: 9.266 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.5949, allocations: 4 kB / 0.8837 GB, free: 9.262 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.536e-05/0.5949, allocations: 0 / 0.8837 GB, free: 9.262 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.936e-05/0.595, allocations: 15.98 kB / 0.8837 GB, free: 9.246 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.595, allocations: 0 / 0.8837 GB, free: 9.246 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.694e-05/0.5951, allocations: 15.98 kB / 0.8837 GB, free: 9.23 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.472e-06/0.5951, allocations: 0 / 0.8837 GB, free: 9.23 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 (falFac.y,falFac.k) * 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 8.458e-05/0.5952, allocations: 118.7 kB / 0.8838 GB, free: 9.105 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.505e-05/0.5952, allocations: 3.906 kB / 0.8838 GB, free: 9.102 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002807/0.5955, allocations: 105.5 kB / 0.8839 GB, free: 8.988 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.275e-06/0.5955, allocations: 0 / 0.8839 GB, free: 8.988 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.539e-06/0.5955, allocations: 4 kB / 0.8839 GB, free: 8.984 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.5955, allocations: 0 / 0.8839 GB, free: 8.984 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001667/0.5957, allocations: 173.5 kB / 0.8841 GB, free: 8.766 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.5957, allocations: 4 kB / 0.8841 GB, free: 8.762 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.09e-05/0.5958, allocations: 11.98 kB / 0.8841 GB, free: 8.75 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.5958, allocations: 0 / 0.8841 GB, free: 8.75 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.017e-06/0.5958, allocations: 0 / 0.8841 GB, free: 8.75 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.193e-06/0.5958, allocations: 4 kB / 0.8841 GB, free: 8.746 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.5958, allocations: 3.984 kB / 0.8841 GB, free: 8.742 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002758/0.5961, allocations: 187.4 kB / 0.8843 GB, free: 8.543 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 4.094e-05/0.5962, allocations: 84.95 kB / 0.8844 GB, free: 8.441 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.472e-05/0.5962, allocations: 4 kB / 0.8844 GB, free: 8.438 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.945e-05/0.5963, allocations: 7.984 kB / 0.8844 GB, free: 8.43 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.784e-05/0.5963, allocations: 7.984 kB / 0.8844 GB, free: 8.422 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.781e-06/0.5963, allocations: 8 kB / 0.8844 GB, free: 8.414 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 4.457e-05/0.5964, allocations: 87.34 kB / 0.8845 GB, free: 8.328 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5964, allocations: 0 / 0.8845 GB, free: 8.328 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0007176/0.5971, allocations: 15.98 kB / 0.8845 GB, free: 8.312 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 (falFac.y,falFac.k) * 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.0006291/0.5978, allocations: 0.728 MB / 0.8852 GB, free: 7.555 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0002241/0.598, allocations: 59.89 kB / 0.8852 GB, free: 7.496 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.598, allocations: 4 kB / 0.8853 GB, free: 7.492 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 9.794e-05/0.5981, allocations: 27.98 kB / 0.8853 GB, free: 7.465 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001969/0.5983, allocations: 6.562 kB / 0.8853 GB, free: 7.461 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008905/0.5992, allocations: 464.4 kB / 0.8857 GB, free: 6.961 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002444/0.5995, allocations: 0.6848 MB / 0.8864 GB, free: 6.25 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 3.372e-05/0.5995, allocations: 4 kB / 0.8864 GB, free: 6.246 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.231e-05/0.5996, allocations: 19.42 kB / 0.8864 GB, free: 6.227 MB / 0.5417 GB Notification: Performance of SimCode: time 3.5e-07/0.5996, allocations: 0 / 0.8864 GB, free: 6.227 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0118/0.6114, allocations: 1.395 MB / 0.8878 GB, free: 4.973 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001865/0.6116, allocations: 180.7 kB / 0.888 GB, free: 4.738 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.668/2.28, allocations: 4 kB / 0.888 GB, free: 4.734 MB / 0.5417 GB (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_Math_Examples_FallingFactorial_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_Math_Examples_FallingFactorial.fmu > BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe 2>&1)