Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001507/0.001507, allocations: 104 kB / 15.6 MB, free: 148 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.00189/0.00189, allocations: 195.4 kB / 16.53 MB, free: 6.617 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.388/1.388, allocations: 222.9 MB / 240.2 MB, free: 4.371 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.599/2.599, allocations: 437 MB / 0.7103 GB, free: 5.062 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001443/0.001443, allocations: 63.91 kB / 0.8692 GB, free: 4.633 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6458/0.6472, allocations: 151.6 MB / 1.017 GB, free: 2.461 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001935/0.6492, allocations: 0.5685 MB / 1.018 GB, free: 1.887 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0002829/0.6495, allocations: 47.8 kB / 1.018 GB, free: 1.84 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.938e-05/0.6495, allocations: 4 kB / 1.018 GB, free: 1.836 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.494e-05/0.6496, allocations: 0 / 1.018 GB, free: 1.836 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.691e-06/0.6496, allocations: 0 / 1.018 GB, free: 1.836 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002501/0.6498, allocations: 19.91 kB / 1.018 GB, free: 1.816 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 4.971e-05/0.6499, allocations: 11.94 kB / 1.018 GB, free: 1.805 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 5.659e-05/0.65, allocations: 0 / 1.018 GB, free: 1.805 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 1.519e-05/0.65, allocations: 0 / 1.018 GB, free: 1.805 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 2.347e-05/0.65, allocations: 0 / 1.018 GB, free: 1.805 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 1.18e-05/0.65, allocations: 4 kB / 1.018 GB, free: 1.801 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 8.105e-05/0.6501, allocations: 7.984 kB / 1.018 GB, free: 1.793 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.208e-05/0.6501, allocations: 4 kB / 1.018 GB, free: 1.789 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 1.981e-05/0.6502, allocations: 7.984 kB / 1.018 GB, free: 1.781 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 9.911e-05/0.6503, allocations: 11.92 kB / 1.018 GB, free: 1.77 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 5.109e-06/0.6503, allocations: 0 / 1.018 GB, free: 1.77 MB / 0.7637 GB Notification: Performance of FrontEnd: time 2.385e-06/0.6503, allocations: 0 / 1.018 GB, free: 1.77 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 5.921e-06/0.6503, allocations: 0 / 1.018 GB, free: 1.77 MB / 0.7637 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.0003287/0.6506, allocations: 311.6 kB / 1.018 GB, free: 1.414 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.845e-05/0.6507, allocations: 12.03 kB / 1.018 GB, free: 1.402 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.624e-05/0.6507, allocations: 8.875 kB / 1.018 GB, free: 1.395 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001009/0.6508, allocations: 164.4 kB / 1.018 GB, free: 1.195 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.807e-06/0.6508, allocations: 384 / 1.018 GB, free: 1.195 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.126e-05/0.6508, allocations: 4.375 kB / 1.018 GB, free: 1.191 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001056/0.651, allocations: 30.27 kB / 1.018 GB, free: 1.156 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.651, allocations: 4.125 kB / 1.018 GB, free: 1.152 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.096e-05/0.651, allocations: 3.938 kB / 1.018 GB, free: 1.148 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.651, allocations: 4 kB / 1.018 GB, free: 1.145 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.958e-05/0.651, allocations: 7.984 kB / 1.018 GB, free: 1.137 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001668/0.6512, allocations: 149.6 kB / 1.019 GB, free: 0.9414 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 5.239e-05/0.6513, allocations: 26.61 kB / 1.019 GB, free: 0.9062 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.599e-05/0.6513, allocations: 8.922 kB / 1.019 GB, free: 0.8945 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000182/0.6515, allocations: 81.09 kB / 1.019 GB, free: 0.7969 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.25e-05/0.6515, allocations: 34.56 kB / 1.019 GB, free: 0.7539 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=2): time 1.152e-06/0.6516, allocations: 0 / 1.019 GB, free: 0.7539 MB / 0.7637 GB Notification: Performance of matching and sorting (n=2): time 0.0001542/0.6517, allocations: 49.56 kB / 1.019 GB, free: 0.6992 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.174e-05/0.6517, allocations: 51.41 kB / 1.019 GB, free: 0.6367 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5e-05/0.6518, allocations: 89.98 kB / 1.019 GB, free: 0.5391 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 1.266e-05/0.6518, allocations: 29.7 kB / 1.019 GB, free: 0.5039 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 2.439e-05/0.6519, allocations: 80.14 kB / 1.019 GB, free: 432 kB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 2.27e-05/0.6519, allocations: 4 kB / 1.019 GB, free: 428 kB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.864e-05/0.6519, allocations: 13.72 kB / 1.019 GB, free: 408 kB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.000111/0.652, allocations: 310.8 kB / 1.019 GB, free: 88 kB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.181e-05/0.6521, allocations: 4 kB / 1.019 GB, free: 84 kB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.826e-06/0.6521, allocations: 3.984 kB / 1.019 GB, free: 80 kB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.632e-05/0.6521, allocations: 24.86 kB / 1.019 GB, free: 52 kB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.6521, allocations: 0 / 1.019 GB, free: 52 kB / 0.7637 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.836e-05/0.6522, allocations: 45.62 kB / 1.019 GB, free: 0 / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 2.872e-05/0.6522, allocations: 4.047 kB / 1.019 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.6522, allocations: 0 / 1.019 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/0.6522, allocations: 3.938 kB / 1.019 GB, free: 15.99 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.605e-05/0.6523, allocations: 7.938 kB / 1.019 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.929e-06/0.6523, allocations: 0 / 1.019 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.308e-05/0.6523, allocations: 0 / 1.019 GB, free: 15.98 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.981e-06/0.6523, allocations: 4 kB / 1.019 GB, free: 15.98 MB / 0.7794 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 7.494e-05/0.6524, allocations: 109.9 kB / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.832e-06/0.6524, allocations: 0 / 1.02 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.291e-05/0.6525, allocations: 54.66 kB / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-06/0.6525, allocations: 0 / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.168e-06/0.6526, allocations: 0 / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.6526, allocations: 0 / 1.02 GB, free: 15.8 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.233e-05/0.6527, allocations: 153.6 kB / 1.02 GB, free: 15.61 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.12e-07/0.6527, allocations: 3.938 kB / 1.02 GB, free: 15.6 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.221e-05/0.6527, allocations: 8.031 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.6527, allocations: 0 / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.807e-06/0.6527, allocations: 7.938 kB / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.6527, allocations: 0 / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.6527, allocations: 0 / 1.02 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.439e-05/0.6528, allocations: 69.06 kB / 1.02 GB, free: 15.5 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.337e-05/0.6528, allocations: 81.11 kB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.986e-05/0.6529, allocations: 3.938 kB / 1.02 GB, free: 15.4 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.168e-05/0.6529, allocations: 4.031 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.486e-05/0.6529, allocations: 0 / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.771e-06/0.6529, allocations: 3.984 kB / 1.02 GB, free: 15.39 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 2.313e-05/0.653, allocations: 79.28 kB / 1.02 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.653, allocations: 0 / 1.02 GB, free: 15.31 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0001908/0.6532, allocations: 4 kB / 1.02 GB, free: 15.31 MB / 0.7794 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,n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 0.0001409/0.6533, allocations: 103.2 kB / 1.02 GB, free: 15.2 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 8.789e-05/0.6534, allocations: 16 kB / 1.02 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.6534, allocations: 0 / 1.02 GB, free: 15.18 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.785e-05/0.6534, allocations: 15.86 kB / 1.02 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001313/0.6536, allocations: 0 / 1.02 GB, free: 15.17 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001958/0.6538, allocations: 83.17 kB / 1.02 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002553/0.654, allocations: 0.6768 MB / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 1.222e-05/0.654, allocations: 0 / 1.021 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.594e-05/0.6541, allocations: 7.438 kB / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of SimCode: time 2.6e-07/0.6541, allocations: 128 / 1.021 GB, free: 14.35 MB / 0.7794 GB Notification: Performance of Templates: time 0.002316/0.6564, allocations: 324.5 kB / 1.021 GB, free: 14.04 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches