Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.Math.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: translateModel(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Examples.FallingFactorial") translateModel(Buildings.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.Math.Examples.FallingFactorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001075/0.001075, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001106/0.001106, allocations: 195.5 kB / 16.14 MB, free: 6.656 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.36/1.36, allocations: 205.1 MB / 222 MB, free: 4.746 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.613/1.613, allocations: 292.2 MB / 0.5484 GB, free: 13.69 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.001254/0.001254, allocations: 63.39 kB / 0.6708 GB, free: 26.39 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2471/0.2484, allocations: 114.5 MB / 0.7827 GB, free: 14.03 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.00291/0.2514, allocations: 1.598 MB / 0.7842 GB, free: 12.41 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0004194/0.2518, allocations: 137.5 kB / 0.7844 GB, free: 12.28 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.742e-05/0.2518, allocations: 0 / 0.7844 GB, free: 12.28 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 3.973e-05/0.2519, allocations: 4 kB / 0.7844 GB, free: 12.27 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 4.811e-05/0.252, allocations: 3.938 kB / 0.7844 GB, free: 12.27 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002367/0.2522, allocations: 15.98 kB / 0.7844 GB, free: 12.25 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 7.206e-05/0.2523, allocations: 35.86 kB / 0.7844 GB, free: 12.22 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 9.899e-05/0.2524, allocations: 23.97 kB / 0.7844 GB, free: 12.2 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 2.992e-05/0.2524, allocations: 11.98 kB / 0.7844 GB, free: 12.18 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 4.107e-05/0.2525, allocations: 15.92 kB / 0.7845 GB, free: 12.17 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 1.611e-05/0.2525, allocations: 4 kB / 0.7845 GB, free: 12.16 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 8.395e-05/0.2526, allocations: 12 kB / 0.7845 GB, free: 12.15 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 2.241e-05/0.2526, allocations: 11.92 kB / 0.7845 GB, free: 12.14 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.361e-05/0.2527, allocations: 15.92 kB / 0.7845 GB, free: 12.12 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001107/0.2528, allocations: 43.88 kB / 0.7845 GB, free: 12.08 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.2528, allocations: 4 kB / 0.7846 GB, free: 12.08 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.062e-06/0.2528, allocations: 0 / 0.7846 GB, free: 12.08 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.138e-06/0.2528, allocations: 0 / 0.7846 GB, free: 12.08 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004772/0.2533, allocations: 351.7 kB / 0.7849 GB, free: 11.68 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.2533, allocations: 8.031 kB / 0.7849 GB, free: 11.68 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.315e-05/0.2534, allocations: 4.844 kB / 0.7849 GB, free: 11.67 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001222/0.2535, allocations: 176.2 kB / 0.7851 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.393e-05/0.2535, allocations: 384 / 0.7851 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.219e-05/0.2536, allocations: 4.375 kB / 0.7851 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002042/0.2538, allocations: 70.2 kB / 0.7851 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.237e-06/0.2538, allocations: 192 / 0.7851 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.19e-05/0.2538, allocations: 3.938 kB / 0.7851 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.921e-06/0.2538, allocations: 4 kB / 0.7851 GB, free: 11.38 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001908/0.254, allocations: 47.94 kB / 0.7852 GB, free: 11.33 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004038/0.2544, allocations: 284.6 kB / 0.7855 GB, free: 11 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003374/0.2548, allocations: 58.53 kB / 0.7855 GB, free: 10.93 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.601e-05/0.2549, allocations: 24.91 kB / 0.7855 GB, free: 10.91 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002968/0.2552, allocations: 405.5 kB / 0.7859 GB, free: 10.42 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.65e-05/0.2552, allocations: 30.56 kB / 0.786 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 3.146e-06/0.2552, allocations: 4 kB / 0.786 GB, free: 10.38 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0003985/0.2556, allocations: 89.58 kB / 0.786 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.904e-05/0.2557, allocations: 55.41 kB / 0.7861 GB, free: 10.21 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.613e-05/0.2558, allocations: 109.8 kB / 0.7862 GB, free: 10.1 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.542e-05/0.2558, allocations: 25.7 kB / 0.7862 GB, free: 10.07 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 5.069e-05/0.2558, allocations: 92.06 kB / 0.7863 GB, free: 9.973 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.698e-05/0.2559, allocations: 11.91 kB / 0.7863 GB, free: 9.961 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.838e-05/0.2559, allocations: 13.72 kB / 0.7863 GB, free: 9.941 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001057/0.256, allocations: 322.8 kB / 0.7867 GB, free: 9.617 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.678e-05/0.2561, allocations: 19.98 kB / 0.7867 GB, free: 9.598 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.497e-05/0.2562, allocations: 15.98 kB / 0.7867 GB, free: 9.582 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001728/0.2564, allocations: 52.75 kB / 0.7867 GB, free: 9.527 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.903e-06/0.2564, allocations: 0 / 0.7867 GB, free: 9.527 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002306/0.2566, allocations: 77.56 kB / 0.7868 GB, free: 9.445 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/0.2567, allocations: 4 kB / 0.7868 GB, free: 9.441 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.2567, allocations: 3.984 kB / 0.7868 GB, free: 9.438 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.629e-05/0.2567, allocations: 0 / 0.7868 GB, free: 9.438 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.136e-05/0.2568, allocations: 8 kB / 0.7868 GB, free: 9.43 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.233e-06/0.2568, allocations: 3.984 kB / 0.7868 GB, free: 9.426 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.093e-05/0.2569, allocations: 8 kB / 0.7868 GB, free: 9.418 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.012e-06/0.2569, allocations: 7.938 kB / 0.7868 GB, free: 9.41 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: 2 (falFac.y,rea2Int.y) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.047e-05/0.257, allocations: 114.4 kB / 0.787 GB, free: 9.289 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.835e-05/0.257, allocations: 7.984 kB / 0.787 GB, free: 9.281 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002595/0.2573, allocations: 81.48 kB / 0.787 GB, free: 9.188 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.2573, allocations: 4 kB / 0.787 GB, free: 9.184 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.957e-06/0.2573, allocations: 0 / 0.787 GB, free: 9.184 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/0.2573, allocations: 8 kB / 0.7871 GB, free: 9.176 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001575/0.2575, allocations: 173.5 kB / 0.7872 GB, free: 8.957 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.2575, allocations: 0 / 0.7872 GB, free: 8.957 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.745e-05/0.2576, allocations: 11.98 kB / 0.7872 GB, free: 8.945 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.2576, allocations: 0 / 0.7872 GB, free: 8.945 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.246e-06/0.2576, allocations: 384 / 0.7872 GB, free: 8.945 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.283e-06/0.2576, allocations: 0 / 0.7872 GB, free: 8.945 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.322e-06/0.2576, allocations: 0 / 0.7872 GB, free: 8.945 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002616/0.2579, allocations: 183.4 kB / 0.7874 GB, free: 8.75 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 3.454e-05/0.2579, allocations: 81.11 kB / 0.7875 GB, free: 8.652 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.663e-05/0.2579, allocations: 4 kB / 0.7875 GB, free: 8.648 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.626e-05/0.258, allocations: 7.984 kB / 0.7875 GB, free: 8.641 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.803e-05/0.2581, allocations: 0 / 0.7875 GB, free: 8.641 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.444e-06/0.2581, allocations: 4 kB / 0.7875 GB, free: 8.637 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 4.713e-05/0.2581, allocations: 95.62 kB / 0.7876 GB, free: 8.543 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.11e-07/0.2581, allocations: 0 / 0.7876 GB, free: 8.543 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002294/0.2584, allocations: 19.94 kB / 0.7876 GB, free: 8.523 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: 2 (rea2Int.y,falFac.y) * 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 (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.0001473/0.2585, allocations: 103.2 kB / 0.7877 GB, free: 8.414 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002293/0.2588, allocations: 47.94 kB / 0.7877 GB, free: 8.367 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.903e-06/0.2588, allocations: 0 / 0.7877 GB, free: 8.367 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001036/0.2589, allocations: 27.92 kB / 0.7878 GB, free: 8.34 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002864/0.2592, allocations: 11.88 kB / 0.7878 GB, free: 8.328 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003063/0.2595, allocations: 139.1 kB / 0.7879 GB, free: 8.168 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002018/0.2597, allocations: 0.677 MB / 0.7886 GB, free: 7.465 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 3.348e-05/0.2597, allocations: 4 kB / 0.7886 GB, free: 7.461 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.614e-05/0.2598, allocations: 15.44 kB / 0.7886 GB, free: 7.445 MB / 0.6075 GB Notification: Performance of SimCode: time 2.11e-07/0.2598, allocations: 0 / 0.7886 GB, free: 7.445 MB / 0.6075 GB Notification: Performance of Templates: time 0.002893/0.2627, allocations: 0.6686 MB / 0.7893 GB, free: 6.777 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Utilities.Math.Examples.FallingFactorial.makefile (rm -f Buildings_8_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_8_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_8_Buildings.Utilities.Math.Examples.FallingFactorial.sim & ./Buildings_8_Buildings.Utilities.Math.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1)