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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001096/0.001097, allocations: 92.16 kB / 16.02 MB, free: 80 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.001549/0.001549, allocations: 179.1 kB / 16.92 MB, free: 6.652 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.454/1.454, allocations: 223.3 MB / 241 MB, free: 5.297 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.447/2.447, allocations: 390.9 MB / 0.667 GB, free: 2.367 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003542/0.0003543, allocations: 12 kB / 0.8166 GB, free: 13.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.657/0.6574, allocations: 142.4 MB / 0.9557 GB, free: 7.754 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.0015/0.6589, allocations: 1.235 MB / 0.9569 GB, free: 6.773 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0003576/0.6593, allocations: 120.6 kB / 0.957 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.585e-05/0.6594, allocations: 1.156 kB / 0.957 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.441e-05/0.6594, allocations: 0 / 0.957 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.327e-05/0.6594, allocations: 1.406 kB / 0.957 GB, free: 6.68 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002132/0.6597, allocations: 20.86 kB / 0.957 GB, free: 6.664 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.088e-05/0.6597, allocations: 27.3 kB / 0.9571 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001056/0.6598, allocations: 15.75 kB / 0.9571 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.575e-05/0.6599, allocations: 4.906 kB / 0.9571 GB, free: 6.637 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.963e-05/0.66, allocations: 15.55 kB / 0.9571 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.352e-05/0.66, allocations: 1.5 kB / 0.9571 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.536e-05/0.6601, allocations: 13.84 kB / 0.9571 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.366e-05/0.6601, allocations: 9.328 kB / 0.9571 GB, free: 6.609 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.382e-05/0.6601, allocations: 35.14 kB / 0.9572 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.503e-05/0.6602, allocations: 31.44 kB / 0.9572 GB, free: 6.547 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.6602, allocations: 3.938 kB / 0.9572 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.674e-06/0.6602, allocations: 0 / 0.9572 GB, free: 6.543 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.649e-06/0.6602, allocations: 0 / 0.9572 GB, free: 6.543 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.000393/0.6606, allocations: 344.2 kB / 0.9575 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.6607, allocations: 9.094 kB / 0.9575 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.03e-05/0.6607, allocations: 1.969 kB / 0.9575 GB, free: 6.176 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.714e-05/0.6608, allocations: 173.5 kB / 0.9577 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.387e-05/0.6609, allocations: 1.844 kB / 0.9577 GB, free: 5.969 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.253e-05/0.6609, allocations: 7.25 kB / 0.9577 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001852/0.6611, allocations: 61.12 kB / 0.9578 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.682e-06/0.6611, allocations: 192 / 0.9578 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.239e-05/0.6611, allocations: 5 kB / 0.9578 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.569e-06/0.6611, allocations: 0 / 0.9578 GB, free: 5.914 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002001/0.6613, allocations: 60.45 kB / 0.9578 GB, free: 5.887 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003183/0.6616, allocations: 253.8 kB / 0.9581 GB, free: 5.602 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003133/0.662, allocations: 70.78 kB / 0.9581 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000104/0.6621, allocations: 34.39 kB / 0.9582 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 9.658e-05/0.6622, allocations: 79.86 kB / 0.9582 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.745e-05/0.6622, allocations: 34.56 kB / 0.9583 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.803e-06/0.6622, allocations: 0.9062 kB / 0.9583 GB, free: 5.395 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0003894/0.6626, allocations: 112.2 kB / 0.9584 GB, free: 5.328 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.424e-05/0.6626, allocations: 56.81 kB / 0.9584 GB, free: 5.262 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.207e-05/0.6627, allocations: 98.48 kB / 0.9585 GB, free: 5.16 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.646e-06/0.6627, allocations: 25.7 kB / 0.9586 GB, free: 5.129 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.101e-05/0.6628, allocations: 91.05 kB / 0.9586 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.445e-05/0.6628, allocations: 1.375 kB / 0.9586 GB, free: 5.039 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.235e-05/0.6628, allocations: 15.09 kB / 0.9587 GB, free: 5.02 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.947e-05/0.6629, allocations: 315.9 kB / 0.959 GB, free: 4.703 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001007/0.663, allocations: 31.5 kB / 0.959 GB, free: 4.688 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.868e-05/0.6631, allocations: 24.03 kB / 0.959 GB, free: 4.68 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001807/0.6632, allocations: 68.06 kB / 0.9591 GB, free: 4.641 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.925e-06/0.6633, allocations: 3.938 kB / 0.9591 GB, free: 4.637 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002166/0.6635, allocations: 86.91 kB / 0.9592 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.629e-05/0.6635, allocations: 7.125 kB / 0.9592 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.6635, allocations: 0 / 0.9592 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.232e-05/0.6635, allocations: 4 kB / 0.9592 GB, free: 4.578 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.045e-05/0.6636, allocations: 14.8 kB / 0.9592 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.119e-06/0.6636, allocations: 0 / 0.9592 GB, free: 4.574 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.914e-05/0.6637, allocations: 9.359 kB / 0.9592 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.354e-06/0.6637, allocations: 9.75 kB / 0.9592 GB, free: 4.562 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.641e-05/0.6638, allocations: 115.6 kB / 0.9593 GB, free: 4.441 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.394e-05/0.6638, allocations: 5.781 kB / 0.9593 GB, free: 4.438 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002582/0.6641, allocations: 91.33 kB / 0.9594 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.6641, allocations: 1.219 kB / 0.9594 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.6641, allocations: 0 / 0.9594 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.6641, allocations: 1.344 kB / 0.9594 GB, free: 4.375 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001237/0.6642, allocations: 172.2 kB / 0.9596 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.092e-06/0.6642, allocations: 0 / 0.9596 GB, free: 4.164 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.682e-05/0.6643, allocations: 17.58 kB / 0.9596 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.354e-06/0.6643, allocations: 1.375 kB / 0.9596 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.594e-06/0.6643, allocations: 0 / 0.9596 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.6643, allocations: 0 / 0.9596 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.6643, allocations: 1.375 kB / 0.9596 GB, free: 4.156 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002441/0.6646, allocations: 191.6 kB / 0.9598 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.808e-05/0.6646, allocations: 82.2 kB / 0.9599 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.278e-05/0.6646, allocations: 1.375 kB / 0.9599 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.724e-05/0.6647, allocations: 9.859 kB / 0.9599 GB, free: 3.887 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.409e-05/0.6648, allocations: 14.36 kB / 0.9599 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.22e-06/0.6648, allocations: 1.906 kB / 0.9599 GB, free: 3.875 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.251e-05/0.6648, allocations: 78.53 kB / 0.96 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.21e-07/0.6648, allocations: 0 / 0.96 GB, free: 3.801 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.000242/0.6651, allocations: 6.969 kB / 0.96 GB, free: 3.801 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.0001206/0.6652, allocations: 103.2 kB / 0.9601 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002387/0.6654, allocations: 62.83 kB / 0.9601 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.6654, allocations: 0 / 0.9601 GB, free: 3.684 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001071/0.6656, allocations: 31.08 kB / 0.9602 GB, free: 3.672 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002637/0.6658, allocations: 6.844 kB / 0.9602 GB, free: 3.668 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002757/0.6661, allocations: 148.5 kB / 0.9603 GB, free: 3.508 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.831e-05/0.6662, allocations: 0.6781 MB / 0.961 GB, free: 2.809 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.723e-05/0.6663, allocations: 10.09 kB / 0.961 GB, free: 2.801 MB / 0.7169 GB Notification: Performance of SimCode: time 3.1e-07/0.6663, allocations: 0 / 0.961 GB, free: 2.801 MB / 0.7169 GB Notification: Performance of Templates: time 0.001972/0.6682, allocations: 0.7203 MB / 0.9617 GB, free: 2.445 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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches