Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.conf.json 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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="Buildings_8_Buildings_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007729/0.0007729, allocations: 91.77 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.006538/0.006538, allocations: 170.2 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.602/1.602, allocations: 205.4 MB / 222.4 MB, free: 5.551 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.659/1.659, allocations: 292.7 MB / 0.5502 GB, free: 14.45 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005405/0.0005405, allocations: 14.44 kB / 0.6744 GB, free: 25.76 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2592/0.2597, allocations: 116.3 MB / 0.788 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.0007838/0.2606, allocations: 327.5 kB / 0.7883 GB, free: 11.14 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0003019/0.2609, allocations: 55.8 kB / 0.7884 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.314e-05/0.2609, allocations: 0 / 0.7884 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 2.899e-05/0.261, allocations: 0 / 0.7884 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 6.131e-06/0.261, allocations: 0 / 0.7884 GB, free: 11.09 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002582/0.2612, allocations: 11.98 kB / 0.7884 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 9.299e-05/0.2613, allocations: 31.95 kB / 0.7884 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 4.194e-05/0.2614, allocations: 4 kB / 0.7884 GB, free: 11.04 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 2.543e-05/0.2614, allocations: 12 kB / 0.7884 GB, free: 11.03 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 3.258e-05/0.2615, allocations: 11.97 kB / 0.7884 GB, free: 11.02 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.337e-05/0.2615, allocations: 4 kB / 0.7884 GB, free: 11.01 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.486e-05/0.2616, allocations: 15.98 kB / 0.7885 GB, free: 11 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 3.396e-05/0.2616, allocations: 15.88 kB / 0.7885 GB, free: 10.98 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 4.611e-05/0.2617, allocations: 41.62 kB / 0.7885 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 9.777e-05/0.2618, allocations: 31.91 kB / 0.7885 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.2618, allocations: 0 / 0.7885 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of FrontEnd: time 2.434e-06/0.2618, allocations: 0 / 0.7885 GB, free: 10.9 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.709e-06/0.2618, allocations: 4 kB / 0.7885 GB, free: 10.9 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.0003289/0.2621, allocations: 331.7 kB / 0.7889 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.578e-05/0.2622, allocations: 12.03 kB / 0.7889 GB, free: 10.51 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.269e-05/0.2622, allocations: 34.75 kB / 0.7889 GB, free: 10.47 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.344e-05/0.2623, allocations: 4.938 kB / 0.7889 GB, free: 10.46 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.721e-05/0.2624, allocations: 172.4 kB / 0.7891 GB, free: 10.26 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.39e-05/0.2624, allocations: 4.375 kB / 0.7891 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.098e-05/0.2624, allocations: 4.375 kB / 0.7891 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001507/0.2625, allocations: 70.09 kB / 0.7892 GB, free: 10.18 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.2626, allocations: 7.938 kB / 0.7892 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.756e-06/0.2626, allocations: 4 kB / 0.7892 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.99e-06/0.2626, allocations: 0 / 0.7892 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001386/0.2627, allocations: 107.8 kB / 0.7893 GB, free: 10.06 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001726/0.2629, allocations: 165.7 kB / 0.7894 GB, free: 9.848 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001045/0.263, allocations: 74.48 kB / 0.7895 GB, free: 9.766 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.159e-05/0.2631, allocations: 36.84 kB / 0.7895 GB, free: 9.727 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003523/0.2634, allocations: 401.5 kB / 0.7899 GB, free: 9.242 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.591e-05/0.2635, allocations: 42.5 kB / 0.79 GB, free: 9.191 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=11): time 1.002e-06/0.2635, allocations: 0 / 0.79 GB, free: 9.191 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11): time 0.0002438/0.2637, allocations: 117.8 kB / 0.7901 GB, free: 9.07 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.465e-05/0.2638, allocations: 51.41 kB / 0.7901 GB, free: 9.008 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.955e-05/0.2638, allocations: 101.8 kB / 0.7902 GB, free: 8.898 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.523e-05/0.2639, allocations: 25.7 kB / 0.7902 GB, free: 8.867 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 2.696e-05/0.2639, allocations: 80.14 kB / 0.7903 GB, free: 8.785 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.572e-05/0.2639, allocations: 23.66 kB / 0.7903 GB, free: 8.762 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.202e-05/0.264, allocations: 25.7 kB / 0.7904 GB, free: 8.73 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001064/0.2641, allocations: 318.8 kB / 0.7907 GB, free: 8.41 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.301e-05/0.2641, allocations: 15.98 kB / 0.7907 GB, free: 8.395 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.748e-05/0.2642, allocations: 23.98 kB / 0.7907 GB, free: 8.371 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.104e-05/0.2643, allocations: 64.7 kB / 0.7908 GB, free: 8.305 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.2643, allocations: 0 / 0.7908 GB, free: 8.305 MB / 0.6075 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0001197/0.2644, allocations: 85.67 kB / 0.7908 GB, free: 8.215 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/0.2644, allocations: 11.94 kB / 0.7909 GB, free: 8.203 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.037e-06/0.2644, allocations: 0 / 0.7909 GB, free: 8.203 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.087e-05/0.2644, allocations: 4 kB / 0.7909 GB, free: 8.199 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001001/0.2645, allocations: 19.98 kB / 0.7909 GB, free: 8.18 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.484e-06/0.2646, allocations: 0 / 0.7909 GB, free: 8.18 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.036e-05/0.2646, allocations: 7.844 kB / 0.7909 GB, free: 8.172 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.185e-06/0.2646, allocations: 4 kB / 0.7909 GB, free: 8.168 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (n,falFac[10],falFac[9],falFac[8],falFac[7],falFac[6],falFac[5],falFac[4],falFac[3],falFac[2],falFac[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001322/0.2647, allocations: 125.8 kB / 0.791 GB, free: 8.035 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.028e-05/0.2647, allocations: 3.938 kB / 0.791 GB, free: 8.031 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002209/0.265, allocations: 134.2 kB / 0.7911 GB, free: 7.891 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.265, allocations: 0 / 0.7911 GB, free: 7.891 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.5e-06/0.265, allocations: 0 / 0.7911 GB, free: 7.891 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.265, allocations: 0 / 0.7911 GB, free: 7.891 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001291/0.2651, allocations: 177.6 kB / 0.7913 GB, free: 7.668 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-06/0.2651, allocations: 0 / 0.7913 GB, free: 7.668 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.501e-05/0.2652, allocations: 19.92 kB / 0.7913 GB, free: 7.648 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.286e-06/0.2652, allocations: 7.938 kB / 0.7913 GB, free: 7.641 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.143e-06/0.2652, allocations: 0 / 0.7913 GB, free: 7.641 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.252e-06/0.2652, allocations: 0 / 0.7913 GB, free: 7.641 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.2652, allocations: 4 kB / 0.7913 GB, free: 7.637 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001552/0.2654, allocations: 129 kB / 0.7915 GB, free: 7.492 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.537e-05/0.2654, allocations: 84.98 kB / 0.7915 GB, free: 7.391 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.478e-05/0.2655, allocations: 4 kB / 0.7916 GB, free: 7.387 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.682e-05/0.2655, allocations: 4 kB / 0.7916 GB, free: 7.383 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.497e-05/0.2655, allocations: 11.92 kB / 0.7916 GB, free: 7.371 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.092e-06/0.2655, allocations: 7.938 kB / 0.7916 GB, free: 7.363 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 3.217e-05/0.2656, allocations: 79.28 kB / 0.7916 GB, free: 7.285 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.2e-07/0.2656, allocations: 4 kB / 0.7917 GB, free: 7.281 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0001978/0.2658, allocations: 16 kB / 0.7917 GB, free: 7.266 MB / 0.6075 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (falFac[1],falFac[2],falFac[3],falFac[4],falFac[5],falFac[6],falFac[7],falFac[8],falFac[9],falFac[10],n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0004764/0.2663, allocations: 0.667 MB / 0.7923 GB, free: 6.57 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0001306/0.2664, allocations: 67.91 kB / 0.7924 GB, free: 6.504 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.2664, allocations: 0 / 0.7924 GB, free: 6.504 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 5.045e-05/0.2665, allocations: 35.92 kB / 0.7924 GB, free: 6.469 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001411/0.2666, allocations: 4 kB / 0.7924 GB, free: 6.465 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000389/0.267, allocations: 192.2 kB / 0.7926 GB, free: 6.238 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002402/0.2673, allocations: 0.6809 MB / 0.7933 GB, free: 5.531 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 6.955e-05/0.2673, allocations: 39.94 kB / 0.7933 GB, free: 5.492 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.426e-05/0.2674, allocations: 19.42 kB / 0.7933 GB, free: 5.473 MB / 0.6075 GB Notification: Performance of SimCode: time 3.21e-07/0.2674, allocations: 0 / 0.7933 GB, free: 5.473 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01177/0.2792, allocations: 1.348 MB / 0.7946 GB, free: 4.254 MB / 0.6075 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002308/0.2794, allocations: 211.8 kB / 0.7948 GB, free: 3.996 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate platform static: time 1.648/1.927, allocations: 3.375 kB / 0.7948 GB, free: 3.996 MB / 0.6075 GB (rm -f Buildings_8_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Buildings_8_Buildings_Utilities_Math_Functions_Examples_FallingFactorial_fmu --startTime=0 --stopTime=13.9 --timeout=50 --tolerance=1e-06 Buildings_8_Buildings_Utilities_Math_Functions_Examples_FallingFactorial.fmu > Buildings_8_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1)