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.00151/0.00151, allocations: 109.8 kB / 16.27 MB, free: 5.984 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.001665/0.001665, allocations: 193.3 kB / 17.2 MB, free: 5.609 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.425/1.425, allocations: 222.9 MB / 240.9 MB, free: 15.18 MB / 206.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.255/2.255, allocations: 390.3 MB / 0.6653 GB, free: 0.6914 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001357, allocations: 70.16 kB / 0.8132 GB, free: 33.02 MB / 0.6231 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3036/0.305, allocations: 140.4 MB / 0.9503 GB, free: 8.883 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.003299/0.3083, allocations: 1.507 MB / 0.9517 GB, free: 7.359 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0003771/0.3087, allocations: 124.4 kB / 0.9519 GB, free: 7.234 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.606e-05/0.3088, allocations: 4 kB / 0.9519 GB, free: 7.23 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 2.879e-05/0.3088, allocations: 4 kB / 0.9519 GB, free: 7.227 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 3.988e-05/0.3089, allocations: 3.938 kB / 0.9519 GB, free: 7.223 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002273/0.3091, allocations: 27.91 kB / 0.9519 GB, free: 7.195 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 6.459e-05/0.3092, allocations: 23.98 kB / 0.9519 GB, free: 7.172 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001041/0.3093, allocations: 11.98 kB / 0.9519 GB, free: 7.16 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 4.563e-05/0.3094, allocations: 12 kB / 0.9519 GB, free: 7.148 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 5.103e-05/0.3094, allocations: 19.91 kB / 0.952 GB, free: 7.129 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 1.558e-05/0.3094, allocations: 0 / 0.952 GB, free: 7.129 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 6.269e-05/0.3095, allocations: 23.92 kB / 0.952 GB, free: 7.105 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 1.517e-05/0.3095, allocations: 3.938 kB / 0.952 GB, free: 7.102 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 2.957e-05/0.3096, allocations: 15.94 kB / 0.952 GB, free: 7.086 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001407/0.3097, allocations: 31.94 kB / 0.952 GB, free: 7.055 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 8.005e-06/0.3097, allocations: 0 / 0.952 GB, free: 7.055 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.365e-06/0.3097, allocations: 3.938 kB / 0.952 GB, free: 7.051 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 6.472e-06/0.3098, allocations: 4 kB / 0.952 GB, free: 7.047 MB / 0.7325 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.0005963/0.3104, allocations: 339.7 kB / 0.9524 GB, free: 6.664 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.3104, allocations: 12.03 kB / 0.9524 GB, free: 6.652 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.52e-05/0.3105, allocations: 8.844 kB / 0.9524 GB, free: 6.645 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001569/0.3106, allocations: 168.4 kB / 0.9525 GB, free: 6.441 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.217e-05/0.3107, allocations: 384 / 0.9525 GB, free: 6.441 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.196e-05/0.3107, allocations: 384 / 0.9525 GB, free: 6.441 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002345/0.3109, allocations: 58.23 kB / 0.9526 GB, free: 6.379 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.826e-06/0.311, allocations: 192 / 0.9526 GB, free: 6.379 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.449e-05/0.311, allocations: 3.938 kB / 0.9526 GB, free: 6.375 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.311, allocations: 0 / 0.9526 GB, free: 6.375 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002989/0.3113, allocations: 47.89 kB / 0.9526 GB, free: 6.328 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004771/0.3118, allocations: 261 kB / 0.9529 GB, free: 6.023 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004456/0.3122, allocations: 66.45 kB / 0.953 GB, free: 5.949 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001446/0.3124, allocations: 28.91 kB / 0.953 GB, free: 5.918 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001563/0.3126, allocations: 85.05 kB / 0.9531 GB, free: 5.816 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.804e-05/0.3126, allocations: 42.48 kB / 0.9531 GB, free: 5.766 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=3): time 1.974e-06/0.3126, allocations: 0 / 0.9531 GB, free: 5.766 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3): time 0.0005756/0.3132, allocations: 89.55 kB / 0.9532 GB, free: 5.672 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.144e-05/0.3133, allocations: 51.41 kB / 0.9532 GB, free: 5.609 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001025/0.3134, allocations: 109.8 kB / 0.9533 GB, free: 5.492 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.908e-05/0.3134, allocations: 25.7 kB / 0.9534 GB, free: 5.461 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 6.663e-05/0.3135, allocations: 84.14 kB / 0.9535 GB, free: 5.375 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.447e-05/0.3135, allocations: 7.844 kB / 0.9535 GB, free: 5.367 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.161e-05/0.3136, allocations: 17.7 kB / 0.9535 GB, free: 5.344 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001168/0.3137, allocations: 318.8 kB / 0.9538 GB, free: 5.023 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.988e-05/0.3138, allocations: 15.98 kB / 0.9538 GB, free: 5.008 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.948e-05/0.3139, allocations: 23.97 kB / 0.9538 GB, free: 4.984 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001815/0.3141, allocations: 48.75 kB / 0.9539 GB, free: 4.934 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.3141, allocations: 3.938 kB / 0.9539 GB, free: 4.93 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002269/0.3144, allocations: 73.66 kB / 0.9539 GB, free: 4.852 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.3144, allocations: 7.938 kB / 0.9539 GB, free: 4.844 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.3144, allocations: 0 / 0.9539 GB, free: 4.844 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.809e-05/0.3144, allocations: 8 kB / 0.954 GB, free: 4.836 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.302e-05/0.3145, allocations: 7.984 kB / 0.954 GB, free: 4.828 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.476e-06/0.3145, allocations: 4 kB / 0.954 GB, free: 4.824 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.44e-05/0.3146, allocations: 7.984 kB / 0.954 GB, free: 4.816 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.232e-06/0.3146, allocations: 0 / 0.954 GB, free: 4.816 MB / 0.7325 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 8.775e-05/0.3147, allocations: 117.7 kB / 0.9541 GB, free: 4.691 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.813e-05/0.3147, allocations: 4 kB / 0.9541 GB, free: 4.688 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000264/0.315, allocations: 85.05 kB / 0.9542 GB, free: 4.598 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.194e-06/0.315, allocations: 0 / 0.9542 GB, free: 4.598 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.107e-06/0.315, allocations: 0 / 0.9542 GB, free: 4.598 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.224e-06/0.315, allocations: 0 / 0.9542 GB, free: 4.598 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001688/0.3152, allocations: 165.6 kB / 0.9543 GB, free: 4.387 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.3152, allocations: 0.5625 kB / 0.9543 GB, free: 4.387 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.549e-05/0.3153, allocations: 11.98 kB / 0.9543 GB, free: 4.375 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.3153, allocations: 0 / 0.9543 GB, free: 4.375 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.114e-05/0.3153, allocations: 4 kB / 0.9543 GB, free: 4.371 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.3153, allocations: 0 / 0.9543 GB, free: 4.371 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.3153, allocations: 11.98 kB / 0.9544 GB, free: 4.359 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002694/0.3156, allocations: 175.4 kB / 0.9545 GB, free: 4.172 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 3.642e-05/0.3157, allocations: 81.11 kB / 0.9546 GB, free: 4.074 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.44e-05/0.3157, allocations: 0 / 0.9546 GB, free: 4.074 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.524e-05/0.3158, allocations: 7.984 kB / 0.9546 GB, free: 4.066 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.873e-05/0.3158, allocations: 8 kB / 0.9546 GB, free: 4.059 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.33e-06/0.3158, allocations: 8 kB / 0.9546 GB, free: 4.051 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 4.766e-05/0.3159, allocations: 87.2 kB / 0.9547 GB, free: 3.965 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1e-07/0.3159, allocations: 0 / 0.9547 GB, free: 3.965 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.0002254/0.3161, allocations: 4 kB / 0.9547 GB, free: 3.961 MB / 0.7325 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.0001479/0.3163, allocations: 103.2 kB / 0.9548 GB, free: 3.852 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.000247/0.3165, allocations: 47.89 kB / 0.9549 GB, free: 3.805 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.654e-06/0.3166, allocations: 4 kB / 0.9549 GB, free: 3.801 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 9.534e-05/0.3167, allocations: 23.97 kB / 0.9549 GB, free: 3.777 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002849/0.3169, allocations: 11.88 kB / 0.9549 GB, free: 3.766 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003101/0.3173, allocations: 143.2 kB / 0.955 GB, free: 3.594 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002249/0.3175, allocations: 0.6844 MB / 0.9557 GB, free: 2.883 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.622e-05/0.3175, allocations: 11.44 kB / 0.9557 GB, free: 2.871 MB / 0.7325 GB Notification: Performance of SimCode: time 2.31e-07/0.3175, allocations: 0 / 0.9557 GB, free: 2.871 MB / 0.7325 GB Notification: Performance of Templates: time 0.002093/0.3196, allocations: 0.7404 MB / 0.9564 GB, free: 2.133 MB / 0.7325 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