Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_Buildings.Utilities.Math.Functions.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/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Utilities.Math.Functions.Examples.Factorial") translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_Buildings.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001312/0.001312, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.002004/0.002004, allocations: 195.4 kB / 16.14 MB, free: 6.695 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.457/1.457, allocations: 222.9 MB / 239.8 MB, free: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.892/2.892, allocations: 472.6 MB / 0.7447 GB, free: 4.957 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001251/0.001251, allocations: 67.33 kB / 0.9114 GB, free: 33.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3583/0.3596, allocations: 159.9 MB / 1.068 GB, free: 10.91 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001857/0.3615, allocations: 0.6386 MB / 1.068 GB, free: 10.26 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0002884/0.3618, allocations: 51.84 kB / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.688e-06/0.3618, allocations: 4 kB / 1.068 GB, free: 10.21 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.537e-05/0.3618, allocations: 4 kB / 1.068 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 6.121e-06/0.3618, allocations: 0 / 1.068 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002042/0.362, allocations: 7.984 kB / 1.068 GB, free: 10.2 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 4.073e-05/0.3621, allocations: 4 kB / 1.068 GB, free: 10.19 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.057e-05/0.3621, allocations: 0 / 1.068 GB, free: 10.19 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 1.833e-05/0.3622, allocations: 4 kB / 1.068 GB, free: 10.19 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 2.313e-05/0.3622, allocations: 0 / 1.068 GB, free: 10.19 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.159e-05/0.3622, allocations: 3.938 kB / 1.068 GB, free: 10.18 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 7.12e-05/0.3623, allocations: 15.92 kB / 1.068 GB, free: 10.17 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 1.338e-05/0.3623, allocations: 7.922 kB / 1.068 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 1.888e-05/0.3623, allocations: 4 kB / 1.068 GB, free: 10.16 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 9.161e-05/0.3624, allocations: 8 kB / 1.068 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.3624, allocations: 0 / 1.068 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of FrontEnd: time 9.92e-07/0.3624, allocations: 0 / 1.068 GB, free: 10.15 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.466e-06/0.3625, allocations: 4 kB / 1.068 GB, free: 10.14 MB / 0.8262 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.0003128/0.3628, allocations: 315.6 kB / 1.069 GB, free: 9.785 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.418e-05/0.3628, allocations: 8.031 kB / 1.069 GB, free: 9.777 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.087e-05/0.3628, allocations: 0.9375 kB / 1.069 GB, free: 9.777 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.418e-05/0.3629, allocations: 164.4 kB / 1.069 GB, free: 9.578 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.168e-05/0.363, allocations: 4.375 kB / 1.069 GB, free: 9.574 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.846e-06/0.363, allocations: 8.375 kB / 1.069 GB, free: 9.566 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.928e-05/0.3631, allocations: 26.27 kB / 1.069 GB, free: 9.535 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.313e-06/0.3631, allocations: 4.188 kB / 1.069 GB, free: 9.531 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.089e-05/0.3631, allocations: 3.938 kB / 1.069 GB, free: 9.527 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.109e-06/0.3631, allocations: 0 / 1.069 GB, free: 9.527 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.649e-05/0.3632, allocations: 7.938 kB / 1.069 GB, free: 9.52 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001463/0.3633, allocations: 149.7 kB / 1.069 GB, free: 9.324 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 5.319e-05/0.3634, allocations: 26.55 kB / 1.069 GB, free: 9.289 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.324e-05/0.3634, allocations: 15.09 kB / 1.069 GB, free: 9.273 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000168/0.3636, allocations: 85.09 kB / 1.069 GB, free: 9.172 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.458e-05/0.3636, allocations: 34.56 kB / 1.069 GB, free: 9.129 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 1.333e-06/0.3636, allocations: 0 / 1.069 GB, free: 9.129 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2): time 0.000149/0.3638, allocations: 49.56 kB / 1.069 GB, free: 9.074 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.247e-05/0.3638, allocations: 51.41 kB / 1.069 GB, free: 9.012 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.814e-05/0.3638, allocations: 93.98 kB / 1.069 GB, free: 8.91 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.33e-05/0.3639, allocations: 25.7 kB / 1.069 GB, free: 8.879 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 3.067e-05/0.3639, allocations: 84.14 kB / 1.069 GB, free: 8.793 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 2.187e-05/0.3639, allocations: 3.906 kB / 1.069 GB, free: 8.789 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.689e-05/0.364, allocations: 13.72 kB / 1.069 GB, free: 8.77 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001027/0.3641, allocations: 314.8 kB / 1.07 GB, free: 8.453 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.07e-05/0.3641, allocations: 0 / 1.07 GB, free: 8.453 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.758e-06/0.3641, allocations: 7.984 kB / 1.07 GB, free: 8.445 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.015e-05/0.3641, allocations: 16.92 kB / 1.07 GB, free: 8.426 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.3641, allocations: 0 / 1.07 GB, free: 8.426 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.144e-05/0.3642, allocations: 37.64 kB / 1.07 GB, free: 8.383 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.418e-05/0.3642, allocations: 4 kB / 1.07 GB, free: 8.379 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.3642, allocations: 0 / 1.07 GB, free: 8.379 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.3643, allocations: 7.938 kB / 1.07 GB, free: 8.371 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.121e-05/0.3643, allocations: 3.984 kB / 1.07 GB, free: 8.367 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.49e-06/0.3643, allocations: 3.938 kB / 1.07 GB, free: 8.363 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.792e-05/0.3643, allocations: 8 kB / 1.07 GB, free: 8.355 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.659e-06/0.3644, allocations: 4.031 kB / 1.07 GB, free: 8.352 MB / 0.8262 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 (n,fac) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.742e-05/0.3644, allocations: 109.8 kB / 1.07 GB, free: 8.234 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.843e-06/0.3644, allocations: 0 / 1.07 GB, free: 8.234 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.66e-05/0.3645, allocations: 48.97 kB / 1.07 GB, free: 8.18 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.373e-06/0.3645, allocations: 0 / 1.07 GB, free: 8.18 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.3645, allocations: 0 / 1.07 GB, free: 8.18 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.275e-06/0.3646, allocations: 0 / 1.07 GB, free: 8.18 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.49e-05/0.3647, allocations: 161.6 kB / 1.07 GB, free: 7.973 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.3647, allocations: 0 / 1.07 GB, free: 7.973 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.258e-05/0.3647, allocations: 8.031 kB / 1.07 GB, free: 7.965 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-06/0.3647, allocations: 0 / 1.07 GB, free: 7.965 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.206e-06/0.3647, allocations: 3.938 kB / 1.07 GB, free: 7.961 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.031e-06/0.3647, allocations: 3.938 kB / 1.07 GB, free: 7.957 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.52e-07/0.3647, allocations: 0 / 1.07 GB, free: 7.957 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.496e-05/0.3648, allocations: 65.12 kB / 1.07 GB, free: 7.875 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 3.339e-05/0.3648, allocations: 81.09 kB / 1.07 GB, free: 7.777 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.162e-05/0.3649, allocations: 3.969 kB / 1.07 GB, free: 7.773 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.033e-05/0.3649, allocations: 4 kB / 1.07 GB, free: 7.77 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.794e-05/0.3649, allocations: 0 / 1.07 GB, free: 7.77 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.968e-06/0.3649, allocations: 7.938 kB / 1.07 GB, free: 7.762 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 2.442e-05/0.3649, allocations: 75.28 kB / 1.07 GB, free: 7.688 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3649, allocations: 0 / 1.07 GB, free: 7.688 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0001928/0.3651, allocations: 8 kB / 1.07 GB, free: 7.68 MB / 0.8262 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,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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.0001546/0.3653, allocations: 103.2 kB / 1.07 GB, free: 7.566 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 7.342e-05/0.3654, allocations: 12 kB / 1.07 GB, free: 7.555 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.3654, allocations: 0 / 1.07 GB, free: 7.555 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.587e-05/0.3654, allocations: 4 kB / 1.07 GB, free: 7.551 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001357/0.3656, allocations: 6.797 kB / 1.07 GB, free: 7.547 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002043/0.3658, allocations: 82.77 kB / 1.071 GB, free: 7.438 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002395/0.366, allocations: 0.6808 MB / 1.071 GB, free: 6.73 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.692e-05/0.366, allocations: 7.922 kB / 1.071 GB, free: 6.723 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.385e-05/0.3661, allocations: 7.438 kB / 1.071 GB, free: 6.715 MB / 0.8262 GB Notification: Performance of SimCode: time 2.5e-07/0.3661, allocations: 4.125 kB / 1.071 GB, free: 6.711 MB / 0.8262 GB Notification: Performance of Templates: time 0.002312/0.3684, allocations: 316.7 kB / 1.072 GB, free: 6.402 MB / 0.8262 GB make -j1 -f Buildings_1.6_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_1.6_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_1.6_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_1.6_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_1.6_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)