Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/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.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.388/1.388, allocations: 251.5 MB / 267.4 MB, free: 11.04 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.001147/0.001147, allocations: 181.6 kB / 326.5 MB, free: 2.676 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.084/2.084, allocations: 205 MB / 0.5766 GB, free: 20.98 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.0008182/0.0008183, allocations: 79.83 kB / 0.6803 GB, free: 14.7 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003633/0.0003634, allocations: 12.75 kB / 0.7938 GB, free: 136.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2934/0.2938, allocations: 105.4 MB / 0.8967 GB, free: 68.16 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001894/0.2957, allocations: 1.244 MB / 0.898 GB, free: 66.9 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.0004711/0.2963, allocations: 125.2 kB / 0.8981 GB, free: 66.77 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.799e-05/0.2963, allocations: 3.938 kB / 0.8981 GB, free: 66.77 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 3.798e-05/0.2964, allocations: 3.938 kB / 0.8981 GB, free: 66.77 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 6.414e-05/0.2964, allocations: 3.984 kB / 0.8981 GB, free: 66.76 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002406/0.2967, allocations: 23.91 kB / 0.8981 GB, free: 66.74 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 6.841e-05/0.2968, allocations: 16 kB / 0.8981 GB, free: 66.72 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001085/0.2969, allocations: 19.92 kB / 0.8981 GB, free: 66.7 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 5.071e-05/0.2969, allocations: 12 kB / 0.8982 GB, free: 66.69 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.385e-05/0.297, allocations: 15.91 kB / 0.8982 GB, free: 66.68 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.51e-05/0.297, allocations: 0 / 0.8982 GB, free: 66.68 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 7.467e-05/0.2971, allocations: 11.98 kB / 0.8982 GB, free: 66.66 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.587e-05/0.2971, allocations: 7.938 kB / 0.8982 GB, free: 66.66 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 2.954e-05/0.2972, allocations: 11.88 kB / 0.8982 GB, free: 66.64 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 9.759e-05/0.2973, allocations: 27.95 kB / 0.8982 GB, free: 66.62 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.2973, allocations: 0 / 0.8982 GB, free: 66.62 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.944e-06/0.2973, allocations: 0 / 0.8982 GB, free: 66.62 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.659e-06/0.2973, allocations: 0 / 0.8982 GB, free: 66.62 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004676/0.2978, allocations: 343.5 kB / 0.8986 GB, free: 66.23 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 4.387e-05/0.2978, allocations: 8.031 kB / 0.8986 GB, free: 66.22 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.965e-05/0.2979, allocations: 0.9375 kB / 0.8986 GB, free: 66.22 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001023/0.298, allocations: 172.3 kB / 0.8987 GB, free: 66.02 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.89e-05/0.298, allocations: 384 / 0.8987 GB, free: 66.02 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.278e-05/0.298, allocations: 384 / 0.8987 GB, free: 66.02 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001965/0.2982, allocations: 66.22 kB / 0.8988 GB, free: 65.95 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.696e-06/0.2983, allocations: 192 / 0.8988 GB, free: 65.95 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.365e-05/0.2983, allocations: 11.92 kB / 0.8988 GB, free: 65.93 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.87e-06/0.2983, allocations: 4 kB / 0.8988 GB, free: 65.93 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001787/0.2985, allocations: 55.89 kB / 0.8989 GB, free: 65.88 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003958/0.2989, allocations: 260.9 kB / 0.8991 GB, free: 65.57 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003147/0.2992, allocations: 66.47 kB / 0.8992 GB, free: 65.5 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.85e-05/0.2993, allocations: 36.89 kB / 0.8992 GB, free: 65.46 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001253/0.2995, allocations: 81.11 kB / 0.8993 GB, free: 65.36 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.007e-05/0.2995, allocations: 34.5 kB / 0.8993 GB, free: 65.32 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=3): time 1.152e-06/0.2995, allocations: 0 / 0.8993 GB, free: 65.32 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3): time 0.0004022/0.2999, allocations: 113.6 kB / 0.8994 GB, free: 65.2 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.867e-05/0.2999, allocations: 51.41 kB / 0.8995 GB, free: 65.14 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.746e-05/0.3, allocations: 101.8 kB / 0.8996 GB, free: 65.03 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.487e-05/0.3, allocations: 33.69 kB / 0.8996 GB, free: 64.99 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 4.113e-05/0.3001, allocations: 84.14 kB / 0.8997 GB, free: 64.9 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 1.986e-05/0.3001, allocations: 7.906 kB / 0.8997 GB, free: 64.89 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.431e-05/0.3001, allocations: 17.66 kB / 0.8997 GB, free: 64.87 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.705e-05/0.3002, allocations: 310.8 kB / 0.9 GB, free: 64.56 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.735e-05/0.3003, allocations: 27.97 kB / 0.9 GB, free: 64.53 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.559e-05/0.3004, allocations: 27.98 kB / 0.9001 GB, free: 64.5 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001954/0.3006, allocations: 56.69 kB / 0.9001 GB, free: 64.45 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.3006, allocations: 7.938 kB / 0.9001 GB, free: 64.44 MB / 0.6042 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002085/0.3008, allocations: 85.66 kB / 0.9002 GB, free: 64.35 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 1.782e-05/0.3008, allocations: 4 kB / 0.9002 GB, free: 64.34 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.081e-06/0.3009, allocations: 0 / 0.9002 GB, free: 64.34 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.489e-05/0.3009, allocations: 0 / 0.9002 GB, free: 64.34 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.856e-05/0.301, allocations: 15.98 kB / 0.9002 GB, free: 64.33 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.636e-06/0.301, allocations: 0 / 0.9002 GB, free: 64.33 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.607e-05/0.301, allocations: 11.98 kB / 0.9002 GB, free: 64.32 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.995e-06/0.3011, allocations: 4 kB / 0.9002 GB, free: 64.31 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 (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 7.316e-05/0.3011, allocations: 113.8 kB / 0.9003 GB, free: 64.19 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.847e-05/0.3012, allocations: 0 / 0.9003 GB, free: 64.19 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000261/0.3014, allocations: 97.59 kB / 0.9004 GB, free: 64.09 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.3015, allocations: 0 / 0.9004 GB, free: 64.09 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.775e-06/0.3015, allocations: 8 kB / 0.9004 GB, free: 64.08 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.276e-06/0.3015, allocations: 0 / 0.9004 GB, free: 64.08 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001419/0.3016, allocations: 169.5 kB / 0.9006 GB, free: 63.86 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.3016, allocations: 3.984 kB / 0.9006 GB, free: 63.86 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.227e-05/0.3017, allocations: 15.98 kB / 0.9006 GB, free: 63.84 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.665e-06/0.3017, allocations: 4 kB / 0.9006 GB, free: 63.84 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.135e-06/0.3017, allocations: 0 / 0.9006 GB, free: 63.84 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.3017, allocations: 0 / 0.9006 GB, free: 63.84 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.344e-06/0.3017, allocations: 3.984 kB / 0.9006 GB, free: 63.84 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002279/0.302, allocations: 187.4 kB / 0.9008 GB, free: 63.64 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.486e-05/0.302, allocations: 77.11 kB / 0.9009 GB, free: 63.54 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.602e-05/0.302, allocations: 0 / 0.9009 GB, free: 63.54 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.954e-05/0.3021, allocations: 11.98 kB / 0.9009 GB, free: 63.53 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.993e-05/0.3022, allocations: 7.984 kB / 0.9009 GB, free: 63.52 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.94e-06/0.3022, allocations: 4 kB / 0.9009 GB, free: 63.52 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 2.567e-05/0.3022, allocations: 75.28 kB / 0.901 GB, free: 63.45 MB / 0.6042 GB Notification: Performance of sort global known variables: time 9e-08/0.3022, allocations: 4 kB / 0.901 GB, free: 63.44 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0002216/0.3025, allocations: 15.94 kB / 0.901 GB, free: 63.43 MB / 0.6042 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.0001555/0.3026, allocations: 103.2 kB / 0.9011 GB, free: 63.31 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0002328/0.3029, allocations: 51.95 kB / 0.9011 GB, free: 63.26 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.3029, allocations: 7.938 kB / 0.9012 GB, free: 63.25 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 9.324e-05/0.303, allocations: 27.98 kB / 0.9012 GB, free: 63.23 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002707/0.3033, allocations: 9.062 kB / 0.9012 GB, free: 63.22 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003147/0.3036, allocations: 145.1 kB / 0.9013 GB, free: 63.05 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001345/0.3037, allocations: 0.6809 MB / 0.902 GB, free: 62.34 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.06e-05/0.3038, allocations: 11.44 kB / 0.902 GB, free: 62.33 MB / 0.6042 GB Notification: Performance of SimCode: time 6.01e-07/0.3038, allocations: 3.938 kB / 0.902 GB, free: 62.32 MB / 0.6042 GB Notification: Performance of Templates: time 0.002285/0.3061, allocations: 0.7261 MB / 0.9027 GB, free: 61.6 MB / 0.6042 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1)