Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Utilities.Math.Examples.Factorial.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 4.9/4.9, allocations: 0.5623 GB / 0.5769 GB, free: 3.266 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.003789/0.003789, allocations: 354.9 kB / 0.644 GB, free: 185.6 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.249/4.249, allocations: 410.8 MB / 1.112 GB, free: 6.008 MB / 0.6042 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001772/0.001772, allocations: 180.6 kB / 1.225 GB, free: 6.152 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.0004913/0.0004916, allocations: 16 kB / 1.348 GB, free: 8.289 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6861/0.6866, allocations: 115.3 MB / 1.461 GB, free: 284.4 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001416/0.6881, allocations: 1.225 MB / 1.462 GB, free: 283.1 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.000275/0.6884, allocations: 112.5 kB / 1.462 GB, free: 283 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.048e-05/0.6884, allocations: 4 kB / 1.462 GB, free: 283 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 1.484e-05/0.6885, allocations: 0 / 1.462 GB, free: 283 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 3.337e-05/0.6885, allocations: 1.281 kB / 1.462 GB, free: 283 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.000166/0.6887, allocations: 23.84 kB / 1.462 GB, free: 283 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 5.026e-05/0.6888, allocations: 23.92 kB / 1.462 GB, free: 283 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 7.221e-05/0.6888, allocations: 9.984 kB / 1.462 GB, free: 283 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 3.41e-05/0.6889, allocations: 8 kB / 1.462 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 4.224e-05/0.6889, allocations: 23.91 kB / 1.462 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 1.138e-05/0.689, allocations: 0 / 1.462 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 4.852e-05/0.689, allocations: 4.75 kB / 1.462 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 1.074e-05/0.689, allocations: 7.984 kB / 1.462 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 1.798e-05/0.6891, allocations: 30.23 kB / 1.462 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 6.464e-05/0.6892, allocations: 12.56 kB / 1.462 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 4.255e-06/0.6892, allocations: 4 kB / 1.462 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.898e-06/0.6892, allocations: 1.219 kB / 1.462 GB, free: 282.9 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 4.48e-06/0.6892, allocations: 0 / 1.462 GB, free: 282.9 MB / 0.8542 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.0003695/0.6896, allocations: 347.2 kB / 1.463 GB, free: 282.5 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.49e-05/0.6896, allocations: 15.62 kB / 1.463 GB, free: 282.5 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.799e-05/0.6897, allocations: 8.891 kB / 1.463 GB, free: 282.5 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.526e-05/0.6897, allocations: 167 kB / 1.463 GB, free: 282.3 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.158e-05/0.6898, allocations: 4.688 kB / 1.463 GB, free: 282.2 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.515e-05/0.6898, allocations: 4 kB / 1.463 GB, free: 282.2 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001892/0.69, allocations: 60.84 kB / 1.463 GB, free: 282.2 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.517e-06/0.69, allocations: 2.344 kB / 1.463 GB, free: 282.2 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.137e-06/0.69, allocations: 0 / 1.463 GB, free: 282.2 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.112e-05/0.6901, allocations: 3.984 kB / 1.463 GB, free: 282.2 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002097/0.6903, allocations: 54.41 kB / 1.463 GB, free: 282.1 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003218/0.6906, allocations: 272.8 kB / 1.463 GB, free: 281.8 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003598/0.691, allocations: 65.31 kB / 1.463 GB, free: 281.7 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001185/0.6911, allocations: 31.19 kB / 1.463 GB, free: 281.7 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001018/0.6912, allocations: 89.08 kB / 1.463 GB, free: 281.6 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.255e-05/0.6913, allocations: 30.56 kB / 1.463 GB, free: 281.6 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=3): time 2.236e-06/0.6913, allocations: 1.625 kB / 1.463 GB, free: 281.6 MB / 0.8542 GB Notification: Performance of matching and sorting (n=3): time 0.0004299/0.6917, allocations: 112.5 kB / 1.463 GB, free: 281.5 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.224e-05/0.6918, allocations: 56.22 kB / 1.463 GB, free: 281.4 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.299e-05/0.6918, allocations: 106.3 kB / 1.464 GB, free: 281.3 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 1.001e-05/0.6919, allocations: 27.02 kB / 1.464 GB, free: 281.2 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 2.928e-05/0.6919, allocations: 80.14 kB / 1.464 GB, free: 281.2 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 1.755e-05/0.6919, allocations: 7.906 kB / 1.464 GB, free: 281.2 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.027e-06/0.6919, allocations: 2.656 kB / 1.464 GB, free: 281.2 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 4.967e-05/0.692, allocations: 318.8 kB / 1.464 GB, free: 280.8 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001077/0.6921, allocations: 19.98 kB / 1.464 GB, free: 280.8 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001018/0.6922, allocations: 29.78 kB / 1.464 GB, free: 280.8 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001069/0.6923, allocations: 24.86 kB / 1.464 GB, free: 280.8 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.711e-06/0.6924, allocations: 0 / 1.464 GB, free: 280.8 MB / 0.8542 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002641/0.6926, allocations: 89.8 kB / 1.464 GB, free: 280.7 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 1.469e-05/0.6927, allocations: 4 kB / 1.464 GB, free: 280.7 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.048e-06/0.6927, allocations: 1.25 kB / 1.464 GB, free: 280.7 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.669e-05/0.6927, allocations: 0 / 1.464 GB, free: 280.7 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001115/0.6928, allocations: 17.48 kB / 1.464 GB, free: 280.7 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.802e-06/0.6928, allocations: 0 / 1.464 GB, free: 280.7 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.434e-05/0.6929, allocations: 7.984 kB / 1.464 GB, free: 280.6 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.085e-05/0.693, allocations: 10.73 kB / 1.464 GB, free: 280.6 MB / 0.8542 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.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.988e-05/0.693, allocations: 109.8 kB / 1.464 GB, free: 280.5 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.831e-05/0.6931, allocations: 7.906 kB / 1.464 GB, free: 280.5 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002975/0.6934, allocations: 93.98 kB / 1.464 GB, free: 280.4 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.227e-06/0.6934, allocations: 0 / 1.464 GB, free: 280.4 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.807e-06/0.6934, allocations: 8.969 kB / 1.464 GB, free: 280.4 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.868e-06/0.6934, allocations: 0 / 1.464 GB, free: 280.4 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001575/0.6936, allocations: 157.6 kB / 1.465 GB, free: 280.2 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.13e-06/0.6936, allocations: 3.938 kB / 1.465 GB, free: 280.2 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001003/0.6937, allocations: 15.98 kB / 1.465 GB, free: 280.2 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.645e-06/0.6937, allocations: 0 / 1.465 GB, free: 280.2 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.007e-05/0.6938, allocations: 4 kB / 1.465 GB, free: 280.2 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.097e-06/0.6938, allocations: 8.891 kB / 1.465 GB, free: 280.2 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.767e-06/0.6938, allocations: 0 / 1.465 GB, free: 280.2 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002817/0.6941, allocations: 188.4 kB / 1.465 GB, free: 280 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 2.197e-05/0.6941, allocations: 82.52 kB / 1.465 GB, free: 279.9 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.651e-05/0.6941, allocations: 3.938 kB / 1.465 GB, free: 279.9 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001164/0.6943, allocations: 15.92 kB / 1.465 GB, free: 279.9 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.157e-05/0.6943, allocations: 4.703 kB / 1.465 GB, free: 279.9 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.414e-06/0.6943, allocations: 8.531 kB / 1.465 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 2.713e-05/0.6944, allocations: 76.12 kB / 1.465 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of sort global known variables: time 7.21e-07/0.6944, allocations: 0 / 1.465 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.000307/0.6947, allocations: 8 kB / 1.465 GB, free: 279.8 MB / 0.8542 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001287/0.6949, allocations: 109.4 kB / 1.465 GB, free: 279.7 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.0002895/0.6952, allocations: 56.89 kB / 1.465 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 2.402e-06/0.6952, allocations: 0 / 1.465 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.0001228/0.6953, allocations: 34.27 kB / 1.465 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003227/0.6956, allocations: 7.938 kB / 1.465 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002751/0.6959, allocations: 117.4 kB / 1.465 GB, free: 279.4 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001154/0.6961, allocations: 0.6836 MB / 1.466 GB, free: 278.7 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 4.776e-05/0.6961, allocations: 9.25 kB / 1.466 GB, free: 278.7 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.849e-05/0.6962, allocations: 11.44 kB / 1.466 GB, free: 278.7 MB / 0.8542 GB Notification: Performance of SimCode: time 1.476e-06/0.6962, allocations: 0 / 1.466 GB, free: 278.7 MB / 0.8542 GB Notification: Performance of Templates: time 0.002939/0.6991, allocations: 0.5936 MB / 1.467 GB, free: 278.1 MB / 0.8542 GB