Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_11_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.005665/0.005665, allocations: 98.61 kB / 15.73 MB, free: 6.047 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.001276/0.001276, allocations: 194.3 kB / 16.68 MB, free: 5.969 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.447/1.447, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.83/2.83, allocations: 469.8 MB / 0.7425 GB, free: 7.379 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 59.91 kB / 1.065 GB, free: 13.06 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3133/0.3145, allocations: 159.1 MB / 1.221 GB, free: 13.81 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002549/0.3171, allocations: 1.525 MB / 1.222 GB, free: 12.28 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0003565/0.3174, allocations: 119.6 kB / 1.222 GB, free: 12.16 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.718e-05/0.3175, allocations: 0 / 1.222 GB, free: 12.16 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 2.841e-05/0.3175, allocations: 3.938 kB / 1.222 GB, free: 12.16 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 3.77e-05/0.3175, allocations: 4 kB / 1.222 GB, free: 12.15 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.00022/0.3177, allocations: 27.92 kB / 1.222 GB, free: 12.12 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 7.536e-05/0.3178, allocations: 31.91 kB / 1.222 GB, free: 12.09 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 9.962e-05/0.3179, allocations: 7.984 kB / 1.222 GB, free: 12.09 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 4.125e-05/0.318, allocations: 11.94 kB / 1.222 GB, free: 12.07 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 4.903e-05/0.318, allocations: 11.98 kB / 1.222 GB, free: 12.06 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 1.38e-05/0.318, allocations: 7.938 kB / 1.222 GB, free: 12.05 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 6.153e-05/0.3181, allocations: 15.98 kB / 1.222 GB, free: 12.04 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 1.869e-05/0.3181, allocations: 7.984 kB / 1.222 GB, free: 12.03 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.71e-05/0.3181, allocations: 15.92 kB / 1.222 GB, free: 12.02 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.000114/0.3182, allocations: 27.91 kB / 1.222 GB, free: 11.99 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 3.326e-06/0.3182, allocations: 0 / 1.222 GB, free: 11.99 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.262e-06/0.3182, allocations: 4 kB / 1.222 GB, free: 11.98 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.42e-06/0.3183, allocations: 0 / 1.222 GB, free: 11.98 MB / 0.9825 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.0004456/0.3187, allocations: 347.4 kB / 1.223 GB, free: 11.59 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.34e-05/0.3187, allocations: 8.031 kB / 1.223 GB, free: 11.59 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.559e-05/0.3188, allocations: 8.891 kB / 1.223 GB, free: 11.58 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001034/0.3189, allocations: 160.4 kB / 1.223 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.463e-05/0.3189, allocations: 8.375 kB / 1.223 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.082e-05/0.3189, allocations: 384 / 1.223 GB, free: 11.38 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001841/0.3191, allocations: 66.16 kB / 1.223 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.764e-06/0.3191, allocations: 192 / 1.223 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.231e-05/0.3191, allocations: 3.938 kB / 1.223 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.899e-06/0.3191, allocations: 0 / 1.223 GB, free: 11.3 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001819/0.3193, allocations: 43.95 kB / 1.223 GB, free: 11.26 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003404/0.3196, allocations: 264.9 kB / 1.223 GB, free: 10.95 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003233/0.32, allocations: 70.47 kB / 1.223 GB, free: 10.87 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.157e-05/0.3201, allocations: 20.84 kB / 1.223 GB, free: 10.85 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001155/0.3202, allocations: 85.09 kB / 1.223 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.895e-05/0.3202, allocations: 30.56 kB / 1.223 GB, free: 10.71 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.3202, allocations: 0 / 1.223 GB, free: 10.71 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0003599/0.3205, allocations: 97.62 kB / 1.224 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.515e-05/0.3206, allocations: 59.34 kB / 1.224 GB, free: 10.54 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.767e-05/0.3207, allocations: 109.9 kB / 1.224 GB, free: 10.42 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.198e-05/0.3207, allocations: 25.7 kB / 1.224 GB, free: 10.39 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 4.094e-05/0.3207, allocations: 80.14 kB / 1.224 GB, free: 10.3 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.946e-05/0.3207, allocations: 11.94 kB / 1.224 GB, free: 10.29 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.69e-05/0.3208, allocations: 21.72 kB / 1.224 GB, free: 10.27 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 9.153e-05/0.3209, allocations: 310.8 kB / 1.224 GB, free: 9.953 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.099e-05/0.3209, allocations: 19.97 kB / 1.224 GB, free: 9.934 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.85e-05/0.321, allocations: 19.98 kB / 1.224 GB, free: 9.914 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001658/0.3212, allocations: 48.81 kB / 1.224 GB, free: 9.863 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.3212, allocations: 3.938 kB / 1.224 GB, free: 9.859 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002004/0.3214, allocations: 77.61 kB / 1.224 GB, free: 9.777 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.3214, allocations: 8 kB / 1.224 GB, free: 9.77 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.3214, allocations: 0 / 1.224 GB, free: 9.77 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.551e-05/0.3214, allocations: 3.938 kB / 1.224 GB, free: 9.766 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.538e-05/0.3215, allocations: 11.98 kB / 1.224 GB, free: 9.754 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.438e-06/0.3215, allocations: 0 / 1.224 GB, free: 9.754 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.612e-05/0.3216, allocations: 7.984 kB / 1.224 GB, free: 9.746 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.561e-06/0.3216, allocations: 0 / 1.224 GB, free: 9.746 MB / 0.9825 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 7.468e-05/0.3217, allocations: 122.3 kB / 1.224 GB, free: 9.617 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.299e-05/0.3217, allocations: 0 / 1.224 GB, free: 9.617 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002485/0.3219, allocations: 77.14 kB / 1.225 GB, free: 9.535 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.3219, allocations: 0 / 1.225 GB, free: 9.535 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.3219, allocations: 4 kB / 1.225 GB, free: 9.531 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.086e-06/0.3219, allocations: 0 / 1.225 GB, free: 9.531 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001509/0.3221, allocations: 165.6 kB / 1.225 GB, free: 9.32 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.062e-06/0.3221, allocations: 4 kB / 1.225 GB, free: 9.316 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.649e-05/0.3222, allocations: 15.92 kB / 1.225 GB, free: 9.301 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.3222, allocations: 0 / 1.225 GB, free: 9.301 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.063e-05/0.3222, allocations: 4 kB / 1.225 GB, free: 9.297 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.3222, allocations: 3.984 kB / 1.225 GB, free: 9.293 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.3222, allocations: 0 / 1.225 GB, free: 9.293 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002579/0.3224, allocations: 175.4 kB / 1.225 GB, free: 9.105 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 3.13e-05/0.3225, allocations: 81.06 kB / 1.225 GB, free: 9.008 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.518e-05/0.3225, allocations: 0 / 1.225 GB, free: 9.008 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.382e-05/0.3226, allocations: 11.92 kB / 1.225 GB, free: 8.996 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.014e-05/0.3226, allocations: 11.98 kB / 1.225 GB, free: 8.984 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.987e-06/0.3226, allocations: 0 / 1.225 GB, free: 8.984 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 4.007e-05/0.3227, allocations: 79.7 kB / 1.225 GB, free: 8.906 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.3227, allocations: 0 / 1.225 GB, free: 8.906 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002247/0.3229, allocations: 12 kB / 1.225 GB, free: 8.895 MB / 0.9825 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.0001568/0.323, allocations: 111.1 kB / 1.225 GB, free: 8.773 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002282/0.3233, allocations: 52 kB / 1.225 GB, free: 8.723 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 3.687e-06/0.3233, allocations: 4 kB / 1.225 GB, free: 8.719 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 9.073e-05/0.3234, allocations: 19.98 kB / 1.225 GB, free: 8.699 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002705/0.3236, allocations: 13.81 kB / 1.225 GB, free: 8.688 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002999/0.3239, allocations: 117.3 kB / 1.225 GB, free: 8.547 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002151/0.3241, allocations: 0.6806 MB / 1.226 GB, free: 7.84 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 3.157e-05/0.3242, allocations: 7.984 kB / 1.226 GB, free: 7.832 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.727e-05/0.3242, allocations: 15.44 kB / 1.226 GB, free: 7.816 MB / 0.9825 GB Notification: Performance of SimCode: time 3e-07/0.3242, allocations: 0 / 1.226 GB, free: 7.816 MB / 0.9825 GB Notification: Performance of Templates: time 0.002823/0.327, allocations: 0.6996 MB / 1.227 GB, free: 7.121 MB / 0.9825 GB make -j1 -f Buildings_11_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_11_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_11_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches