Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_9_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_9_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.001609/0.001609, allocations: 103.4 kB / 15.33 MB, free: 0.5039 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.001909/0.001909, allocations: 199.2 kB / 16.26 MB, free: 6.625 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.46/1.46, allocations: 222.9 MB / 239.9 MB, free: 4.52 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.54/2.54, allocations: 390.2 MB / 0.6644 GB, free: 0.5859 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001756/0.001756, allocations: 71.88 kB / 0.812 GB, free: 14.79 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9021/0.9039, allocations: 140.3 MB / 0.9491 GB, free: 9.223 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002577/0.9065, allocations: 1.568 MB / 0.9506 GB, free: 7.988 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0003821/0.9069, allocations: 124.8 kB / 0.9507 GB, free: 7.891 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.038e-05/0.9069, allocations: 0 / 0.9507 GB, free: 7.891 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.64e-05/0.907, allocations: 5.375 kB / 0.9507 GB, free: 7.887 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.915e-05/0.907, allocations: 3.938 kB / 0.9507 GB, free: 7.883 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002686/0.9073, allocations: 18.94 kB / 0.9508 GB, free: 7.871 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.989e-05/0.9074, allocations: 30.86 kB / 0.9508 GB, free: 7.852 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001257/0.9075, allocations: 9.516 kB / 0.9508 GB, free: 7.848 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.398e-05/0.9076, allocations: 11.91 kB / 0.9508 GB, free: 7.84 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.057e-05/0.9077, allocations: 20.97 kB / 0.9508 GB, free: 7.824 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.57e-05/0.9077, allocations: 6.25 kB / 0.9508 GB, free: 7.82 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.337e-05/0.9078, allocations: 18.89 kB / 0.9509 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.552e-05/0.9078, allocations: 9.094 kB / 0.9509 GB, free: 7.801 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.885e-05/0.9078, allocations: 10.5 kB / 0.9509 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001241/0.908, allocations: 32.91 kB / 0.9509 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.908, allocations: 0 / 0.9509 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.846e-06/0.908, allocations: 1.344 kB / 0.9509 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.292e-06/0.908, allocations: 0 / 0.9509 GB, free: 7.77 MB / 0.7169 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.000475/0.9085, allocations: 349.4 kB / 0.9512 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.393e-05/0.9085, allocations: 8.156 kB / 0.9513 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.974e-05/0.9086, allocations: 3.312 kB / 0.9513 GB, free: 7.395 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001029/0.9087, allocations: 173.4 kB / 0.9514 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.565e-05/0.9087, allocations: 1.688 kB / 0.9514 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.118e-05/0.9087, allocations: 1.75 kB / 0.9514 GB, free: 7.188 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002024/0.9089, allocations: 61.95 kB / 0.9515 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.014e-05/0.9089, allocations: 192 / 0.9515 GB, free: 7.137 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.3e-05/0.909, allocations: 7.938 kB / 0.9515 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.542e-06/0.909, allocations: 1.062 kB / 0.9515 GB, free: 7.129 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001899/0.9092, allocations: 42.3 kB / 0.9515 GB, free: 7.109 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004288/0.9096, allocations: 260 kB / 0.9518 GB, free: 6.82 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003468/0.91, allocations: 70.25 kB / 0.9518 GB, free: 6.766 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.425e-05/0.9101, allocations: 24.72 kB / 0.9519 GB, free: 6.75 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001214/0.9102, allocations: 79.05 kB / 0.9519 GB, free: 6.656 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.865e-05/0.9102, allocations: 40.27 kB / 0.952 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.542e-06/0.9102, allocations: 0 / 0.952 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.000393/0.9106, allocations: 98.14 kB / 0.9521 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.052e-05/0.9107, allocations: 51.41 kB / 0.9521 GB, free: 6.48 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.446e-05/0.9107, allocations: 99.19 kB / 0.9522 GB, free: 6.379 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.32e-05/0.9108, allocations: 33.64 kB / 0.9523 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.666e-05/0.9108, allocations: 85.23 kB / 0.9523 GB, free: 6.254 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 2.916e-05/0.9109, allocations: 5.062 kB / 0.9523 GB, free: 6.25 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.486e-05/0.9109, allocations: 21.36 kB / 0.9524 GB, free: 6.227 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 6.306e-05/0.911, allocations: 311.9 kB / 0.9527 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.098e-05/0.9111, allocations: 23.48 kB / 0.9527 GB, free: 5.902 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.632e-05/0.9111, allocations: 22.81 kB / 0.9527 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001629/0.9113, allocations: 42.62 kB / 0.9527 GB, free: 5.867 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.9113, allocations: 3.938 kB / 0.9527 GB, free: 5.863 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002015/0.9115, allocations: 71.72 kB / 0.9528 GB, free: 5.812 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 2.036e-05/0.9116, allocations: 11.59 kB / 0.9528 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.942e-06/0.9116, allocations: 0 / 0.9528 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.063e-05/0.9116, allocations: 0 / 0.9528 GB, free: 5.809 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.358e-05/0.9117, allocations: 24.33 kB / 0.9528 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.126e-06/0.9117, allocations: 3.938 kB / 0.9529 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.832e-05/0.9118, allocations: 8.203 kB / 0.9529 GB, free: 5.785 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.235e-06/0.9118, allocations: 1.188 kB / 0.9529 GB, free: 5.785 MB / 0.7169 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.402e-05/0.9119, allocations: 115.3 kB / 0.953 GB, free: 5.664 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.349e-05/0.9119, allocations: 5.344 kB / 0.953 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002467/0.9121, allocations: 78.52 kB / 0.9531 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.9122, allocations: 1.5 kB / 0.9531 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.9122, allocations: 0 / 0.9531 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.9122, allocations: 0 / 0.9531 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001176/0.9123, allocations: 168.6 kB / 0.9532 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.9123, allocations: 0 / 0.9532 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.366e-05/0.9124, allocations: 15.17 kB / 0.9532 GB, free: 5.387 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.435e-06/0.9124, allocations: 4.906 kB / 0.9532 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.817e-06/0.9124, allocations: 1.031 kB / 0.9532 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.433e-06/0.9124, allocations: 0 / 0.9532 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.9124, allocations: 1.125 kB / 0.9532 GB, free: 5.383 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000215/0.9126, allocations: 174.2 kB / 0.9534 GB, free: 5.223 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.784e-05/0.9127, allocations: 82.48 kB / 0.9535 GB, free: 5.125 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.438e-05/0.9127, allocations: 5.719 kB / 0.9535 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.835e-05/0.9128, allocations: 6.984 kB / 0.9535 GB, free: 5.117 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.911e-05/0.9128, allocations: 6.562 kB / 0.9535 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.639e-06/0.9128, allocations: 1.406 kB / 0.9535 GB, free: 5.113 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.196e-05/0.9128, allocations: 87.03 kB / 0.9536 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.9129, allocations: 0 / 0.9536 GB, free: 5.031 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002188/0.9131, allocations: 11.38 kB / 0.9536 GB, free: 5.027 MB / 0.7169 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.0001371/0.9132, allocations: 102.7 kB / 0.9537 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002232/0.9135, allocations: 49.14 kB / 0.9537 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.9135, allocations: 0 / 0.9537 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.535e-05/0.9136, allocations: 27.34 kB / 0.9538 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002925/0.9139, allocations: 9.125 kB / 0.9538 GB, free: 4.895 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002833/0.9142, allocations: 120.9 kB / 0.9539 GB, free: 4.77 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001146/0.9143, allocations: 0.6864 MB / 0.9546 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.283e-05/0.9143, allocations: 5.625 kB / 0.9546 GB, free: 4.059 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.768e-05/0.9144, allocations: 17.98 kB / 0.9546 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of SimCode: time 3.2e-07/0.9144, allocations: 1.312 kB / 0.9546 GB, free: 4.043 MB / 0.7169 GB Notification: Performance of Templates: time 0.003162/0.9175, allocations: 0.6342 MB / 0.9552 GB, free: 3.719 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches