Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial") translateModel(Buildings.Utilities.Math.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001171/0.001172, allocations: 110.7 kB / 16.42 MB, free: 6.516 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.001351/0.001351, allocations: 189.5 kB / 17.35 MB, free: 5.738 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.389/1.389, allocations: 222.9 MB / 241 MB, free: 15.14 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.325/2.325, allocations: 390.3 MB / 0.6655 GB, free: 0.6914 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.002079/0.002079, allocations: 67.89 kB / 0.9516 GB, free: 7.641 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9149/0.917, allocations: 140.4 MB / 1.089 GB, free: 5.535 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001784/0.9189, allocations: 0.5769 MB / 1.089 GB, free: 5.18 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.0003368/0.9192, allocations: 55.62 kB / 1.089 GB, free: 5.148 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.94e-05/0.9192, allocations: 0 / 1.089 GB, free: 5.148 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 1.5e-05/0.9193, allocations: 0.8125 kB / 1.089 GB, free: 5.148 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 6.953e-06/0.9193, allocations: 0 / 1.089 GB, free: 5.148 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002407/0.9195, allocations: 13.81 kB / 1.089 GB, free: 5.141 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 4.726e-05/0.9196, allocations: 3.047 kB / 1.089 GB, free: 5.141 MB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 6.137e-05/0.9197, allocations: 2.547 kB / 1.089 GB, free: 5.141 MB / 0.8575 GB Notification: Performance of NFEvalConstants.evaluate: time 1.694e-05/0.9197, allocations: 5.344 kB / 1.089 GB, free: 5.137 MB / 0.8575 GB Notification: Performance of NFSimplifyModel.simplify: time 2.547e-05/0.9197, allocations: 1.766 kB / 1.089 GB, free: 5.137 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 1.118e-05/0.9197, allocations: 0 / 1.089 GB, free: 5.137 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 8.412e-05/0.9198, allocations: 10.17 kB / 1.089 GB, free: 5.133 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 1.339e-05/0.9198, allocations: 8.484 kB / 1.089 GB, free: 5.125 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 1.852e-05/0.9199, allocations: 1.062 kB / 1.089 GB, free: 5.125 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 8.926e-05/0.92, allocations: 15.36 kB / 1.089 GB, free: 5.117 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 5.451e-06/0.92, allocations: 0.6094 kB / 1.089 GB, free: 5.117 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.963e-06/0.92, allocations: 0 / 1.089 GB, free: 5.117 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 5.37e-06/0.92, allocations: 0 / 1.089 GB, free: 5.117 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002688/0.9203, allocations: 315.1 kB / 1.09 GB, free: 4.766 MB / 0.8575 GB Notification: Performance of prepare preOptimizeDAE: time 4.238e-05/0.9203, allocations: 13.09 kB / 1.09 GB, free: 4.762 MB / 0.8575 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.115e-05/0.9203, allocations: 0.9375 kB / 1.09 GB, free: 4.762 MB / 0.8575 GB Notification: Performance of preOpt evaluateParameters (simulation): time 5.853e-05/0.9204, allocations: 166.7 kB / 1.09 GB, free: 4.562 MB / 0.8575 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.216e-05/0.9204, allocations: 4.312 kB / 1.09 GB, free: 4.559 MB / 0.8575 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.191e-05/0.9204, allocations: 1.5 kB / 1.09 GB, free: 4.559 MB / 0.8575 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.351e-05/0.9205, allocations: 32.34 kB / 1.09 GB, free: 4.527 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.514e-06/0.9205, allocations: 192 / 1.09 GB, free: 4.527 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.797e-06/0.9206, allocations: 4.641 kB / 1.09 GB, free: 4.523 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.869e-06/0.9206, allocations: 7.984 kB / 1.09 GB, free: 4.516 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.156e-05/0.9206, allocations: 4.078 kB / 1.09 GB, free: 4.516 MB / 0.8575 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001066/0.9207, allocations: 153.9 kB / 1.09 GB, free: 4.32 MB / 0.8575 GB Notification: Performance of preOpt comSubExp (simulation): time 4.514e-05/0.9208, allocations: 24.38 kB / 1.09 GB, free: 4.293 MB / 0.8575 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.901e-05/0.9208, allocations: 11.78 kB / 1.09 GB, free: 4.281 MB / 0.8575 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001555/0.921, allocations: 82.69 kB / 1.09 GB, free: 4.188 MB / 0.8575 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.044e-05/0.921, allocations: 35.08 kB / 1.09 GB, free: 4.145 MB / 0.8575 GB Notification: Performance of pre-optimization done (n=2): time 1.112e-06/0.921, allocations: 1.094 kB / 1.09 GB, free: 4.145 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2): time 0.0001409/0.9211, allocations: 44.34 kB / 1.09 GB, free: 4.105 MB / 0.8575 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.696e-05/0.9212, allocations: 52.75 kB / 1.09 GB, free: 4.043 MB / 0.8575 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.468e-05/0.9212, allocations: 90.56 kB / 1.09 GB, free: 3.945 MB / 0.8575 GB Notification: Performance of collectPreVariables (initialization): time 7.424e-06/0.9212, allocations: 25.7 kB / 1.09 GB, free: 3.914 MB / 0.8575 GB Notification: Performance of collectInitialEqns (initialization): time 1.284e-05/0.9212, allocations: 81.48 kB / 1.09 GB, free: 3.832 MB / 0.8575 GB Notification: Performance of collectInitialBindings (initialization): time 1.661e-05/0.9212, allocations: 0 / 1.09 GB, free: 3.832 MB / 0.8575 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.814e-05/0.9213, allocations: 17.77 kB / 1.09 GB, free: 3.812 MB / 0.8575 GB Notification: Performance of setup shared object (initialization): time 5.655e-05/0.9213, allocations: 316.6 kB / 1.091 GB, free: 3.496 MB / 0.8575 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.515e-05/0.9214, allocations: 6.297 kB / 1.091 GB, free: 3.492 MB / 0.8575 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.407e-06/0.9214, allocations: 2.391 kB / 1.091 GB, free: 3.492 MB / 0.8575 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.544e-05/0.9214, allocations: 14.64 kB / 1.091 GB, free: 3.48 MB / 0.8575 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.9214, allocations: 0 / 1.091 GB, free: 3.48 MB / 0.8575 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.534e-05/0.9215, allocations: 40.39 kB / 1.091 GB, free: 3.445 MB / 0.8575 GB Notification: Performance of prepare postOptimizeDAE: time 1.374e-05/0.9215, allocations: 5.406 kB / 1.091 GB, free: 3.445 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.9215, allocations: 4.781 kB / 1.091 GB, free: 3.441 MB / 0.8575 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.457e-05/0.9215, allocations: 3.938 kB / 1.091 GB, free: 3.438 MB / 0.8575 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.875e-05/0.9216, allocations: 4.359 kB / 1.091 GB, free: 3.438 MB / 0.8575 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.58e-06/0.9216, allocations: 0.9375 kB / 1.091 GB, free: 3.438 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.441e-05/0.9216, allocations: 0 / 1.091 GB, free: 3.438 MB / 0.8575 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.799e-06/0.9216, allocations: 5.641 kB / 1.091 GB, free: 3.434 MB / 0.8575 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 (n,fac) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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 4.796e-05/0.9217, allocations: 111.7 kB / 1.091 GB, free: 3.316 MB / 0.8575 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.425e-06/0.9217, allocations: 1.719 kB / 1.091 GB, free: 3.316 MB / 0.8575 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.329e-05/0.9218, allocations: 47.33 kB / 1.091 GB, free: 3.273 MB / 0.8575 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.9218, allocations: 3.938 kB / 1.091 GB, free: 3.27 MB / 0.8575 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.026e-06/0.9218, allocations: 5.812 kB / 1.091 GB, free: 3.266 MB / 0.8575 GB Notification: Performance of postOpt removeConstants (simulation): time 1.764e-05/0.9218, allocations: 81.47 kB / 1.091 GB, free: 3.172 MB / 0.8575 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.218e-05/0.9218, allocations: 5.625 kB / 1.091 GB, free: 3.168 MB / 0.8575 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.154e-05/0.9219, allocations: 0 / 1.091 GB, free: 3.168 MB / 0.8575 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.144e-05/0.9219, allocations: 3.266 kB / 1.091 GB, free: 3.168 MB / 0.8575 GB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 6.866e-05/0.922, allocations: 122.3 kB / 1.091 GB, free: 3.051 MB / 0.8575 GB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 8.584e-05/0.9221, allocations: 218.9 kB / 1.091 GB, free: 2.832 MB / 0.8575 GB Notification: Performance of postOpt setEvaluationStage (simulation): time 2.306e-05/0.9221, allocations: 4.641 kB / 1.091 GB, free: 2.832 MB / 0.8575 GB Notification: Performance of sorting global known variables: time 1.374e-05/0.9221, allocations: 75.28 kB / 1.091 GB, free: 2.758 MB / 0.8575 GB Notification: Performance of Backend: time 3.51e-07/0.9221, allocations: 0 / 1.091 GB, free: 2.758 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.0003996/0.9225, allocations: 90.28 kB / 1.092 GB, free: 2.688 MB / 0.8575 GB Notification: Performance of SimCode: time 0.0002688/0.9228, allocations: 0.5338 MB / 1.092 GB, free: 2.117 MB / 0.8575 GB Notification: Performance of Templates: time 0.002555/0.9254, allocations: 347.7 kB / 1.092 GB, free: 2.055 MB / 0.8575 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches