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.001261/0.001266, allocations: 108 kB / 15.61 MB, free: 128 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.001298/0.001298, allocations: 191.9 kB / 16.53 MB, free: 6.668 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.336/1.336, allocations: 222.9 MB / 240.2 MB, free: 4.391 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.388/2.388, allocations: 390.2 MB / 0.6647 GB, free: 432 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001202/0.001202, allocations: 67.89 kB / 0.8125 GB, free: 14.45 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7599/0.7611, allocations: 140.3 MB / 0.9496 GB, free: 9.113 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002638/0.7638, allocations: 1.506 MB / 0.951 GB, free: 7.926 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0003553/0.7642, allocations: 127.9 kB / 0.9512 GB, free: 7.824 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.455e-05/0.7642, allocations: 1.375 kB / 0.9512 GB, free: 7.824 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 3.527e-05/0.7643, allocations: 7.922 kB / 0.9512 GB, free: 7.816 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.559e-05/0.7643, allocations: 1.375 kB / 0.9512 GB, free: 7.816 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002275/0.7646, allocations: 29.41 kB / 0.9512 GB, free: 7.793 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 6.271e-05/0.7646, allocations: 32.3 kB / 0.9512 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 9.997e-05/0.7647, allocations: 4.125 kB / 0.9512 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.201e-05/0.7648, allocations: 13.48 kB / 0.9512 GB, free: 7.766 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 4.972e-05/0.7648, allocations: 20.03 kB / 0.9513 GB, free: 7.75 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.523e-05/0.7648, allocations: 6.688 kB / 0.9513 GB, free: 7.746 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.077e-05/0.7649, allocations: 10.88 kB / 0.9513 GB, free: 7.742 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.484e-05/0.7649, allocations: 13.3 kB / 0.9513 GB, free: 7.73 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.575e-05/0.765, allocations: 10.69 kB / 0.9513 GB, free: 7.723 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001171/0.7651, allocations: 36.19 kB / 0.9513 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.7651, allocations: 1.375 kB / 0.9513 GB, free: 7.695 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.044e-06/0.7651, allocations: 3.938 kB / 0.9513 GB, free: 7.691 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.081e-06/0.7651, allocations: 0 / 0.9513 GB, free: 7.691 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.0004158/0.7655, allocations: 342.9 kB / 0.9517 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.569e-05/0.7656, allocations: 9.625 kB / 0.9517 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.616e-05/0.7656, allocations: 3.688 kB / 0.9517 GB, free: 7.324 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.933e-05/0.7657, allocations: 169.6 kB / 0.9518 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.116e-05/0.7657, allocations: 1.75 kB / 0.9519 GB, free: 7.121 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.768e-06/0.7657, allocations: 5.75 kB / 0.9519 GB, free: 7.117 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001833/0.7659, allocations: 64.69 kB / 0.9519 GB, free: 7.062 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.766e-06/0.766, allocations: 192 / 0.9519 GB, free: 7.062 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.234e-05/0.766, allocations: 5.188 kB / 0.9519 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.328e-06/0.766, allocations: 0 / 0.9519 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001822/0.7662, allocations: 41.92 kB / 0.952 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003015/0.7665, allocations: 263.2 kB / 0.9522 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003025/0.7668, allocations: 61.23 kB / 0.9523 GB, free: 6.699 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.299e-05/0.7669, allocations: 29.11 kB / 0.9523 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.423e-05/0.767, allocations: 80.52 kB / 0.9524 GB, free: 6.586 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.317e-05/0.767, allocations: 34.56 kB / 0.9524 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.767, allocations: 0 / 0.9524 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0003628/0.7674, allocations: 90.34 kB / 0.9525 GB, free: 6.484 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.185e-05/0.7674, allocations: 56.75 kB / 0.9526 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.905e-05/0.7675, allocations: 101.9 kB / 0.9526 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.237e-06/0.7675, allocations: 31.2 kB / 0.9527 GB, free: 6.277 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.188e-05/0.7675, allocations: 93.39 kB / 0.9528 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.435e-05/0.7675, allocations: 3.906 kB / 0.9528 GB, free: 6.18 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.784e-05/0.7676, allocations: 17.88 kB / 0.9528 GB, free: 6.16 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.092e-05/0.7676, allocations: 316.4 kB / 0.9531 GB, free: 5.844 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.645e-05/0.7677, allocations: 18.2 kB / 0.9531 GB, free: 5.836 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.483e-05/0.7678, allocations: 14.14 kB / 0.9531 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001681/0.768, allocations: 50.72 kB / 0.9532 GB, free: 5.801 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.768, allocations: 5.406 kB / 0.9532 GB, free: 5.797 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001983/0.7682, allocations: 75.09 kB / 0.9532 GB, free: 5.742 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.371e-05/0.7682, allocations: 13.64 kB / 0.9533 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.997e-06/0.7682, allocations: 0 / 0.9533 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.506e-05/0.7682, allocations: 0 / 0.9533 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.539e-05/0.7683, allocations: 15.42 kB / 0.9533 GB, free: 5.727 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.669e-06/0.7683, allocations: 5.406 kB / 0.9533 GB, free: 5.723 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.234e-05/0.7684, allocations: 7.562 kB / 0.9533 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.59e-06/0.7684, allocations: 1.156 kB / 0.9533 GB, free: 5.719 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 5.397e-05/0.7684, allocations: 119.6 kB / 0.9534 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.398e-05/0.7685, allocations: 1.344 kB / 0.9534 GB, free: 5.594 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002332/0.7687, allocations: 79.3 kB / 0.9535 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.7687, allocations: 0 / 0.9535 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.7687, allocations: 4 kB / 0.9535 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.806e-06/0.7687, allocations: 1.5 kB / 0.9535 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001133/0.7689, allocations: 168.2 kB / 0.9536 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.232e-06/0.7689, allocations: 0 / 0.9536 GB, free: 5.324 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.994e-05/0.7689, allocations: 14.52 kB / 0.9537 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.769, allocations: 1.188 kB / 0.9537 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.514e-06/0.769, allocations: 0 / 0.9537 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.769, allocations: 1.5 kB / 0.9537 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.769, allocations: 0 / 0.9537 GB, free: 5.316 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002705/0.7692, allocations: 175.1 kB / 0.9538 GB, free: 5.156 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.129e-05/0.7693, allocations: 85.97 kB / 0.9539 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.371e-05/0.7693, allocations: 0 / 0.9539 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.831e-05/0.7694, allocations: 3.656 kB / 0.9539 GB, free: 5.055 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.142e-05/0.7694, allocations: 11.86 kB / 0.9539 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.899e-06/0.7695, allocations: 1.797 kB / 0.9539 GB, free: 5.047 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.292e-05/0.7695, allocations: 81.92 kB / 0.954 GB, free: 4.969 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.01e-07/0.7695, allocations: 4 kB / 0.954 GB, free: 4.965 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002168/0.7697, allocations: 7.094 kB / 0.954 GB, free: 4.965 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.0001338/0.7698, allocations: 106.6 kB / 0.9541 GB, free: 4.871 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002355/0.7701, allocations: 45.61 kB / 0.9542 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.7701, allocations: 0 / 0.9542 GB, free: 4.852 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.529e-05/0.7702, allocations: 31.22 kB / 0.9542 GB, free: 4.836 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000277/0.7705, allocations: 16.16 kB / 0.9542 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002731/0.7708, allocations: 115.2 kB / 0.9543 GB, free: 4.707 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001262/0.7709, allocations: 0.6857 MB / 0.955 GB, free: 4 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.125e-05/0.7709, allocations: 5.344 kB / 0.955 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.295e-05/0.771, allocations: 14.06 kB / 0.955 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.771, allocations: 1.125 kB / 0.955 GB, free: 3.984 MB / 0.7169 GB Notification: Performance of Templates: time 0.002735/0.7737, allocations: 0.7053 MB / 0.9557 GB, free: 3.621 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