Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.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.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial") translateModel(BuildingSystems.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007009/0.007009, allocations: 101.4 kB / 15.73 MB, free: 6.055 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.001724/0.001724, allocations: 192.4 kB / 16.68 MB, free: 5.965 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.298/1.298, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00215/0.00215, allocations: 284 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9092/0.9092, allocations: 169.2 MB / 0.4983 GB, free: 4.426 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001731/0.001731, allocations: 91.86 kB / 0.6815 GB, free: 6.953 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4153/0.417, allocations: 86.97 MB / 0.7664 GB, free: 3.922 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.Math.Examples.Factorial): time 0.002634/0.4197, allocations: 1.513 MB / 0.7679 GB, free: 2.395 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0003796/0.4201, allocations: 128.5 kB / 0.768 GB, free: 2.266 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.068e-05/0.4201, allocations: 0 / 0.768 GB, free: 2.266 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 3.196e-05/0.4202, allocations: 3.938 kB / 0.768 GB, free: 2.262 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 4.087e-05/0.4202, allocations: 0 / 0.768 GB, free: 2.262 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002578/0.4205, allocations: 35.89 kB / 0.768 GB, free: 2.227 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 8.238e-05/0.4206, allocations: 31.86 kB / 0.7681 GB, free: 2.195 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001156/0.4207, allocations: 8 kB / 0.7681 GB, free: 2.188 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 5.98e-05/0.4208, allocations: 11.98 kB / 0.7681 GB, free: 2.176 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 5.42e-05/0.4208, allocations: 19.91 kB / 0.7681 GB, free: 2.156 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 1.672e-05/0.4209, allocations: 4 kB / 0.7681 GB, free: 2.152 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 6.582e-05/0.4209, allocations: 8 kB / 0.7681 GB, free: 2.145 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 1.685e-05/0.4209, allocations: 8 kB / 0.7681 GB, free: 2.137 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 3.074e-05/0.421, allocations: 11.92 kB / 0.7681 GB, free: 2.125 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.000123/0.4211, allocations: 47.83 kB / 0.7682 GB, free: 2.078 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.4211, allocations: 0 / 0.7682 GB, free: 2.078 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.543e-06/0.4211, allocations: 0 / 0.7682 GB, free: 2.078 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 5.881e-06/0.4211, allocations: 0 / 0.7682 GB, free: 2.078 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0005026/0.4216, allocations: 351 kB / 0.7685 GB, free: 1.688 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 3.837e-05/0.4217, allocations: 8.031 kB / 0.7685 GB, free: 1.68 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.728e-05/0.4217, allocations: 4.938 kB / 0.7685 GB, free: 1.676 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001184/0.4219, allocations: 160.4 kB / 0.7687 GB, free: 1.48 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.217e-05/0.4219, allocations: 4.375 kB / 0.7687 GB, free: 1.477 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.207e-05/0.4219, allocations: 4.375 kB / 0.7687 GB, free: 1.473 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002051/0.4221, allocations: 62.16 kB / 0.7687 GB, free: 1.406 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.817e-06/0.4221, allocations: 192 / 0.7687 GB, free: 1.406 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.259e-05/0.4222, allocations: 7.938 kB / 0.7687 GB, free: 1.398 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.339e-06/0.4222, allocations: 0 / 0.7687 GB, free: 1.398 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000185/0.4223, allocations: 39.95 kB / 0.7688 GB, free: 1.359 MB / 0.5294 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003293/0.4227, allocations: 271.4 kB / 0.769 GB, free: 1.047 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003114/0.423, allocations: 62.47 kB / 0.7691 GB, free: 0.9766 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.52e-05/0.4231, allocations: 28.83 kB / 0.7691 GB, free: 0.9453 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001025/0.4232, allocations: 81.11 kB / 0.7692 GB, free: 0.8477 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.86e-05/0.4233, allocations: 34.56 kB / 0.7692 GB, free: 0.8047 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.4233, allocations: 0 / 0.7692 GB, free: 0.8047 MB / 0.5294 GB Notification: Performance of matching and sorting (n=3): time 0.0003787/0.4236, allocations: 89.62 kB / 0.7693 GB, free: 0.7109 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.205e-05/0.4237, allocations: 55.41 kB / 0.7694 GB, free: 0.6445 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.199e-05/0.4237, allocations: 101.8 kB / 0.7695 GB, free: 0.5352 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 2.014e-05/0.4238, allocations: 25.7 kB / 0.7695 GB, free: 0.5039 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 3.833e-05/0.4238, allocations: 88.12 kB / 0.7696 GB, free: 424 kB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 1.463e-05/0.4238, allocations: 11.91 kB / 0.7696 GB, free: 412 kB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.421e-05/0.4239, allocations: 17.72 kB / 0.7696 GB, free: 388 kB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001067/0.424, allocations: 310.8 kB / 0.7699 GB, free: 68 kB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.422e-05/0.4241, allocations: 19.97 kB / 0.7699 GB, free: 48 kB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.826e-05/0.4242, allocations: 15.98 kB / 0.7699 GB, free: 32 kB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001883/0.4244, allocations: 52.81 kB / 0.77 GB, free: 15.98 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.256e-06/0.4244, allocations: 3.938 kB / 0.77 GB, free: 15.97 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002104/0.4246, allocations: 73.56 kB / 0.7701 GB, free: 15.89 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.72e-05/0.4246, allocations: 8 kB / 0.7701 GB, free: 15.89 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.4247, allocations: 3.984 kB / 0.7701 GB, free: 15.88 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.668e-05/0.4247, allocations: 3.938 kB / 0.7701 GB, free: 15.88 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.985e-05/0.4248, allocations: 11.94 kB / 0.7701 GB, free: 15.87 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.158e-06/0.4248, allocations: 3.984 kB / 0.7701 GB, free: 15.86 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.54e-05/0.4248, allocations: 8 kB / 0.7701 GB, free: 15.86 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.941e-06/0.4249, allocations: 0 / 0.7701 GB, free: 15.86 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 (rea2Int.y,fac.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 0.0001038/0.425, allocations: 121.1 kB / 0.7702 GB, free: 15.73 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.371e-05/0.425, allocations: 3.938 kB / 0.7702 GB, free: 15.73 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002697/0.4253, allocations: 81.12 kB / 0.7703 GB, free: 15.64 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.214e-06/0.4253, allocations: 0 / 0.7703 GB, free: 15.64 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.4253, allocations: 8 kB / 0.7703 GB, free: 15.63 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.436e-06/0.4253, allocations: 4.562 kB / 0.7703 GB, free: 15.63 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001722/0.4255, allocations: 161.5 kB / 0.7705 GB, free: 15.42 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.4255, allocations: 3.984 kB / 0.7705 GB, free: 15.42 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.484e-05/0.4256, allocations: 15.94 kB / 0.7705 GB, free: 15.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.4256, allocations: 0 / 0.7705 GB, free: 15.4 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.347e-05/0.4256, allocations: 7.984 kB / 0.7705 GB, free: 15.39 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-06/0.4256, allocations: 0 / 0.7705 GB, free: 15.39 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.71e-07/0.4256, allocations: 0 / 0.7705 GB, free: 15.39 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002881/0.4259, allocations: 175.4 kB / 0.7707 GB, free: 15.21 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 5.741e-05/0.426, allocations: 81.02 kB / 0.7707 GB, free: 15.11 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.524e-05/0.426, allocations: 3.984 kB / 0.7707 GB, free: 15.11 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.877e-05/0.4261, allocations: 4 kB / 0.7707 GB, free: 15.1 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.999e-05/0.4261, allocations: 11.98 kB / 0.7708 GB, free: 15.09 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.416e-06/0.4261, allocations: 0 / 0.7708 GB, free: 15.09 MB / 0.545 GB Notification: Performance of sorting global known variables: time 3.698e-05/0.4262, allocations: 79.28 kB / 0.7708 GB, free: 15.01 MB / 0.545 GB Notification: Performance of sort global known variables: time 1.61e-07/0.4262, allocations: 4 kB / 0.7708 GB, free: 15.01 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002212/0.4264, allocations: 8 kB / 0.7708 GB, free: 15 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 (fac.y,rea2Int.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.000156/0.4266, allocations: 111.2 kB / 0.7709 GB, free: 14.88 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002474/0.4268, allocations: 39.95 kB / 0.771 GB, free: 14.84 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.4268, allocations: 0 / 0.771 GB, free: 14.84 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 9.934e-05/0.4269, allocations: 23.98 kB / 0.771 GB, free: 14.82 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002942/0.4272, allocations: 11.92 kB / 0.771 GB, free: 14.8 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003512/0.4276, allocations: 117.6 kB / 0.7711 GB, free: 14.66 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002896/0.4279, allocations: 0.6806 MB / 0.7718 GB, free: 13.96 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 3.341e-05/0.4279, allocations: 7.938 kB / 0.7718 GB, free: 13.95 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.893e-05/0.428, allocations: 7.438 kB / 0.7718 GB, free: 13.94 MB / 0.545 GB Notification: Performance of SimCode: time 2.91e-07/0.428, allocations: 0 / 0.7718 GB, free: 13.94 MB / 0.545 GB Notification: Performance of Templates: time 0.003022/0.431, allocations: 0.7218 MB / 0.7725 GB, free: 13.23 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.makefile (rm -f BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.sim & ./BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.Math.Examples.Factorial.pipe 2>&1)