Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_13_Buildings.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001825/0.001825, allocations: 80.55 kB / 19.96 MB, free: 4.598 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001967/0.001967, allocations: 173.2 kB / 23.24 MB, free: 1.324 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.587/1.587, allocations: 177.1 MB / 203.5 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo): time 3.244/3.244, allocations: 389.5 MB / 0.6343 GB, free: 12.6 MB / 0.6042 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 13.0.2-maint.13.x/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Buildings_13_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Buildings_13_Buildings.Utilities.Math.Examples.Factorial") [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 1.213e-06/1.213e-06, allocations: 0 / 1.001 GB, free: 13 MB / 0.9636 GB Notification: Performance of FrontEnd - Absyn->SCode: time 2.195e-05/2.316e-05, allocations: 6.281 kB / 1.001 GB, free: 12.99 MB / 0.9636 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002993/0.003017, allocations: 1.543 MB / 1.003 GB, free: 11.44 MB / 0.9636 GB Notification: Performance of NFInst.instExpressions: time 0.0003691/0.003386, allocations: 119.5 kB / 1.003 GB, free: 11.32 MB / 0.9636 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.863e-05/0.003424, allocations: 0 / 1.003 GB, free: 11.32 MB / 0.9636 GB Notification: Performance of NFTyping.typeComponents: time 2.894e-05/0.003453, allocations: 7.938 kB / 1.003 GB, free: 11.32 MB / 0.9636 GB Notification: Performance of NFTyping.typeBindings: time 3.348e-05/0.003487, allocations: 4 kB / 1.003 GB, free: 11.31 MB / 0.9636 GB Notification: Performance of NFTyping.typeClassSections: time 0.000245/0.003732, allocations: 35.77 kB / 1.003 GB, free: 11.28 MB / 0.9636 GB Notification: Performance of NFFlatten.flatten: time 7.882e-05/0.003811, allocations: 31.86 kB / 1.003 GB, free: 11.25 MB / 0.9636 GB Notification: Performance of NFFlatten.resolveConnections: time 8.982e-05/0.0039, allocations: 4 kB / 1.003 GB, free: 11.24 MB / 0.9636 GB Notification: Performance of NFEvalConstants.evaluate: time 6.578e-05/0.003966, allocations: 19.98 kB / 1.003 GB, free: 11.22 MB / 0.9636 GB Notification: Performance of NFSimplifyModel.simplify: time 5.22e-05/0.004018, allocations: 15.97 kB / 1.003 GB, free: 11.21 MB / 0.9636 GB Notification: Performance of NFPackage.collectConstants: time 1.884e-05/0.004037, allocations: 4 kB / 1.003 GB, free: 11.2 MB / 0.9636 GB Notification: Performance of NFFlatten.collectFunctions: time 6.709e-05/0.004104, allocations: 7.984 kB / 1.003 GB, free: 11.2 MB / 0.9636 GB Notification: Performance of NFScalarize.scalarize: time 1.735e-05/0.004122, allocations: 8 kB / 1.003 GB, free: 11.19 MB / 0.9636 GB Notification: Performance of NFVerifyModel.verify: time 2.186e-05/0.004144, allocations: 11.94 kB / 1.003 GB, free: 11.18 MB / 0.9636 GB Notification: Performance of NFConvertDAE.convert: time 0.0001263/0.00427, allocations: 39.94 kB / 1.003 GB, free: 11.14 MB / 0.9636 GB Notification: Performance of FrontEnd - DAE generated: time 2.084e-06/0.004272, allocations: 0 / 1.003 GB, free: 11.14 MB / 0.9636 GB Notification: Performance of FrontEnd: time 6.01e-07/0.004272, allocations: 0 / 1.003 GB, free: 11.14 MB / 0.9636 GB Notification: Performance of Transformations before backend: time 3.517e-06/0.004276, allocations: 0 / 1.003 GB, free: 11.14 MB / 0.9636 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.0004766/0.004753, allocations: 270.3 kB / 1.003 GB, free: 10.84 MB / 0.9636 GB Notification: Performance of prepare preOptimizeDAE: time 4.025e-05/0.004793, allocations: 9.344 kB / 1.003 GB, free: 10.83 MB / 0.9636 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.037e-05/0.004823, allocations: 4.938 kB / 1.003 GB, free: 10.83 MB / 0.9636 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001085/0.004932, allocations: 101.8 kB / 1.003 GB, free: 10.7 MB / 0.9636 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.127e-05/0.004953, allocations: 4.375 kB / 1.003 GB, free: 10.7 MB / 0.9636 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.458e-06/0.004962, allocations: 8.312 kB / 1.003 GB, free: 10.69 MB / 0.9636 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002026/0.005165, allocations: 62.17 kB / 1.003 GB, free: 10.62 MB / 0.9636 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.409e-05/0.005179, allocations: 4.172 kB / 1.003 GB, free: 10.62 MB / 0.9636 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.686e-06/0.005188, allocations: 384 / 1.003 GB, free: 10.62 MB / 0.9636 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.699e-06/0.005193, allocations: 384 / 1.003 GB, free: 10.62 MB / 0.9636 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002002/0.005393, allocations: 47.89 kB / 1.003 GB, free: 10.57 MB / 0.9636 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003847/0.005777, allocations: 204.5 kB / 1.004 GB, free: 10.34 MB / 0.9636 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003624/0.00614, allocations: 66.53 kB / 1.004 GB, free: 10.27 MB / 0.9636 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001081/0.006248, allocations: 28.89 kB / 1.004 GB, free: 10.24 MB / 0.9636 GB Notification: Performance of preOpt evalFunc (simulation): time 8.131e-05/0.006329, allocations: 4 kB / 1.004 GB, free: 10.23 MB / 0.9636 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.721e-05/0.006356, allocations: 34.56 kB / 1.004 GB, free: 10.19 MB / 0.9636 GB Notification: Performance of pre-optimization done (n=3): time 8.21e-07/0.006357, allocations: 0 / 1.004 GB, free: 10.19 MB / 0.9636 GB Notification: Performance of matching and sorting (n=3): time 0.0004067/0.006764, allocations: 97.56 kB / 1.004 GB, free: 10.09 MB / 0.9636 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.684e-05/0.006811, allocations: 51.41 kB / 1.004 GB, free: 10.03 MB / 0.9636 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001049/0.006916, allocations: 109.8 kB / 1.004 GB, free: 9.91 MB / 0.9636 GB Notification: Performance of collectPreVariables (initialization): time 2.051e-05/0.006936, allocations: 29.7 kB / 1.004 GB, free: 9.875 MB / 0.9636 GB Notification: Performance of collectInitialEqns (initialization): time 5.815e-05/0.006994, allocations: 84.09 kB / 1.004 GB, free: 9.789 MB / 0.9636 GB Notification: Performance of collectInitialBindings (initialization): time 1.946e-05/0.007014, allocations: 7.938 kB / 1.004 GB, free: 9.781 MB / 0.9636 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.66e-05/0.00707, allocations: 17.72 kB / 1.004 GB, free: 9.758 MB / 0.9636 GB Notification: Performance of setup shared object (initialization): time 0.0001677/0.007238, allocations: 318.8 kB / 1.004 GB, free: 9.438 MB / 0.9636 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.882e-05/0.007337, allocations: 15.98 kB / 1.004 GB, free: 9.422 MB / 0.9636 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001009/0.007438, allocations: 23.97 kB / 1.004 GB, free: 9.398 MB / 0.9636 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001821/0.00762, allocations: 44.83 kB / 1.004 GB, free: 9.352 MB / 0.9636 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-06/0.007621, allocations: 0 / 1.004 GB, free: 9.352 MB / 0.9636 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002347/0.007856, allocations: 77.58 kB / 1.005 GB, free: 9.27 MB / 0.9636 GB Notification: Performance of prepare postOptimizeDAE: time 1.565e-05/0.007872, allocations: 7.938 kB / 1.005 GB, free: 9.262 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.504e-06/0.007879, allocations: 7.938 kB / 1.005 GB, free: 9.254 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.125e-05/0.007891, allocations: 0 / 1.005 GB, free: 9.254 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.433e-05/0.007975, allocations: 11.98 kB / 1.005 GB, free: 9.242 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/0.007982, allocations: 7.984 kB / 1.005 GB, free: 9.234 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.796e-05/0.00804, allocations: 4 kB / 1.005 GB, free: 9.23 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.078e-05/0.00805, allocations: 7.984 kB / 1.005 GB, free: 9.223 MB / 0.9636 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 9.478e-05/0.008145, allocations: 112.5 kB / 1.005 GB, free: 9.105 MB / 0.9636 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.251e-05/0.008168, allocations: 0 / 1.005 GB, free: 9.105 MB / 0.9636 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003057/0.008473, allocations: 85.2 kB / 1.005 GB, free: 9.008 MB / 0.9636 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.304e-06/0.008476, allocations: 0 / 1.005 GB, free: 9.008 MB / 0.9636 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.008479, allocations: 4 kB / 1.005 GB, free: 9.004 MB / 0.9636 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.504e-06/0.008482, allocations: 4.562 kB / 1.005 GB, free: 9 MB / 0.9636 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001629/0.008644, allocations: 109.3 kB / 1.005 GB, free: 8.863 MB / 0.9636 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.008646, allocations: 0 / 1.005 GB, free: 8.863 MB / 0.9636 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.875e-05/0.008734, allocations: 19.92 kB / 1.005 GB, free: 8.844 MB / 0.9636 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.008737, allocations: 0 / 1.005 GB, free: 8.844 MB / 0.9636 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.274e-06/0.008744, allocations: 0 / 1.005 GB, free: 8.844 MB / 0.9636 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.562e-06/0.008751, allocations: 7.938 kB / 1.005 GB, free: 8.836 MB / 0.9636 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.008751, allocations: 0 / 1.005 GB, free: 8.836 MB / 0.9636 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002983/0.00905, allocations: 175.4 kB / 1.005 GB, free: 8.648 MB / 0.9636 GB Notification: Performance of postOpt removeConstants (simulation): time 5.671e-06/0.009055, allocations: 4 kB / 1.005 GB, free: 8.645 MB / 0.9636 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.091e-05/0.009066, allocations: 0 / 1.005 GB, free: 8.645 MB / 0.9636 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.737e-05/0.009154, allocations: 7.938 kB / 1.005 GB, free: 8.637 MB / 0.9636 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.178e-05/0.009205, allocations: 11.98 kB / 1.005 GB, free: 8.625 MB / 0.9636 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.777e-06/0.009209, allocations: 0 / 1.005 GB, free: 8.625 MB / 0.9636 GB Notification: Performance of sorting global known variables: time 5.355e-05/0.009263, allocations: 83.27 kB / 1.005 GB, free: 8.543 MB / 0.9636 GB Notification: Performance of sort global known variables: time 6e-08/0.009263, allocations: 0 / 1.005 GB, free: 8.543 MB / 0.9636 GB Notification: Performance of remove unused functions: time 0.0002217/0.009484, allocations: 8 kB / 1.005 GB, free: 8.535 MB / 0.9636 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.0001575/0.009642, allocations: 99.19 kB / 1.005 GB, free: 8.43 MB / 0.9636 GB Notification: Performance of simCode: created initialization part: time 0.0002446/0.009887, allocations: 55.89 kB / 1.005 GB, free: 8.375 MB / 0.9636 GB Notification: Performance of simCode: created event and clocks part: time 1.313e-06/0.009888, allocations: 0 / 1.005 GB, free: 8.375 MB / 0.9636 GB Notification: Performance of simCode: created simulation system equations: time 0.0001033/0.009991, allocations: 23.97 kB / 1.005 GB, free: 8.352 MB / 0.9636 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002261/0.01022, allocations: 4 kB / 1.005 GB, free: 8.348 MB / 0.9636 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003029/0.01052, allocations: 105 kB / 1.005 GB, free: 8.219 MB / 0.9636 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.541e-05/0.0106, allocations: 71.28 kB / 1.006 GB, free: 8.129 MB / 0.9636 GB Notification: Performance of simCode: alias equations: time 4.076e-05/0.01064, allocations: 8 kB / 1.006 GB, free: 8.121 MB / 0.9636 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.609e-05/0.01066, allocations: 8.5 kB / 1.006 GB, free: 8.113 MB / 0.9636 GB Notification: Performance of SimCode: time 5.21e-07/0.01066, allocations: 0 / 1.006 GB, free: 8.113 MB / 0.9636 GB Notification: Performance of Templates: time 0.003665/0.01433, allocations: 0.744 MB / 1.006 GB, free: 7.379 MB / 0.9636 GB " [Timeout remaining time 300] make -j1 -f Buildings_13_Buildings.Utilities.Math.Examples.Factorial.makefile [Timeout 300] (rm -f Buildings_13_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_13_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_13_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_13_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_13_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=240 -lv LOG_STATS > Buildings_13_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 8.76336661633104]