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.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-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.001015/0.001015, allocations: 98.72 kB / 16.02 MB, free: 76 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.001217/0.001217, allocations: 184.2 kB / 16.92 MB, free: 6.895 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.58/1.58, allocations: 223.3 MB / 241 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.384/2.384, allocations: 390.9 MB / 0.667 GB, free: 2.367 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003669/0.000367, allocations: 12 kB / 0.8166 GB, free: 13.25 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7287/0.7291, allocations: 142.4 MB / 0.9557 GB, free: 7.707 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.00071/0.7298, allocations: 321.1 kB / 0.956 GB, free: 7.465 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002686/0.7301, allocations: 51.47 kB / 0.9561 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.111e-05/0.7301, allocations: 0 / 0.9561 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.581e-05/0.7302, allocations: 0 / 0.9561 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.829e-06/0.7302, allocations: 1.406 kB / 0.9561 GB, free: 7.426 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001851/0.7304, allocations: 14.5 kB / 0.9561 GB, free: 7.414 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 4.081e-05/0.7304, allocations: 10.02 kB / 0.9561 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 4.137e-05/0.7305, allocations: 1.094 kB / 0.9561 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.5e-05/0.7305, allocations: 1 kB / 0.9561 GB, free: 7.406 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.373e-05/0.7305, allocations: 5.062 kB / 0.9561 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.211e-05/0.7305, allocations: 0 / 0.9561 GB, free: 7.402 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.678e-05/0.7306, allocations: 8.438 kB / 0.9561 GB, free: 7.398 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.077e-05/0.7306, allocations: 1.125 kB / 0.9561 GB, free: 7.398 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.478e-05/0.7306, allocations: 30.81 kB / 0.9561 GB, free: 7.363 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 6.33e-05/0.7307, allocations: 10.11 kB / 0.9561 GB, free: 7.355 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.7307, allocations: 4 kB / 0.9562 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.783e-06/0.7307, allocations: 0 / 0.9562 GB, free: 7.352 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.048e-06/0.7307, allocations: 1 kB / 0.9562 GB, free: 7.352 MB / 0.7169 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.0002018/0.7309, allocations: 305.8 kB / 0.9564 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.028e-05/0.731, allocations: 10.12 kB / 0.9565 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.592e-05/0.731, allocations: 4.922 kB / 0.9565 GB, free: 7 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.943e-05/0.7311, allocations: 165.6 kB / 0.9566 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.896e-06/0.7311, allocations: 384 / 0.9566 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.278e-06/0.7311, allocations: 1.531 kB / 0.9566 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.17e-05/0.7312, allocations: 41.69 kB / 0.9567 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.712e-06/0.7312, allocations: 192 / 0.9567 GB, free: 6.758 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.588e-06/0.7312, allocations: 3.938 kB / 0.9567 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.7312, allocations: 1.281 kB / 0.9567 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.332e-05/0.7313, allocations: 10.14 kB / 0.9567 GB, free: 6.746 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001109/0.7314, allocations: 148.1 kB / 0.9568 GB, free: 6.555 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 4.407e-05/0.7315, allocations: 20.11 kB / 0.9568 GB, free: 6.531 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.006e-05/0.7315, allocations: 19.19 kB / 0.9569 GB, free: 6.512 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001444/0.7316, allocations: 79.52 kB / 0.9569 GB, free: 6.418 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.843e-05/0.7317, allocations: 35.53 kB / 0.957 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.102e-06/0.7317, allocations: 0 / 0.957 GB, free: 6.375 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0001334/0.7318, allocations: 50.72 kB / 0.957 GB, free: 6.328 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.513e-05/0.7318, allocations: 52.66 kB / 0.9571 GB, free: 6.266 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 2.223e-05/0.7319, allocations: 89.86 kB / 0.9571 GB, free: 6.168 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.482e-06/0.7319, allocations: 25.7 kB / 0.9572 GB, free: 6.137 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 1.193e-05/0.7319, allocations: 85.33 kB / 0.9573 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.436e-05/0.7319, allocations: 0 / 0.9573 GB, free: 6.051 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.871e-05/0.7319, allocations: 11 kB / 0.9573 GB, free: 6.035 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.566e-05/0.732, allocations: 316 kB / 0.9576 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.061e-05/0.732, allocations: 1.125 kB / 0.9576 GB, free: 5.719 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.203e-06/0.732, allocations: 6.078 kB / 0.9576 GB, free: 5.715 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.155e-05/0.732, allocations: 14.11 kB / 0.9576 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.7321, allocations: 0 / 0.9576 GB, free: 5.703 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 4.936e-05/0.7321, allocations: 46.48 kB / 0.9576 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.295e-05/0.7321, allocations: 4.375 kB / 0.9576 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.017e-06/0.7321, allocations: 1.156 kB / 0.9576 GB, free: 5.66 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.273e-05/0.7322, allocations: 7.922 kB / 0.9576 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.044e-05/0.7322, allocations: 3.5 kB / 0.9576 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.919e-06/0.7322, allocations: 0 / 0.9576 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.392e-05/0.7322, allocations: 1.094 kB / 0.9576 GB, free: 5.652 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.188e-06/0.7322, allocations: 1.062 kB / 0.9576 GB, free: 5.652 MB / 0.7169 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.456e-05/0.7323, allocations: 111.4 kB / 0.9578 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.611e-06/0.7323, allocations: 0 / 0.9578 GB, free: 5.535 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.594e-05/0.7324, allocations: 54.31 kB / 0.9578 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.223e-06/0.7324, allocations: 0 / 0.9578 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.7324, allocations: 1.125 kB / 0.9578 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.7324, allocations: 0 / 0.9578 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.402e-05/0.7325, allocations: 151.9 kB / 0.958 GB, free: 5.289 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.7325, allocations: 4 kB / 0.958 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.219e-05/0.7325, allocations: 3.406 kB / 0.958 GB, free: 5.285 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-06/0.7325, allocations: 3.938 kB / 0.958 GB, free: 5.281 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.59e-06/0.7325, allocations: 9.031 kB / 0.958 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.71e-07/0.7325, allocations: 0 / 0.958 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.7326, allocations: 1.125 kB / 0.958 GB, free: 5.273 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.282e-05/0.7326, allocations: 69.12 kB / 0.958 GB, free: 5.195 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.847e-05/0.7326, allocations: 78.2 kB / 0.9581 GB, free: 5.102 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.385e-05/0.7327, allocations: 4.781 kB / 0.9581 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.046e-05/0.7327, allocations: 0 / 0.9581 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.17e-05/0.7327, allocations: 6.188 kB / 0.9581 GB, free: 5.094 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.539e-06/0.7327, allocations: 4.953 kB / 0.9581 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.673e-05/0.7327, allocations: 75.28 kB / 0.9582 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.7328, allocations: 0 / 0.9582 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002016/0.733, allocations: 4.406 kB / 0.9582 GB, free: 5.016 MB / 0.7169 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.0001514/0.7331, allocations: 104.6 kB / 0.9583 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 6.213e-05/0.7332, allocations: 7.188 kB / 0.9583 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.7332, allocations: 0 / 0.9583 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 1.153e-05/0.7332, allocations: 15.58 kB / 0.9583 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001372/0.7333, allocations: 1.125 kB / 0.9583 GB, free: 4.914 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000167/0.7335, allocations: 104.3 kB / 0.9584 GB, free: 4.789 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.783e-05/0.7336, allocations: 0.6703 MB / 0.9591 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.388e-05/0.7336, allocations: 13.77 kB / 0.9591 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of SimCode: time 3.51e-07/0.7336, allocations: 0 / 0.9591 GB, free: 4.082 MB / 0.7169 GB Notification: Performance of Templates: time 0.001625/0.7353, allocations: 449.2 kB / 0.9595 GB, free: 3.867 MB / 0.7169 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