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.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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.001134/0.001134, allocations: 96.14 kB / 16.03 MB, free: 68 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001865/0.001864, allocations: 185.5 kB / 16.92 MB, free: 6.691 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.437/1.437, allocations: 223.3 MB / 241 MB, free: 5.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.598/2.598, allocations: 437.8 MB / 0.7128 GB, free: 6.949 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0005516/0.0005517, allocations: 12 kB / 0.8735 GB, free: 3.297 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7083/0.7089, allocations: 153.8 MB / 1.024 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001893/0.7109, allocations: 1.24 MB / 1.025 GB, free: 14.62 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0004237/0.7113, allocations: 120.5 kB / 1.025 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.044e-05/0.7114, allocations: 0 / 1.025 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.845e-05/0.7114, allocations: 0 / 1.025 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 5.692e-05/0.7115, allocations: 3.938 kB / 1.025 GB, free: 14.5 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002067/0.7117, allocations: 23.98 kB / 1.025 GB, free: 14.47 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 6.575e-05/0.7117, allocations: 27.92 kB / 1.025 GB, free: 14.45 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 9.207e-05/0.7118, allocations: 7.984 kB / 1.025 GB, free: 14.44 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 4.966e-05/0.7119, allocations: 19.92 kB / 1.025 GB, free: 14.42 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 4.986e-05/0.712, allocations: 7.984 kB / 1.025 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.241e-05/0.712, allocations: 0 / 1.025 GB, free: 14.41 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 5.899e-05/0.712, allocations: 8 kB / 1.025 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 1.494e-05/0.7121, allocations: 7.938 kB / 1.025 GB, free: 14.39 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 4.09e-05/0.7121, allocations: 37.62 kB / 1.025 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 9.653e-05/0.7122, allocations: 23.95 kB / 1.025 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.7122, allocations: 0 / 1.025 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.522e-06/0.7122, allocations: 0 / 1.025 GB, free: 14.33 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 4.358e-06/0.7122, allocations: 0 / 1.025 GB, free: 14.33 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.0004688/0.7127, allocations: 345.5 kB / 1.026 GB, free: 13.94 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.881e-05/0.7128, allocations: 8.031 kB / 1.026 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.501e-05/0.7128, allocations: 4.922 kB / 1.026 GB, free: 13.93 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001209/0.7129, allocations: 176.2 kB / 1.026 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.464e-05/0.713, allocations: 384 / 1.026 GB, free: 13.72 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.427e-05/0.713, allocations: 8.312 kB / 1.026 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002013/0.7132, allocations: 62.23 kB / 1.026 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.254e-06/0.7132, allocations: 192 / 1.026 GB, free: 13.64 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.257e-05/0.7132, allocations: 11.94 kB / 1.026 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.408e-06/0.7132, allocations: 0 / 1.026 GB, free: 13.63 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002081/0.7134, allocations: 47.95 kB / 1.026 GB, free: 13.59 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003921/0.7138, allocations: 265 kB / 1.026 GB, free: 13.28 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003576/0.7142, allocations: 70.34 kB / 1.026 GB, free: 13.2 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001117/0.7143, allocations: 32.91 kB / 1.026 GB, free: 13.16 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001336/0.7145, allocations: 85.09 kB / 1.026 GB, free: 13.06 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.262e-05/0.7145, allocations: 34.56 kB / 1.026 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.7145, allocations: 0 / 1.026 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3): time 0.0004266/0.715, allocations: 109.6 kB / 1.026 GB, free: 12.91 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.851e-05/0.715, allocations: 55.34 kB / 1.026 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.29e-05/0.7151, allocations: 105.8 kB / 1.027 GB, free: 12.73 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.453e-05/0.7151, allocations: 25.7 kB / 1.027 GB, free: 12.7 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.963e-05/0.7152, allocations: 84.05 kB / 1.027 GB, free: 12.61 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.647e-05/0.7152, allocations: 11.91 kB / 1.027 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.896e-05/0.7152, allocations: 17.7 kB / 1.027 GB, free: 12.57 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001246/0.7154, allocations: 314.8 kB / 1.027 GB, free: 12.26 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001001/0.7155, allocations: 23.98 kB / 1.027 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001015/0.7156, allocations: 31.97 kB / 1.027 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001875/0.7158, allocations: 49.3 kB / 1.027 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.376e-06/0.7158, allocations: 3.938 kB / 1.027 GB, free: 12.15 MB / 0.7794 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002403/0.716, allocations: 97.56 kB / 1.027 GB, free: 12.05 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.738e-05/0.716, allocations: 4 kB / 1.027 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.7161, allocations: 0 / 1.027 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/0.7161, allocations: 0 / 1.027 GB, free: 12.04 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.613e-05/0.7162, allocations: 15.98 kB / 1.027 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.45e-06/0.7162, allocations: 0 / 1.027 GB, free: 12.03 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.182e-05/0.7162, allocations: 11.98 kB / 1.027 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.336e-06/0.7163, allocations: 4 kB / 1.027 GB, free: 12.01 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 9.339e-05/0.7164, allocations: 115.8 kB / 1.027 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.7e-05/0.7164, allocations: 4 kB / 1.027 GB, free: 11.89 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002852/0.7167, allocations: 89.14 kB / 1.027 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.7167, allocations: 7.938 kB / 1.027 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.7167, allocations: 0 / 1.027 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.7167, allocations: 0 / 1.027 GB, free: 11.79 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001726/0.7169, allocations: 169.6 kB / 1.028 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.7169, allocations: 0 / 1.028 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.799e-05/0.717, allocations: 15.98 kB / 1.028 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.106e-06/0.717, allocations: 0 / 1.028 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.105e-06/0.717, allocations: 4 kB / 1.028 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.717, allocations: 0 / 1.028 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.717, allocations: 0 / 1.028 GB, free: 11.55 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000287/0.7173, allocations: 187.3 kB / 1.028 GB, free: 11.35 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.616e-05/0.7174, allocations: 85.05 kB / 1.028 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.317e-05/0.7174, allocations: 3.938 kB / 1.028 GB, free: 11.25 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.347e-05/0.7175, allocations: 15.98 kB / 1.028 GB, free: 11.23 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.937e-05/0.7175, allocations: 7.938 kB / 1.028 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.007e-06/0.7176, allocations: 4 kB / 1.028 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 4.008e-05/0.7176, allocations: 87.2 kB / 1.028 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.1e-07/0.7176, allocations: 0 / 1.028 GB, free: 11.13 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0002296/0.7178, allocations: 8 kB / 1.028 GB, free: 11.12 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.0001575/0.718, allocations: 107.2 kB / 1.028 GB, free: 11.01 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002568/0.7183, allocations: 51.95 kB / 1.028 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.7183, allocations: 0 / 1.028 GB, free: 10.96 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001098/0.7184, allocations: 35.97 kB / 1.028 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002772/0.7187, allocations: 7.938 kB / 1.028 GB, free: 10.92 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003285/0.719, allocations: 143.1 kB / 1.028 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002567/0.7193, allocations: 0.677 MB / 1.029 GB, free: 10.04 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.874e-05/0.7193, allocations: 15.44 kB / 1.029 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of SimCode: time 2.3e-07/0.7193, allocations: 0 / 1.029 GB, free: 10.03 MB / 0.7794 GB Notification: Performance of Templates: time 0.002427/0.7218, allocations: 0.7203 MB / 1.03 GB, free: 9.309 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches