Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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_3.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_3.0.0_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.001879/0.001879, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.003357/0.003356, allocations: 191.6 kB / 16.25 MB, free: 6.629 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.559/1.559, allocations: 222.9 MB / 239.9 MB, free: 4.555 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.865/2.865, allocations: 472.6 MB / 0.7448 GB, free: 4.93 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001494/0.001494, allocations: 69.22 kB / 0.9115 GB, free: 33.53 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2898/0.2914, allocations: 159.9 MB / 1.068 GB, free: 10.78 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001787/0.2932, allocations: 0.6425 MB / 1.068 GB, free: 10.13 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0002529/0.2935, allocations: 43.86 kB / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.007e-05/0.2935, allocations: 0 / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 1.438e-05/0.2935, allocations: 0 / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.879e-06/0.2935, allocations: 0 / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.000214/0.2938, allocations: 19.98 kB / 1.068 GB, free: 10.07 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 4.258e-05/0.2938, allocations: 7.984 kB / 1.068 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 4.166e-05/0.2939, allocations: 0 / 1.068 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 1.197e-05/0.2939, allocations: 0 / 1.068 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 2.148e-05/0.2939, allocations: 4 kB / 1.068 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 9.097e-06/0.2939, allocations: 0 / 1.068 GB, free: 10.06 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.954e-05/0.294, allocations: 8 kB / 1.068 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 8.576e-06/0.294, allocations: 3.938 kB / 1.068 GB, free: 10.05 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 2.554e-05/0.294, allocations: 7.922 kB / 1.068 GB, free: 10.04 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 7.952e-05/0.2941, allocations: 11.98 kB / 1.068 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.2941, allocations: 0 / 1.068 GB, free: 10.03 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.493e-06/0.2941, allocations: 4 kB / 1.068 GB, free: 10.02 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.949e-06/0.2941, allocations: 0 / 1.068 GB, free: 10.02 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.000299/0.2944, allocations: 319.6 kB / 1.069 GB, free: 9.66 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.885e-05/0.2945, allocations: 8.031 kB / 1.069 GB, free: 9.652 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.726e-05/0.2945, allocations: 0.9375 kB / 1.069 GB, free: 9.652 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.796e-05/0.2946, allocations: 160.4 kB / 1.069 GB, free: 9.457 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.312e-05/0.2946, allocations: 4.375 kB / 1.069 GB, free: 9.453 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.075e-05/0.2946, allocations: 4.375 kB / 1.069 GB, free: 9.449 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.966e-05/0.2947, allocations: 34.25 kB / 1.069 GB, free: 9.41 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.021e-06/0.2947, allocations: 4.125 kB / 1.069 GB, free: 9.406 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.027e-06/0.2948, allocations: 7.938 kB / 1.069 GB, free: 9.398 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.947e-06/0.2948, allocations: 0 / 1.069 GB, free: 9.398 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.962e-05/0.2948, allocations: 3.938 kB / 1.069 GB, free: 9.395 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001353/0.2949, allocations: 155.8 kB / 1.069 GB, free: 9.195 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 4.721e-05/0.295, allocations: 18.61 kB / 1.069 GB, free: 9.168 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.41e-05/0.295, allocations: 12.92 kB / 1.069 GB, free: 9.152 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001608/0.2952, allocations: 85.11 kB / 1.069 GB, free: 9.051 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.23e-05/0.2952, allocations: 34.55 kB / 1.069 GB, free: 9.008 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=2): time 2.825e-06/0.2952, allocations: 3.984 kB / 1.069 GB, free: 9.004 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2): time 0.0001402/0.2954, allocations: 45.58 kB / 1.069 GB, free: 8.953 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.968e-05/0.2954, allocations: 55.34 kB / 1.069 GB, free: 8.887 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.733e-05/0.2955, allocations: 93.86 kB / 1.069 GB, free: 8.785 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.072e-05/0.2955, allocations: 25.7 kB / 1.069 GB, free: 8.754 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 2.904e-05/0.2955, allocations: 88.27 kB / 1.07 GB, free: 8.664 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.912e-05/0.2955, allocations: 3.906 kB / 1.07 GB, free: 8.66 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.287e-05/0.2956, allocations: 17.7 kB / 1.07 GB, free: 8.637 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 9.585e-05/0.2957, allocations: 314.8 kB / 1.07 GB, free: 8.32 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.148e-05/0.2957, allocations: 0 / 1.07 GB, free: 8.32 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.042e-05/0.2957, allocations: 4 kB / 1.07 GB, free: 8.316 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.165e-05/0.2957, allocations: 12.86 kB / 1.07 GB, free: 8.301 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.2958, allocations: 0 / 1.07 GB, free: 8.301 MB / 0.8262 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.458e-05/0.2958, allocations: 45.69 kB / 1.07 GB, free: 8.25 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.355e-05/0.2958, allocations: 4 kB / 1.07 GB, free: 8.246 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.2959, allocations: 0 / 1.07 GB, free: 8.246 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.144e-05/0.2959, allocations: 3.938 kB / 1.07 GB, free: 8.242 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.657e-05/0.2959, allocations: 4 kB / 1.07 GB, free: 8.238 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.849e-06/0.2959, allocations: 0 / 1.07 GB, free: 8.238 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.271e-05/0.296, allocations: 0 / 1.07 GB, free: 8.238 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.179e-06/0.296, allocations: 7.984 kB / 1.07 GB, free: 8.23 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.392e-05/0.296, allocations: 117.9 kB / 1.07 GB, free: 8.105 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.376e-06/0.2961, allocations: 0 / 1.07 GB, free: 8.105 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.826e-05/0.2961, allocations: 48.98 kB / 1.07 GB, free: 8.051 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/0.2962, allocations: 0 / 1.07 GB, free: 8.051 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.457e-06/0.2962, allocations: 0 / 1.07 GB, free: 8.051 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.2962, allocations: 3.984 kB / 1.07 GB, free: 8.047 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.405e-05/0.2963, allocations: 149.6 kB / 1.07 GB, free: 7.852 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.2963, allocations: 0 / 1.07 GB, free: 7.852 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.733e-05/0.2963, allocations: 8 kB / 1.07 GB, free: 7.844 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.923e-06/0.2963, allocations: 0 / 1.07 GB, free: 7.844 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.751e-05/0.2963, allocations: 3.969 kB / 1.07 GB, free: 7.84 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.915e-06/0.2963, allocations: 7.984 kB / 1.07 GB, free: 7.832 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-06/0.2963, allocations: 3.938 kB / 1.07 GB, free: 7.828 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.636e-05/0.2964, allocations: 57.14 kB / 1.07 GB, free: 7.754 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 2.975e-05/0.2965, allocations: 85.09 kB / 1.07 GB, free: 7.652 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.134e-05/0.2965, allocations: 3.938 kB / 1.07 GB, free: 7.648 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.261e-05/0.2965, allocations: 0 / 1.07 GB, free: 7.648 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.323e-05/0.2965, allocations: 3.938 kB / 1.07 GB, free: 7.645 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.069e-06/0.2965, allocations: 8.031 kB / 1.07 GB, free: 7.637 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 2.499e-05/0.2966, allocations: 83.22 kB / 1.071 GB, free: 7.555 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.11e-07/0.2966, allocations: 0 / 1.071 GB, free: 7.555 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0001934/0.2968, allocations: 4 kB / 1.071 GB, free: 7.551 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.0001486/0.2969, allocations: 99.25 kB / 1.071 GB, free: 7.441 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 7.452e-05/0.297, allocations: 11.98 kB / 1.071 GB, free: 7.43 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 1.442e-06/0.297, allocations: 0 / 1.071 GB, free: 7.43 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 1.526e-05/0.297, allocations: 8.062 kB / 1.071 GB, free: 7.422 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000131/0.2972, allocations: 4 kB / 1.071 GB, free: 7.418 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001802/0.2974, allocations: 92.81 kB / 1.071 GB, free: 7.301 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001952/0.2976, allocations: 0.6767 MB / 1.071 GB, free: 6.598 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 1.431e-05/0.2976, allocations: 0 / 1.071 GB, free: 6.598 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.601e-05/0.2976, allocations: 7.438 kB / 1.071 GB, free: 6.59 MB / 0.8262 GB Notification: Performance of SimCode: time 2.5e-07/0.2976, allocations: 0 / 1.071 GB, free: 6.59 MB / 0.8262 GB Notification: Performance of Templates: time 0.002087/0.2997, allocations: 320.7 kB / 1.072 GB, free: 6.277 MB / 0.8262 GB make -j1 -f Buildings_3.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_3.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_3.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_3.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_3.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1)