Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.Math.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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_10_Buildings.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001149/0.001149, allocations: 97.72 kB / 15.36 MB, free: 0.7344 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.01006/0.01006, allocations: 172.8 kB / 16.27 MB, free: 6.648 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.407/1.407, allocations: 223.3 MB / 240.3 MB, free: 5.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.644/2.644, allocations: 437.8 MB / 0.7121 GB, free: 6.957 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0004976/0.0004977, allocations: 8 kB / 0.8728 GB, free: 3.289 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7043/0.7049, allocations: 153.8 MB / 1.023 GB, free: 15.81 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001931/0.7069, allocations: 1.24 MB / 1.024 GB, free: 14.56 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0004136/0.7073, allocations: 116.5 kB / 1.024 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.152e-05/0.7074, allocations: 0 / 1.024 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.556e-05/0.7074, allocations: 0 / 1.024 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 4.522e-05/0.7074, allocations: 4 kB / 1.024 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002069/0.7077, allocations: 27.92 kB / 1.024 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 6.964e-05/0.7077, allocations: 23.98 kB / 1.024 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 9.02e-05/0.7078, allocations: 11.98 kB / 1.024 GB, free: 14.38 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 4.34e-05/0.7079, allocations: 11.92 kB / 1.024 GB, free: 14.37 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 5.573e-05/0.7079, allocations: 11.98 kB / 1.024 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.53e-05/0.708, allocations: 3.938 kB / 1.024 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.104e-05/0.708, allocations: 15.94 kB / 1.024 GB, free: 14.34 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.346e-05/0.7081, allocations: 3.984 kB / 1.024 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.897e-05/0.7081, allocations: 41.58 kB / 1.024 GB, free: 14.29 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0001118/0.7082, allocations: 35.88 kB / 1.025 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.7082, allocations: 0 / 1.025 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.455e-06/0.7082, allocations: 0 / 1.025 GB, free: 14.25 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.424e-06/0.7083, allocations: 0 / 1.025 GB, free: 14.25 MB / 0.7794 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.0005075/0.7088, allocations: 337.5 kB / 1.025 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.7088, allocations: 12.03 kB / 1.025 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.283e-05/0.7089, allocations: 4.938 kB / 1.025 GB, free: 13.86 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001129/0.709, allocations: 180.2 kB / 1.025 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.197e-05/0.709, allocations: 384 / 1.025 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.261e-05/0.709, allocations: 384 / 1.025 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001957/0.7092, allocations: 62.23 kB / 1.025 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.602e-06/0.7092, allocations: 192 / 1.025 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.205e-05/0.7093, allocations: 3.938 kB / 1.025 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.098e-06/0.7093, allocations: 4 kB / 1.025 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002057/0.7095, allocations: 55.89 kB / 1.025 GB, free: 13.51 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004143/0.7099, allocations: 261 kB / 1.025 GB, free: 13.21 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003411/0.7103, allocations: 62.48 kB / 1.025 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001073/0.7104, allocations: 32.89 kB / 1.025 GB, free: 13.1 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001239/0.7105, allocations: 81.11 kB / 1.026 GB, free: 13 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.564e-05/0.7105, allocations: 42.5 kB / 1.026 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.192e-06/0.7105, allocations: 0 / 1.026 GB, free: 12.95 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.000414/0.711, allocations: 109.6 kB / 1.026 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.511e-05/0.711, allocations: 55.41 kB / 1.026 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.512e-05/0.7111, allocations: 101.8 kB / 1.026 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.819e-05/0.7111, allocations: 29.7 kB / 1.026 GB, free: 12.63 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.059e-05/0.7112, allocations: 84.05 kB / 1.026 GB, free: 12.54 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.6e-05/0.7112, allocations: 11.84 kB / 1.026 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.671e-05/0.7112, allocations: 13.72 kB / 1.026 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001097/0.7113, allocations: 318.8 kB / 1.026 GB, free: 12.19 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001036/0.7115, allocations: 27.98 kB / 1.026 GB, free: 12.16 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.962e-05/0.7115, allocations: 23.98 kB / 1.026 GB, free: 12.14 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001868/0.7117, allocations: 56.75 kB / 1.026 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.078e-05/0.7118, allocations: 7.938 kB / 1.026 GB, free: 12.07 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002357/0.712, allocations: 81.66 kB / 1.026 GB, free: 11.99 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.712, allocations: 7.984 kB / 1.027 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.06e-06/0.712, allocations: 0 / 1.027 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.042e-05/0.7121, allocations: 4 kB / 1.027 GB, free: 11.98 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.587e-05/0.7122, allocations: 15.98 kB / 1.027 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.571e-06/0.7122, allocations: 0 / 1.027 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.01e-05/0.7122, allocations: 4 kB / 1.027 GB, free: 11.96 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.606e-06/0.7123, allocations: 4 kB / 1.027 GB, free: 11.95 MB / 0.7794 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 8.125e-05/0.7123, allocations: 122.2 kB / 1.027 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.608e-05/0.7124, allocations: 3.984 kB / 1.027 GB, free: 11.82 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002887/0.7127, allocations: 93.14 kB / 1.027 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.7127, allocations: 0 / 1.027 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.419e-06/0.7127, allocations: 0 / 1.027 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.645e-06/0.7127, allocations: 4 kB / 1.027 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001653/0.7129, allocations: 173.6 kB / 1.027 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.7129, allocations: 4 kB / 1.027 GB, free: 11.5 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.866e-05/0.713, allocations: 15.98 kB / 1.027 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.713, allocations: 0 / 1.027 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.454e-06/0.713, allocations: 0 / 1.027 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.713, allocations: 0 / 1.027 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.713, allocations: 0 / 1.027 GB, free: 11.48 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002803/0.7133, allocations: 191.9 kB / 1.027 GB, free: 11.28 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.639e-05/0.7133, allocations: 85.03 kB / 1.027 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.297e-05/0.7133, allocations: 0 / 1.027 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.104e-05/0.7134, allocations: 12 kB / 1.027 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.787e-05/0.7135, allocations: 3.984 kB / 1.027 GB, free: 11.16 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.133e-06/0.7135, allocations: 8 kB / 1.027 GB, free: 11.15 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.827e-05/0.7136, allocations: 79.31 kB / 1.027 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.234e-06/0.7136, allocations: 0 / 1.027 GB, free: 11.07 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002355/0.7138, allocations: 19.94 kB / 1.027 GB, free: 11.05 MB / 0.7794 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.000154/0.714, allocations: 103.2 kB / 1.027 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002508/0.7142, allocations: 59.89 kB / 1.027 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.7142, allocations: 0 / 1.027 GB, free: 10.89 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001055/0.7143, allocations: 31.97 kB / 1.027 GB, free: 10.86 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000286/0.7146, allocations: 7.938 kB / 1.028 GB, free: 10.85 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003044/0.7149, allocations: 117 kB / 1.028 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002245/0.7152, allocations: 0.677 MB / 1.028 GB, free: 10 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 3.287e-05/0.7152, allocations: 4 kB / 1.028 GB, free: 10 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.561e-05/0.7153, allocations: 11.44 kB / 1.028 GB, free: 9.988 MB / 0.7794 GB Notification: Performance of SimCode: time 2.4e-07/0.7153, allocations: 0 / 1.028 GB, free: 9.988 MB / 0.7794 GB Notification: Performance of Templates: time 0.002829/0.7181, allocations: 0.6136 MB / 1.029 GB, free: 9.383 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_10_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches