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.8886/0.8886, allocations: 141.8 MB / 149.3 MB, free: 9.168 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.001247/0.001247, allocations: 176.9 kB / 182.2 MB, free: 9.402 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.753/1.753, allocations: 221.5 MB / 436.4 MB, free: 13.28 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.001129/0.001129, allocations: 84.11 kB / 0.5074 GB, free: 10.12 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00158/0.00158, allocations: 276.6 kB / 0.5889 GB, free: 54.65 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 2.558e-05/2.57e-05, allocations: 4 kB / 0.6766 GB, free: 12.71 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5964/0.5964, allocations: 82.78 MB / 0.7575 GB, free: 31.99 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1783/0.7748, allocations: 108.3 MB / 0.8632 GB, free: 3.535 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003336/0.7752, allocations: 67.97 kB / 0.8633 GB, free: 3.469 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.003587/0.7788, allocations: 1.05 MB / 0.8643 GB, free: 2.414 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.655e-06/0.7789, allocations: 8 kB / 0.8643 GB, free: 2.406 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 9.868e-06/0.7789, allocations: 0 / 0.8643 GB, free: 2.406 MB / 0.5261 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.0005079/0.7794, allocations: 351.7 kB / 0.8647 GB, free: 2.02 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 6.783e-05/0.7795, allocations: 8.031 kB / 0.8647 GB, free: 2.012 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.496e-05/0.7795, allocations: 7.906 kB / 0.8647 GB, free: 2.004 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002089/0.7797, allocations: 163 kB / 0.8648 GB, free: 1.805 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.025e-05/0.7798, allocations: 7.953 kB / 0.8648 GB, free: 1.797 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.869e-05/0.7798, allocations: 4 kB / 0.8649 GB, free: 1.793 MB / 0.5261 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001021/0.7799, allocations: 27.94 kB / 0.8649 GB, free: 1.766 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001203/0.78, allocations: 49.67 kB / 0.8649 GB, free: 1.711 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.7801, allocations: 0 / 0.8649 GB, free: 1.711 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.392e-05/0.7801, allocations: 3.938 kB / 0.8649 GB, free: 1.707 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.64e-06/0.7801, allocations: 0 / 0.8649 GB, free: 1.707 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004748/0.7806, allocations: 257.3 kB / 0.8652 GB, free: 1.418 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000246/0.7808, allocations: 42.56 kB / 0.8652 GB, free: 1.367 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.024e-05/0.7809, allocations: 16.92 kB / 0.8652 GB, free: 1.348 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004082/0.7813, allocations: 401.6 kB / 0.8656 GB, free: 0.8633 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.075e-05/0.7814, allocations: 38.56 kB / 0.8657 GB, free: 0.8164 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.7814, allocations: 0 / 0.8657 GB, free: 0.8164 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3): time 0.0002667/0.7817, allocations: 49.62 kB / 0.8657 GB, free: 0.7617 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.733e-05/0.7817, allocations: 55.41 kB / 0.8658 GB, free: 0.6953 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.891e-05/0.7818, allocations: 93 kB / 0.8658 GB, free: 0.5977 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.863e-05/0.7819, allocations: 25.7 kB / 0.8659 GB, free: 0.5664 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 6.729e-05/0.7819, allocations: 88.05 kB / 0.8659 GB, free: 488 kB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 2.062e-05/0.782, allocations: 7.984 kB / 0.866 GB, free: 480 kB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.16e-06/0.782, allocations: 0 / 0.866 GB, free: 480 kB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001793/0.7822, allocations: 310.8 kB / 0.8663 GB, free: 160 kB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.296e-05/0.7822, allocations: 12 kB / 0.8663 GB, free: 148 kB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.605e-05/0.7822, allocations: 7.938 kB / 0.8663 GB, free: 140 kB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 4.386e-05/0.7823, allocations: 15.95 kB / 0.8663 GB, free: 124 kB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.7823, allocations: 0 / 0.8663 GB, free: 124 kB / 0.5261 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.397e-05/0.7824, allocations: 49.59 kB / 0.8663 GB, free: 68 kB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 2.05e-05/0.7824, allocations: 11.98 kB / 0.8663 GB, free: 56 kB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.139e-06/0.7824, allocations: 0 / 0.8663 GB, free: 56 kB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.689e-05/0.7824, allocations: 0 / 0.8663 GB, free: 56 kB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.569e-05/0.7825, allocations: 15.92 kB / 0.8664 GB, free: 40 kB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.305e-06/0.7825, allocations: 3.438 kB / 0.8664 GB, free: 40 kB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.132e-05/0.7826, allocations: 12 kB / 0.8664 GB, free: 28 kB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.987e-06/0.7826, allocations: 4 kB / 0.8664 GB, free: 24 kB / 0.5261 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 () * 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 0.00012/0.7828, allocations: 108.9 kB / 0.8665 GB, free: 15.91 MB / 0.5417 GB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0001025/0.7829, allocations: 45.69 kB / 0.8665 GB, free: 15.86 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.268e-05/0.7829, allocations: 3.906 kB / 0.8665 GB, free: 15.86 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001559/0.7831, allocations: 65.73 kB / 0.8666 GB, free: 15.79 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.7831, allocations: 0 / 0.8666 GB, free: 15.79 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.7831, allocations: 0 / 0.8666 GB, free: 15.79 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.7831, allocations: 4 kB / 0.8666 GB, free: 15.78 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001789/0.7833, allocations: 150.2 kB / 0.8667 GB, free: 15.6 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.7833, allocations: 0 / 0.8667 GB, free: 15.6 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.985e-05/0.7834, allocations: 11.98 kB / 0.8668 GB, free: 15.59 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.7834, allocations: 0 / 0.8668 GB, free: 15.59 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.245e-06/0.7834, allocations: 4 kB / 0.8668 GB, free: 15.58 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.262e-06/0.7834, allocations: 0 / 0.8668 GB, free: 15.58 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.7834, allocations: 0 / 0.8668 GB, free: 15.58 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001715/0.7836, allocations: 159.7 kB / 0.8669 GB, free: 15.41 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 5.377e-05/0.7837, allocations: 77.44 kB / 0.867 GB, free: 15.32 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.833e-05/0.7837, allocations: 4 kB / 0.867 GB, free: 15.31 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.381e-05/0.7838, allocations: 11.98 kB / 0.867 GB, free: 15.3 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.789e-05/0.7839, allocations: 4 kB / 0.867 GB, free: 15.3 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.087e-05/0.7839, allocations: 11.92 kB / 0.867 GB, free: 15.29 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 5.997e-05/0.7839, allocations: 83.2 kB / 0.8671 GB, free: 15.2 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.3e-07/0.7839, allocations: 0 / 0.8671 GB, free: 15.2 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002226/0.7842, allocations: 23.84 kB / 0.8671 GB, free: 15.18 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 () * 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.0006809/0.7849, allocations: 0.689 MB / 0.8678 GB, free: 14.46 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 0.0001062/0.785, allocations: 20 kB / 0.8678 GB, free: 14.44 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.785, allocations: 2.016 kB / 0.8678 GB, free: 14.44 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 3.492e-05/0.785, allocations: 15.94 kB / 0.8678 GB, free: 14.43 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002009/0.7852, allocations: 4 kB / 0.8678 GB, free: 14.42 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004652/0.7857, allocations: 105.6 kB / 0.8679 GB, free: 14.28 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003777/0.7861, allocations: 0.6884 MB / 0.8686 GB, free: 13.57 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 3.351e-05/0.7861, allocations: 0 / 0.8686 GB, free: 13.57 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.244e-05/0.7862, allocations: 15.44 kB / 0.8686 GB, free: 13.55 MB / 0.5417 GB Notification: Performance of SimCode: time 3.21e-07/0.7862, allocations: 4 kB / 0.8686 GB, free: 13.55 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06705/0.8533, allocations: 1.02 MB / 0.8696 GB, free: 12.54 MB / 0.5417 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.001369/0.8548, allocations: 151.3 kB / 0.8698 GB, free: 12.35 MB / 0.5417 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.823/2.678, allocations: 32 / 0.8698 GB, free: 12.35 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)