Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial") translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.366/2.366, allocations: 251.1 MB / 266.7 MB, free: 11.64 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001297/0.001297, allocations: 189.1 kB / 326.3 MB, free: 2.883 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.446/2.446, allocations: 205.4 MB / 0.5772 GB, free: 20.74 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009207/0.0009208, allocations: 90.11 kB / 0.6817 GB, free: 13.67 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0006249/0.0006251, allocations: 13.28 kB / 0.7957 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2039/0.2046, allocations: 106.3 MB / 0.8995 GB, free: 65.58 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.0007216/0.2053, allocations: 326.3 kB / 0.8998 GB, free: 65.26 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0002283/0.2056, allocations: 43.91 kB / 0.8999 GB, free: 65.21 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.079e-05/0.2056, allocations: 0 / 0.8999 GB, free: 65.21 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 9.729e-06/0.2056, allocations: 3.938 kB / 0.8999 GB, free: 65.21 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 7.173e-06/0.2056, allocations: 0 / 0.8999 GB, free: 65.21 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001807/0.2058, allocations: 23.91 kB / 0.8999 GB, free: 65.19 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 3.719e-05/0.2059, allocations: 0 / 0.8999 GB, free: 65.19 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 4.865e-05/0.2059, allocations: 0 / 0.8999 GB, free: 65.19 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 1.438e-05/0.206, allocations: 8 kB / 0.8999 GB, free: 65.18 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 2.465e-05/0.206, allocations: 3.938 kB / 0.8999 GB, free: 65.18 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.008e-05/0.206, allocations: 0 / 0.8999 GB, free: 65.18 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 5.971e-05/0.2061, allocations: 4 kB / 0.8999 GB, free: 65.17 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 7.343e-06/0.2061, allocations: 4 kB / 0.8999 GB, free: 65.17 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 2.021e-05/0.2061, allocations: 29.69 kB / 0.8999 GB, free: 65.13 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 5.308e-05/0.2062, allocations: 4 kB / 0.8999 GB, free: 65.13 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2062, allocations: 0 / 0.8999 GB, free: 65.13 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.793e-06/0.2062, allocations: 0 / 0.8999 GB, free: 65.13 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 8.025e-06/0.2062, allocations: 0 / 0.8999 GB, free: 65.13 MB / 0.6042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002243/0.2065, allocations: 316.7 kB / 0.9002 GB, free: 64.77 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.185e-05/0.2065, allocations: 8.031 kB / 0.9002 GB, free: 64.76 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.061e-05/0.2066, allocations: 4.844 kB / 0.9003 GB, free: 64.76 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 6.233e-05/0.2067, allocations: 160.4 kB / 0.9004 GB, free: 64.56 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.458e-05/0.2067, allocations: 4.375 kB / 0.9004 GB, free: 64.56 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.216e-06/0.2067, allocations: 384 / 0.9004 GB, free: 64.56 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.689e-05/0.2068, allocations: 42.23 kB / 0.9004 GB, free: 64.51 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.488e-06/0.2068, allocations: 192 / 0.9004 GB, free: 64.51 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.987e-06/0.2068, allocations: 7.875 kB / 0.9005 GB, free: 64.5 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.469e-06/0.2069, allocations: 0 / 0.9005 GB, free: 64.5 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.602e-05/0.2069, allocations: 8 kB / 0.9005 GB, free: 64.5 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001234/0.207, allocations: 149.7 kB / 0.9006 GB, free: 64.3 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 4.59e-05/0.2071, allocations: 22.59 kB / 0.9006 GB, free: 64.27 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.156e-05/0.2071, allocations: 8.922 kB / 0.9006 GB, free: 64.26 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001547/0.2073, allocations: 85.11 kB / 0.9007 GB, free: 64.16 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.03e-05/0.2073, allocations: 30.56 kB / 0.9007 GB, free: 64.12 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=2): time 2.665e-06/0.2073, allocations: 4 kB / 0.9008 GB, free: 64.11 MB / 0.6042 GB Notification: Performance of matching and sorting (n=2): time 0.0001368/0.2075, allocations: 49.5 kB / 0.9008 GB, free: 64.06 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.823e-05/0.2075, allocations: 51.41 kB / 0.9008 GB, free: 64 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.612e-05/0.2075, allocations: 93.86 kB / 0.9009 GB, free: 63.89 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 8.627e-06/0.2076, allocations: 29.7 kB / 0.901 GB, free: 63.86 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 1.443e-05/0.2076, allocations: 80.14 kB / 0.901 GB, free: 63.78 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.802e-05/0.2076, allocations: 0 / 0.901 GB, free: 63.78 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.536e-06/0.2076, allocations: 0 / 0.901 GB, free: 63.78 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.614e-05/0.2077, allocations: 315 kB / 0.9013 GB, free: 63.46 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.421e-05/0.2077, allocations: 7.984 kB / 0.9013 GB, free: 63.45 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.668e-06/0.2077, allocations: 0 / 0.9013 GB, free: 63.45 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.387e-05/0.2078, allocations: 8 kB / 0.9014 GB, free: 63.45 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.2078, allocations: 0 / 0.9014 GB, free: 63.45 MB / 0.6042 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.654e-05/0.2079, allocations: 41.58 kB / 0.9014 GB, free: 63.4 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.291e-05/0.2079, allocations: 4 kB / 0.9014 GB, free: 63.39 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.509e-06/0.2079, allocations: 0 / 0.9014 GB, free: 63.39 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.567e-05/0.2079, allocations: 3.938 kB / 0.9014 GB, free: 63.39 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.457e-05/0.208, allocations: 16.08 kB / 0.9014 GB, free: 63.38 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.208, allocations: 0 / 0.9014 GB, free: 63.38 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.736e-05/0.208, allocations: 0 / 0.9014 GB, free: 63.38 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.53e-06/0.208, allocations: 0 / 0.9014 GB, free: 63.38 MB / 0.6042 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 (fac,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 5.362e-05/0.2081, allocations: 113.8 kB / 0.9015 GB, free: 63.25 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.616e-06/0.2081, allocations: 0 / 0.9015 GB, free: 63.25 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.736e-05/0.2082, allocations: 52.66 kB / 0.9016 GB, free: 63.2 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.04e-06/0.2082, allocations: 3.938 kB / 0.9016 GB, free: 63.19 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.2083, allocations: 4.031 kB / 0.9016 GB, free: 63.19 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.15e-05/0.2083, allocations: 77.11 kB / 0.9017 GB, free: 63.09 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.302e-05/0.2083, allocations: 0 / 0.9017 GB, free: 63.09 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.51e-05/0.2083, allocations: 0 / 0.9017 GB, free: 63.09 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.872e-05/0.2084, allocations: 7.984 kB / 0.9017 GB, free: 63.09 MB / 0.6042 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 7.378e-05/0.2085, allocations: 113 kB / 0.9018 GB, free: 62.97 MB / 0.6042 GB Notification: Performance of postOpt detectDAEmodeSparsePattern (simulation): time 9.844e-05/0.2086, allocations: 218.7 kB / 0.902 GB, free: 62.74 MB / 0.6042 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.577e-05/0.2086, allocations: 4 kB / 0.902 GB, free: 62.73 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 1.384e-05/0.2086, allocations: 75.28 kB / 0.9021 GB, free: 62.66 MB / 0.6042 GB Notification: Performance of Backend: time 6.41e-07/0.2086, allocations: 0 / 0.9021 GB, free: 62.66 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003972/0.209, allocations: 94.33 kB / 0.9021 GB, free: 62.56 MB / 0.6042 GB Notification: Performance of SimCode: time 0.0002511/0.2093, allocations: 0.5312 MB / 0.9027 GB, free: 61.98 MB / 0.6042 GB Notification: Performance of Templates: time 0.002721/0.212, allocations: 333.4 kB / 0.903 GB, free: 61.66 MB / 0.6042 GB make -j1 -f Buildings_7.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_7.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_7.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_7.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_7.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)