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.001448/0.001448, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001386/0.001386, allocations: 197.4 kB / 16.14 MB, free: 6.629 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.484/1.484, allocations: 222.9 MB / 239.8 MB, free: 4.574 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.749/2.749, allocations: 437 MB / 0.71 GB, free: 5.348 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00196/0.00196, allocations: 67.89 kB / 0.8686 GB, free: 5.184 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6236/0.6256, allocations: 151.6 MB / 1.017 GB, free: 2.805 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001866/0.6275, allocations: 0.6566 MB / 1.017 GB, free: 2.145 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.0002875/0.6278, allocations: 51.78 kB / 1.017 GB, free: 2.094 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.004e-05/0.6279, allocations: 0 / 1.017 GB, free: 2.094 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 1.446e-05/0.6279, allocations: 4 kB / 1.017 GB, free: 2.09 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 5.089e-06/0.6279, allocations: 0 / 1.017 GB, free: 2.09 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001931/0.6281, allocations: 11.98 kB / 1.017 GB, free: 2.078 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 4.599e-05/0.6282, allocations: 7.938 kB / 1.017 GB, free: 2.07 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 3.879e-05/0.6282, allocations: 0 / 1.017 GB, free: 2.07 MB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 1.19e-05/0.6282, allocations: 4 kB / 1.017 GB, free: 2.066 MB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 1.858e-05/0.6282, allocations: 4 kB / 1.017 GB, free: 2.062 MB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 8.696e-06/0.6283, allocations: 0 / 1.017 GB, free: 2.062 MB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 7.143e-05/0.6283, allocations: 11.98 kB / 1.017 GB, free: 2.051 MB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 1.12e-05/0.6284, allocations: 3.984 kB / 1.017 GB, free: 2.047 MB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 1.856e-05/0.6284, allocations: 0 / 1.017 GB, free: 2.047 MB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 7.78e-05/0.6285, allocations: 11.94 kB / 1.017 GB, free: 2.035 MB / 0.7637 GB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.6285, allocations: 0 / 1.017 GB, free: 2.035 MB / 0.7637 GB Notification: Performance of FrontEnd: time 1.022e-06/0.6285, allocations: 0 / 1.017 GB, free: 2.035 MB / 0.7637 GB Notification: Performance of Transformations before backend: time 4.358e-06/0.6285, allocations: 0 / 1.017 GB, free: 2.035 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.0003435/0.6288, allocations: 323.5 kB / 1.018 GB, free: 1.668 MB / 0.7637 GB Notification: Performance of prepare preOptimizeDAE: time 3.682e-05/0.6289, allocations: 8.031 kB / 1.018 GB, free: 1.66 MB / 0.7637 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.017e-05/0.6289, allocations: 0.9375 kB / 1.018 GB, free: 1.66 MB / 0.7637 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001178/0.629, allocations: 164.3 kB / 1.018 GB, free: 1.461 MB / 0.7637 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.939e-06/0.629, allocations: 384 / 1.018 GB, free: 1.461 MB / 0.7637 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.417e-06/0.6291, allocations: 4.375 kB / 1.018 GB, free: 1.457 MB / 0.7637 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001018/0.6292, allocations: 34.25 kB / 1.018 GB, free: 1.418 MB / 0.7637 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.718e-06/0.6292, allocations: 4.188 kB / 1.018 GB, free: 1.414 MB / 0.7637 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.288e-06/0.6292, allocations: 3.938 kB / 1.018 GB, free: 1.41 MB / 0.7637 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.298e-06/0.6292, allocations: 4 kB / 1.018 GB, free: 1.406 MB / 0.7637 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.084e-05/0.6292, allocations: 4 kB / 1.018 GB, free: 1.402 MB / 0.7637 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001636/0.6294, allocations: 149.7 kB / 1.018 GB, free: 1.207 MB / 0.7637 GB Notification: Performance of preOpt comSubExp (simulation): time 6.195e-05/0.6295, allocations: 22.55 kB / 1.018 GB, free: 1.176 MB / 0.7637 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.221e-05/0.6295, allocations: 8.922 kB / 1.018 GB, free: 1.164 MB / 0.7637 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001856/0.6297, allocations: 85.09 kB / 1.018 GB, free: 1.062 MB / 0.7637 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.125e-05/0.6297, allocations: 38.56 kB / 1.018 GB, free: 1.016 MB / 0.7637 GB Notification: Performance of pre-optimization done (n=2): time 1.142e-06/0.6297, allocations: 0 / 1.018 GB, free: 1.016 MB / 0.7637 GB Notification: Performance of matching and sorting (n=2): time 0.000169/0.6299, allocations: 41.58 kB / 1.018 GB, free: 0.9688 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.747e-05/0.63, allocations: 51.41 kB / 1.018 GB, free: 0.9062 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.456e-05/0.63, allocations: 97.84 kB / 1.018 GB, free: 0.8008 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 1.684e-05/0.6301, allocations: 25.7 kB / 1.018 GB, free: 0.7695 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 3.681e-05/0.6301, allocations: 88.08 kB / 1.018 GB, free: 0.6797 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 1.914e-05/0.6301, allocations: 0 / 1.018 GB, free: 0.6797 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.739e-05/0.6302, allocations: 9.844 kB / 1.019 GB, free: 0.6641 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001447/0.6303, allocations: 318.8 kB / 1.019 GB, free: 352 kB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.32e-05/0.6303, allocations: 4 kB / 1.019 GB, free: 348 kB / 0.7637 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.187e-06/0.6303, allocations: 4 kB / 1.019 GB, free: 344 kB / 0.7637 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.289e-05/0.6304, allocations: 12.84 kB / 1.019 GB, free: 328 kB / 0.7637 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.027e-06/0.6304, allocations: 0 / 1.019 GB, free: 328 kB / 0.7637 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.219e-05/0.6304, allocations: 41.64 kB / 1.019 GB, free: 280 kB / 0.7637 GB Notification: Performance of prepare postOptimizeDAE: time 1.242e-05/0.6305, allocations: 4 kB / 1.019 GB, free: 276 kB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.519e-06/0.6305, allocations: 4.094 kB / 1.019 GB, free: 272 kB / 0.7637 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.6305, allocations: 3.938 kB / 1.019 GB, free: 268 kB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.357e-05/0.6306, allocations: 7.938 kB / 1.019 GB, free: 260 kB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.281e-06/0.6306, allocations: 3.984 kB / 1.019 GB, free: 256 kB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.226e-05/0.6306, allocations: 0 / 1.019 GB, free: 256 kB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.907e-06/0.6306, allocations: 4 kB / 1.019 GB, free: 252 kB / 0.7637 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.594e-05/0.6307, allocations: 105.8 kB / 1.019 GB, free: 136 kB / 0.7637 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.866e-06/0.6307, allocations: 3.906 kB / 1.019 GB, free: 132 kB / 0.7637 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.567e-05/0.6308, allocations: 58.72 kB / 1.019 GB, free: 68 kB / 0.7637 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.393e-06/0.6308, allocations: 0 / 1.019 GB, free: 68 kB / 0.7637 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.387e-06/0.6308, allocations: 0 / 1.019 GB, free: 68 kB / 0.7637 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.873e-06/0.6308, allocations: 0 / 1.019 GB, free: 68 kB / 0.7637 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000129/0.6309, allocations: 153.7 kB / 1.019 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.92e-07/0.631, allocations: 0 / 1.019 GB, free: 15.87 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.718e-05/0.631, allocations: 7.984 kB / 1.019 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.292e-06/0.631, allocations: 0 / 1.019 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.248e-06/0.631, allocations: 3.938 kB / 1.019 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.62e-07/0.631, allocations: 3.938 kB / 1.019 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.12e-07/0.631, allocations: 0 / 1.019 GB, free: 15.85 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.283e-05/0.6311, allocations: 69.16 kB / 1.019 GB, free: 15.77 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 4.093e-05/0.6312, allocations: 77.11 kB / 1.019 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.138e-05/0.6312, allocations: 3.938 kB / 1.019 GB, free: 15.67 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.232e-05/0.6312, allocations: 3.984 kB / 1.019 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.818e-05/0.6312, allocations: 0 / 1.019 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.668e-06/0.6312, allocations: 4 kB / 1.019 GB, free: 15.66 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.246e-05/0.6313, allocations: 75.28 kB / 1.019 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.31e-07/0.6313, allocations: 4.031 kB / 1.019 GB, free: 15.58 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0001995/0.6315, allocations: 4 kB / 1.019 GB, free: 15.58 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.0001893/0.6317, allocations: 115.7 kB / 1.02 GB, free: 15.46 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 8.709e-05/0.6318, allocations: 11.94 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 4.399e-06/0.6318, allocations: 0 / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.519e-05/0.6318, allocations: 7.938 kB / 1.02 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001269/0.6319, allocations: 2.062 kB / 1.02 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001994/0.6321, allocations: 86.88 kB / 1.02 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000295/0.6324, allocations: 0.6731 MB / 1.02 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 1.262e-05/0.6325, allocations: 0 / 1.02 GB, free: 14.63 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.937e-05/0.6325, allocations: 15.42 kB / 1.02 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of SimCode: time 3.6e-07/0.6325, allocations: 0 / 1.02 GB, free: 14.61 MB / 0.7794 GB Notification: Performance of Templates: time 0.002592/0.6351, allocations: 323 kB / 1.021 GB, free: 14.3 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=400 -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