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/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 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial") translateModel(BuildingSystems.Utilities.Math.Examples.FallingFactorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.004818/0.004818, allocations: 100.7 kB / 15.73 MB, free: 6.004 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.001126/0.001126, allocations: 197 kB / 16.67 MB, free: 5.926 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.325/1.325, allocations: 222.9 MB / 240.4 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002007/0.002007, allocations: 293.5 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9065/0.9065, allocations: 169.3 MB / 0.4983 GB, free: 4.406 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001626/0.001626, allocations: 103.8 kB / 0.6815 GB, free: 6.941 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4041/0.4057, allocations: 86.98 MB / 0.7664 GB, free: 3.902 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.FallingFactorial): time 0.002451/0.4082, allocations: 1.521 MB / 0.7679 GB, free: 2.367 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.000346/0.4086, allocations: 136.4 kB / 0.768 GB, free: 2.23 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.592e-05/0.4086, allocations: 0 / 0.768 GB, free: 2.23 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 2.788e-05/0.4087, allocations: 3.938 kB / 0.768 GB, free: 2.227 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 3.505e-05/0.4087, allocations: 0 / 0.768 GB, free: 2.227 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002582/0.409, allocations: 35.89 kB / 0.768 GB, free: 2.191 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 7.398e-05/0.409, allocations: 35.86 kB / 0.7681 GB, free: 2.156 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 9.385e-05/0.4091, allocations: 19.98 kB / 0.7681 GB, free: 2.137 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 2.649e-05/0.4092, allocations: 8 kB / 0.7681 GB, free: 2.129 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 4.354e-05/0.4092, allocations: 23.89 kB / 0.7681 GB, free: 2.105 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.216e-05/0.4092, allocations: 7.938 kB / 0.7681 GB, free: 2.098 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 7.189e-05/0.4093, allocations: 19.98 kB / 0.7682 GB, free: 2.078 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.215e-05/0.4093, allocations: 4 kB / 0.7682 GB, free: 2.074 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.253e-05/0.4094, allocations: 15.94 kB / 0.7682 GB, free: 2.059 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.0001117/0.4095, allocations: 55.45 kB / 0.7682 GB, free: 2.008 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.4095, allocations: 4 kB / 0.7682 GB, free: 2.004 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.322e-06/0.4095, allocations: 3.938 kB / 0.7682 GB, free: 2 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 3.867e-06/0.4095, allocations: 0 / 0.7682 GB, free: 2 MB / 0.5294 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.0004379/0.41, allocations: 347.5 kB / 0.7686 GB, free: 1.609 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.029e-05/0.41, allocations: 8.031 kB / 0.7686 GB, free: 1.602 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.956e-05/0.41, allocations: 12.86 kB / 0.7686 GB, free: 1.59 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.994e-05/0.4101, allocations: 170.8 kB / 0.7687 GB, free: 1.387 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.846e-05/0.4102, allocations: 4.375 kB / 0.7688 GB, free: 1.383 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.217e-06/0.4102, allocations: 4.375 kB / 0.7688 GB, free: 1.379 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001876/0.4104, allocations: 62.22 kB / 0.7688 GB, free: 1.312 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.562e-06/0.4104, allocations: 192 / 0.7688 GB, free: 1.312 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.101e-05/0.4104, allocations: 7.938 kB / 0.7688 GB, free: 1.305 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.4104, allocations: 0 / 0.7688 GB, free: 1.305 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000176/0.4106, allocations: 47.89 kB / 0.7689 GB, free: 1.258 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000347/0.4109, allocations: 280.7 kB / 0.7691 GB, free: 0.9336 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002908/0.4112, allocations: 58.53 kB / 0.7692 GB, free: 0.8672 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.173e-05/0.4114, allocations: 24.91 kB / 0.7692 GB, free: 0.8398 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002452/0.4116, allocations: 405.5 kB / 0.7696 GB, free: 360 kB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.932e-05/0.4116, allocations: 34.5 kB / 0.7696 GB, free: 316 kB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 2.544e-06/0.4116, allocations: 7.984 kB / 0.7696 GB, free: 308 kB / 0.5294 GB Notification: Performance of matching and sorting (n=3): time 0.0003425/0.412, allocations: 89.64 kB / 0.7697 GB, free: 212 kB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.478e-05/0.412, allocations: 55.39 kB / 0.7698 GB, free: 144 kB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.729e-05/0.4121, allocations: 105.9 kB / 0.7699 GB, free: 28 kB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.397e-05/0.4121, allocations: 25.7 kB / 0.7699 GB, free: 16 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 4.684e-05/0.4122, allocations: 92.12 kB / 0.77 GB, free: 15.9 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.414e-05/0.4122, allocations: 7.844 kB / 0.77 GB, free: 15.89 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.24e-05/0.4122, allocations: 17.72 kB / 0.77 GB, free: 15.87 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 9.749e-05/0.4123, allocations: 326.7 kB / 0.7703 GB, free: 15.54 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.794e-05/0.4124, allocations: 19.98 kB / 0.7704 GB, free: 15.52 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.861e-05/0.4125, allocations: 23.91 kB / 0.7704 GB, free: 15.5 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001577/0.4127, allocations: 40.83 kB / 0.7704 GB, free: 15.46 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.653e-06/0.4127, allocations: 4 kB / 0.7704 GB, free: 15.45 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001985/0.4129, allocations: 81.55 kB / 0.7705 GB, free: 15.37 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.084e-05/0.4129, allocations: 4 kB / 0.7705 GB, free: 15.36 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.878e-06/0.4129, allocations: 0 / 0.7705 GB, free: 15.36 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.329e-05/0.4129, allocations: 4 kB / 0.7705 GB, free: 15.36 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.227e-05/0.413, allocations: 11.98 kB / 0.7705 GB, free: 15.35 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.969e-06/0.4131, allocations: 0 / 0.7705 GB, free: 15.35 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.574e-05/0.4131, allocations: 4 kB / 0.7705 GB, free: 15.34 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.66e-06/0.4131, allocations: 4 kB / 0.7705 GB, free: 15.34 MB / 0.545 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.039e-05/0.4132, allocations: 128.1 kB / 0.7706 GB, free: 15.21 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.519e-05/0.4132, allocations: 0 / 0.7706 GB, free: 15.21 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002375/0.4135, allocations: 81.55 kB / 0.7707 GB, free: 15.12 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.4135, allocations: 0 / 0.7707 GB, free: 15.12 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.376e-06/0.4135, allocations: 0 / 0.7707 GB, free: 15.12 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.495e-06/0.4135, allocations: 0 / 0.7707 GB, free: 15.12 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001543/0.4137, allocations: 173.6 kB / 0.7709 GB, free: 14.9 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.4137, allocations: 3.938 kB / 0.7709 GB, free: 14.89 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.695e-05/0.4138, allocations: 11.98 kB / 0.7709 GB, free: 14.88 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.493e-06/0.4138, allocations: 0 / 0.7709 GB, free: 14.88 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.386e-06/0.4138, allocations: 0 / 0.7709 GB, free: 14.88 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.4138, allocations: 0 / 0.7709 GB, free: 14.88 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.12e-07/0.4138, allocations: 0 / 0.7709 GB, free: 14.88 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002443/0.414, allocations: 183.3 kB / 0.7711 GB, free: 14.69 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 3.635e-05/0.4141, allocations: 89.53 kB / 0.7712 GB, free: 14.58 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.368e-05/0.4141, allocations: 0 / 0.7712 GB, free: 14.58 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.78e-05/0.4142, allocations: 7.984 kB / 0.7712 GB, free: 14.57 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.129e-05/0.4142, allocations: 4 kB / 0.7712 GB, free: 14.57 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.877e-06/0.4143, allocations: 0 / 0.7712 GB, free: 14.57 MB / 0.545 GB Notification: Performance of sorting global known variables: time 4.665e-05/0.4143, allocations: 87.27 kB / 0.7713 GB, free: 14.48 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.41e-07/0.4143, allocations: 0 / 0.7713 GB, free: 14.48 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002262/0.4145, allocations: 16 kB / 0.7713 GB, free: 14.47 MB / 0.545 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.0001282/0.4147, allocations: 115.2 kB / 0.7714 GB, free: 14.35 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002143/0.4149, allocations: 47.88 kB / 0.7714 GB, free: 14.3 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.4149, allocations: 0 / 0.7714 GB, free: 14.3 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 9.833e-05/0.415, allocations: 23.98 kB / 0.7715 GB, free: 14.28 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002503/0.4153, allocations: 11.94 kB / 0.7715 GB, free: 14.27 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002587/0.4155, allocations: 127.3 kB / 0.7716 GB, free: 14.12 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002184/0.4158, allocations: 0.6768 MB / 0.7722 GB, free: 13.41 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 2.908e-05/0.4158, allocations: 4 kB / 0.7722 GB, free: 13.41 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.471e-05/0.4158, allocations: 15.44 kB / 0.7723 GB, free: 13.39 MB / 0.545 GB Notification: Performance of SimCode: time 2.41e-07/0.4158, allocations: 0 / 0.7723 GB, free: 13.39 MB / 0.545 GB Notification: Performance of Templates: time 0.002693/0.4185, allocations: 0.789 MB / 0.773 GB, free: 12.61 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.makefile (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 & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.FallingFactorial.pipe 2>&1)