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.001023/0.001023, allocations: 97.64 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.007677/0.007678, allocations: 170.1 kB / 16.27 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.448/1.448, allocations: 223.3 MB / 240.3 MB, free: 5.336 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.575/2.575, allocations: 390.9 MB / 0.6663 GB, free: 2.352 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0005389/0.000539, allocations: 12 kB / 0.816 GB, free: 13.27 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.92/0.9205, allocations: 142.4 MB / 0.955 GB, free: 7.77 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001975/0.9226, allocations: 1.23 MB / 0.9562 GB, free: 6.793 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0004566/0.923, allocations: 124.4 kB / 0.9564 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.134e-05/0.9231, allocations: 1.219 kB / 0.9564 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 2.433e-05/0.9231, allocations: 0 / 0.9564 GB, free: 6.695 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 5.524e-05/0.9232, allocations: 7.875 kB / 0.9564 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002328/0.9234, allocations: 21.34 kB / 0.9564 GB, free: 6.672 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 7.54e-05/0.9235, allocations: 31.67 kB / 0.9564 GB, free: 6.652 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001094/0.9236, allocations: 8.281 kB / 0.9564 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 5.326e-05/0.9237, allocations: 8.734 kB / 0.9564 GB, free: 6.645 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 6.598e-05/0.9238, allocations: 16.3 kB / 0.9565 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.776e-05/0.9238, allocations: 0.9688 kB / 0.9565 GB, free: 6.633 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 7.602e-05/0.9239, allocations: 13.55 kB / 0.9565 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.982e-05/0.9239, allocations: 1.312 kB / 0.9565 GB, free: 6.625 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 4.5e-05/0.9239, allocations: 43.34 kB / 0.9565 GB, free: 6.578 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001216/0.9241, allocations: 28.27 kB / 0.9565 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.791e-06/0.9241, allocations: 1.031 kB / 0.9565 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of FrontEnd: time 2.104e-06/0.9241, allocations: 0 / 0.9565 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.489e-06/0.9241, allocations: 0 / 0.9565 GB, free: 6.559 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.0005055/0.9246, allocations: 351.5 kB / 0.9569 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.921e-05/0.9247, allocations: 9.188 kB / 0.9569 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.614e-05/0.9247, allocations: 2.969 kB / 0.9569 GB, free: 6.184 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001147/0.9248, allocations: 174 kB / 0.957 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.056e-05/0.9249, allocations: 1.438 kB / 0.957 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.835e-05/0.9249, allocations: 2.594 kB / 0.9571 GB, free: 5.977 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002171/0.9251, allocations: 65.12 kB / 0.9571 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.9251, allocations: 192 / 0.9571 GB, free: 5.926 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.333e-05/0.9252, allocations: 9 kB / 0.9571 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.063e-05/0.9252, allocations: 0.9688 kB / 0.9571 GB, free: 5.918 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002252/0.9254, allocations: 51.45 kB / 0.9572 GB, free: 5.898 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004142/0.9258, allocations: 258.5 kB / 0.9574 GB, free: 5.609 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003439/0.9262, allocations: 66.88 kB / 0.9575 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000102/0.9263, allocations: 32.91 kB / 0.9575 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001075/0.9264, allocations: 84.31 kB / 0.9576 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.574e-05/0.9264, allocations: 39.59 kB / 0.9576 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.143e-06/0.9264, allocations: 0 / 0.9576 GB, free: 5.398 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0004027/0.9269, allocations: 100 kB / 0.9577 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.954e-05/0.9269, allocations: 60.42 kB / 0.9578 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.869e-05/0.927, allocations: 99.53 kB / 0.9579 GB, free: 5.172 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 9.557e-06/0.927, allocations: 25.7 kB / 0.9579 GB, free: 5.141 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.19e-05/0.927, allocations: 90.75 kB / 0.958 GB, free: 5.051 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.445e-05/0.927, allocations: 9.328 kB / 0.958 GB, free: 5.043 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.006e-05/0.9271, allocations: 11.03 kB / 0.958 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.518e-05/0.9271, allocations: 316 kB / 0.9583 GB, free: 4.711 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.282e-05/0.9272, allocations: 31.77 kB / 0.9583 GB, free: 4.695 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.763e-05/0.9273, allocations: 28.31 kB / 0.9584 GB, free: 4.684 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001815/0.9275, allocations: 64.16 kB / 0.9584 GB, free: 4.648 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.525e-06/0.9275, allocations: 3.938 kB / 0.9584 GB, free: 4.645 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002162/0.9277, allocations: 81.16 kB / 0.9585 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.776e-05/0.9278, allocations: 5.625 kB / 0.9585 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.569e-06/0.9278, allocations: 0 / 0.9585 GB, free: 4.594 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.513e-05/0.9278, allocations: 5.219 kB / 0.9585 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.262e-05/0.9279, allocations: 13.23 kB / 0.9585 GB, free: 4.586 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.572e-06/0.9279, allocations: 5.344 kB / 0.9585 GB, free: 4.582 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.856e-05/0.9279, allocations: 17.36 kB / 0.9586 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.861e-06/0.928, allocations: 1.406 kB / 0.9586 GB, free: 4.57 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 6.552e-05/0.928, allocations: 112.4 kB / 0.9587 GB, free: 4.453 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.277e-05/0.9281, allocations: 5.406 kB / 0.9587 GB, free: 4.449 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002707/0.9283, allocations: 87.61 kB / 0.9588 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.9283, allocations: 1.062 kB / 0.9588 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.9284, allocations: 0 / 0.9588 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.9284, allocations: 1.156 kB / 0.9588 GB, free: 4.391 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001344/0.9285, allocations: 171.4 kB / 0.9589 GB, free: 4.18 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.9285, allocations: 5.188 kB / 0.9589 GB, free: 4.176 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.69e-05/0.9286, allocations: 13.92 kB / 0.9589 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.743e-06/0.9286, allocations: 0 / 0.9589 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.117e-06/0.9286, allocations: 1.156 kB / 0.9589 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.776e-06/0.9286, allocations: 0 / 0.9589 GB, free: 4.172 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.9286, allocations: 3.938 kB / 0.9589 GB, free: 4.168 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002496/0.9289, allocations: 188.9 kB / 0.9591 GB, free: 4.004 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.499e-05/0.9289, allocations: 83.2 kB / 0.9592 GB, free: 3.906 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.454e-05/0.9289, allocations: 4 kB / 0.9592 GB, free: 3.902 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.135e-05/0.929, allocations: 9.641 kB / 0.9592 GB, free: 3.898 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.197e-05/0.9291, allocations: 7.812 kB / 0.9592 GB, free: 3.895 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.761e-06/0.9291, allocations: 3.984 kB / 0.9592 GB, free: 3.891 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.611e-05/0.9291, allocations: 83.03 kB / 0.9593 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.11e-07/0.9291, allocations: 0 / 0.9593 GB, free: 3.812 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002227/0.9294, allocations: 7.906 kB / 0.9593 GB, free: 3.812 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.0001497/0.9295, allocations: 97.97 kB / 0.9594 GB, free: 3.727 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002512/0.9298, allocations: 62.67 kB / 0.9595 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.9298, allocations: 1.812 kB / 0.9595 GB, free: 3.699 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001054/0.9299, allocations: 26.25 kB / 0.9595 GB, free: 3.691 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002953/0.9302, allocations: 19.03 kB / 0.9595 GB, free: 3.676 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003325/0.9305, allocations: 119 kB / 0.9596 GB, free: 3.551 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001647/0.9307, allocations: 0.6784 MB / 0.9603 GB, free: 2.852 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 3.405e-05/0.9308, allocations: 6.234 kB / 0.9603 GB, free: 2.848 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.483e-05/0.9308, allocations: 10.12 kB / 0.9603 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of SimCode: time 3.4e-07/0.9308, allocations: 0 / 0.9603 GB, free: 2.84 MB / 0.7169 GB Notification: Performance of Templates: time 0.003076/0.9339, allocations: 0.615 MB / 0.9609 GB, free: 2.52 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