Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial") translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.449/2.449, allocations: 390.3 MB / 405.3 MB, free: 13.44 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001481/0.001481, allocations: 186 kB / 498.1 MB, free: 5.676 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.837/1.837, allocations: 223.2 MB / 0.7949 GB, free: 17.94 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001029/0.00103, allocations: 99.95 kB / 0.9346 GB, free: 6.254 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003654/0.0003655, allocations: 10.97 kB / 1.084 GB, free: 221 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3406/0.341, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2115/0.5525, allocations: 148.5 MB / 1.368 GB, free: 13.54 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003606/0.5529, allocations: 79.94 kB / 1.368 GB, free: 13.46 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.001245/0.5542, allocations: 0.5084 MB / 1.369 GB, free: 12.95 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.796e-06/0.5542, allocations: 4 kB / 1.369 GB, free: 12.94 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 5.74e-06/0.5543, allocations: 0 / 1.369 GB, free: 12.94 MB / 0.8698 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.0002858/0.5546, allocations: 326.2 kB / 1.369 GB, free: 12.58 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.777e-05/0.5546, allocations: 8.031 kB / 1.369 GB, free: 12.57 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.372e-05/0.5547, allocations: 3.938 kB / 1.369 GB, free: 12.57 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001239/0.5548, allocations: 169.8 kB / 1.369 GB, free: 12.36 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.704e-05/0.5548, allocations: 0 / 1.369 GB, free: 12.36 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.637e-05/0.5548, allocations: 4 kB / 1.369 GB, free: 12.36 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001261/0.555, allocations: 25.7 kB / 1.369 GB, free: 12.33 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.555, allocations: 4 kB / 1.369 GB, free: 12.32 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.197e-05/0.555, allocations: 3.984 kB / 1.369 GB, free: 12.32 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-06/0.555, allocations: 4 kB / 1.369 GB, free: 12.32 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.005e-05/0.5551, allocations: 7.938 kB / 1.369 GB, free: 12.31 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002032/0.5553, allocations: 153.6 kB / 1.369 GB, free: 12.11 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 6.026e-05/0.5553, allocations: 30.58 kB / 1.369 GB, free: 12.07 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001712/0.5555, allocations: 81.17 kB / 1.369 GB, free: 11.97 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.195e-05/0.5556, allocations: 30.56 kB / 1.369 GB, free: 11.93 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=2): time 1.523e-06/0.5556, allocations: 0 / 1.369 GB, free: 11.93 MB / 0.8698 GB Notification: Performance of matching and sorting (n=2): time 0.0001947/0.5558, allocations: 45.62 kB / 1.369 GB, free: 11.88 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.158e-05/0.5558, allocations: 51.53 kB / 1.369 GB, free: 11.82 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.808e-05/0.5559, allocations: 93 kB / 1.37 GB, free: 11.72 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.002e-05/0.5559, allocations: 25.7 kB / 1.37 GB, free: 11.69 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 3.846e-05/0.556, allocations: 80.14 kB / 1.37 GB, free: 11.61 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.616e-05/0.556, allocations: 3.906 kB / 1.37 GB, free: 11.61 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.696e-06/0.556, allocations: 0 / 1.37 GB, free: 11.61 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001479/0.5562, allocations: 310.8 kB / 1.37 GB, free: 11.29 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.661e-05/0.5562, allocations: 8 kB / 1.37 GB, free: 11.29 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.277e-06/0.5562, allocations: 0 / 1.37 GB, free: 11.29 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.131e-05/0.5562, allocations: 15.98 kB / 1.37 GB, free: 11.27 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.328e-06/0.5562, allocations: 3.953 kB / 1.37 GB, free: 11.27 MB / 0.8698 GB Notification: Performance of matching and sorting (n=2) (initialization): time 7.72e-05/0.5563, allocations: 37.64 kB / 1.37 GB, free: 11.22 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 2.243e-05/0.5564, allocations: 4 kB / 1.37 GB, free: 11.22 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.833e-06/0.5564, allocations: 0 / 1.37 GB, free: 11.22 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.006e-05/0.5564, allocations: 0 / 1.37 GB, free: 11.22 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.227e-05/0.5565, allocations: 8 kB / 1.37 GB, free: 11.21 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.003e-05/0.5565, allocations: 3.984 kB / 1.37 GB, free: 11.21 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.687e-05/0.5565, allocations: 0 / 1.37 GB, free: 11.21 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.636e-06/0.5565, allocations: 4 kB / 1.37 GB, free: 11.2 MB / 0.8698 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,n) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.437e-05/0.5566, allocations: 109.9 kB / 1.37 GB, free: 11.09 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.173e-05/0.5566, allocations: 3.953 kB / 1.37 GB, free: 11.08 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001148/0.5568, allocations: 44.81 kB / 1.37 GB, free: 11.03 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.5568, allocations: 0 / 1.37 GB, free: 11.03 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.5568, allocations: 0 / 1.37 GB, free: 11.03 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.5568, allocations: 0 / 1.37 GB, free: 11.03 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001597/0.557, allocations: 145.7 kB / 1.37 GB, free: 10.84 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.352e-06/0.557, allocations: 3.938 kB / 1.37 GB, free: 10.84 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.315e-05/0.557, allocations: 19.91 kB / 1.37 GB, free: 10.82 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.726e-06/0.557, allocations: 0 / 1.37 GB, free: 10.82 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.865e-06/0.557, allocations: 0 / 1.37 GB, free: 10.82 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.557, allocations: 0 / 1.37 GB, free: 10.82 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.5571, allocations: 0 / 1.37 GB, free: 10.82 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001048/0.5572, allocations: 61.12 kB / 1.37 GB, free: 10.74 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 5.333e-05/0.5572, allocations: 81.11 kB / 1.37 GB, free: 10.64 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.727e-05/0.5573, allocations: 7.953 kB / 1.37 GB, free: 10.63 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.211e-05/0.5573, allocations: 4.031 kB / 1.37 GB, free: 10.63 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.267e-05/0.5573, allocations: 0 / 1.37 GB, free: 10.63 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.049e-06/0.5573, allocations: 4 kB / 1.37 GB, free: 10.62 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 4.018e-05/0.5574, allocations: 75.28 kB / 1.371 GB, free: 10.55 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1.2e-07/0.5574, allocations: 7.938 kB / 1.371 GB, free: 10.54 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002312/0.5576, allocations: 4 kB / 1.371 GB, free: 10.54 MB / 0.8698 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 (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.0002425/0.5579, allocations: 115 kB / 1.371 GB, free: 10.42 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 9.295e-05/0.558, allocations: 16 kB / 1.371 GB, free: 10.4 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 2.584e-06/0.558, allocations: 0 / 1.371 GB, free: 10.4 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 1.729e-05/0.558, allocations: 4 kB / 1.371 GB, free: 10.4 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001165/0.5581, allocations: 3.984 kB / 1.371 GB, free: 10.39 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002299/0.5584, allocations: 77.97 kB / 1.371 GB, free: 10.29 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002792/0.5587, allocations: 0.677 MB / 1.371 GB, free: 9.59 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 1.649e-05/0.5587, allocations: 0 / 1.371 GB, free: 9.59 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.93e-05/0.5587, allocations: 15.44 kB / 1.371 GB, free: 9.574 MB / 0.8698 GB Notification: Performance of SimCode: time 2.7e-07/0.5587, allocations: 128 / 1.371 GB, free: 9.574 MB / 0.8698 GB Notification: Performance of Templates: time 0.00256/0.5613, allocations: 303.8 kB / 1.372 GB, free: 9.277 MB / 0.8698 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches