Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.501/1.501, allocations: 249.3 MB / 261.9 MB, free: 5.891 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001017/0.001017, allocations: 181.7 kB / 321.3 MB, free: 14.64 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.787/1.787, allocations: 205.2 MB / 0.572 GB, free: 10.59 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009337/0.0009337, allocations: 88.36 kB / 0.6764 GB, free: 15.56 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.956e-05/3.958e-05, allocations: 4 kB / 0.7879 GB, free: 97.09 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2704/0.2704, allocations: 106.3 MB / 0.8918 GB, free: 6.664 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8997/1.17, allocations: 131.9 MB / 1.021 GB, free: 2.824 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003129/1.171, allocations: 69.88 kB / 1.021 GB, free: 2.789 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.003464/1.174, allocations: 0.9388 MB / 1.022 GB, free: 1.949 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.425e-06/1.174, allocations: 0 / 1.022 GB, free: 1.949 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.108e-05/1.174, allocations: 0 / 1.022 GB, free: 1.949 MB / 0.6355 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.0005866/1.175, allocations: 345.5 kB / 1.022 GB, free: 1.57 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 7.941e-05/1.175, allocations: 8.031 kB / 1.022 GB, free: 1.562 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.469e-05/1.175, allocations: 0 / 1.022 GB, free: 1.562 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002557/1.175, allocations: 167 kB / 1.022 GB, free: 1.359 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.555e-05/1.175, allocations: 3.375 kB / 1.022 GB, free: 1.359 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.385e-05/1.175, allocations: 7.922 kB / 1.022 GB, free: 1.352 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001773/1.175, allocations: 48.81 kB / 1.022 GB, free: 1.305 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.297e-05/1.175, allocations: 0 / 1.022 GB, free: 1.305 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.007e-05/1.175, allocations: 3.984 kB / 1.022 GB, free: 1.301 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.436e-06/1.175, allocations: 3.938 kB / 1.022 GB, free: 1.297 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.038e-05/1.176, allocations: 23.12 kB / 1.022 GB, free: 1.277 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007291/1.176, allocations: 285.8 kB / 1.022 GB, free: 0.9648 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003464/1.177, allocations: 41.81 kB / 1.022 GB, free: 0.9219 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.017e-05/1.177, allocations: 20.3 kB / 1.022 GB, free: 0.9023 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001868/1.177, allocations: 77.11 kB / 1.023 GB, free: 0.8086 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.805e-05/1.177, allocations: 38.5 kB / 1.023 GB, free: 0.7617 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=3): time 1.653e-06/1.177, allocations: 0 / 1.023 GB, free: 0.7617 MB / 0.6355 GB Notification: Performance of matching and sorting (n=3): time 0.0002516/1.177, allocations: 49.59 kB / 1.023 GB, free: 0.7148 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.26e-05/1.177, allocations: 54 kB / 1.023 GB, free: 0.6523 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000109/1.177, allocations: 92.98 kB / 1.023 GB, free: 0.5547 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.589e-05/1.177, allocations: 29.64 kB / 1.023 GB, free: 0.5234 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 7.708e-05/1.178, allocations: 88.14 kB / 1.023 GB, free: 444 kB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.314e-05/1.178, allocations: 3.906 kB / 1.023 GB, free: 440 kB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.26e-06/1.178, allocations: 0 / 1.023 GB, free: 440 kB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001972/1.178, allocations: 318.4 kB / 1.023 GB, free: 116 kB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.379e-05/1.178, allocations: 11.98 kB / 1.023 GB, free: 104 kB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.709e-05/1.178, allocations: 7.5 kB / 1.023 GB, free: 100 kB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.455e-05/1.178, allocations: 7.375 kB / 1.023 GB, free: 96 kB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/1.178, allocations: 0 / 1.023 GB, free: 96 kB / 0.6355 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001215/1.178, allocations: 56.59 kB / 1.023 GB, free: 40 kB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.409e-05/1.178, allocations: 12 kB / 1.023 GB, free: 28 kB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.358e-06/1.178, allocations: 0 / 1.023 GB, free: 28 kB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.665e-05/1.178, allocations: 3.938 kB / 1.023 GB, free: 24 kB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001292/1.178, allocations: 11.98 kB / 1.023 GB, free: 12 kB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.115e-05/1.178, allocations: 4 kB / 1.023 GB, free: 8 kB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.719e-05/1.178, allocations: 7.984 kB / 1.023 GB, free: 0 / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.157e-06/1.178, allocations: 0 / 1.023 GB, free: 0 / 0.6355 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 (fac.y,fac.u) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001412/1.179, allocations: 112.9 kB / 1.023 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.238e-05/1.179, allocations: 0 / 1.023 GB, free: 15.88 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001906/1.179, allocations: 61.23 kB / 1.023 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.211e-06/1.179, allocations: 4.047 kB / 1.023 GB, free: 15.82 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.146e-05/1.179, allocations: 3.984 kB / 1.023 GB, free: 15.81 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/1.179, allocations: 0 / 1.023 GB, free: 15.81 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002622/1.179, allocations: 169.2 kB / 1.024 GB, free: 15.61 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.707e-06/1.179, allocations: 0.875 kB / 1.024 GB, free: 15.61 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001016/1.179, allocations: 15.98 kB / 1.024 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/1.179, allocations: 4 kB / 1.024 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.363e-05/1.179, allocations: 0 / 1.024 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/1.179, allocations: 0 / 1.024 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/1.179, allocations: 0 / 1.024 GB, free: 15.59 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002264/1.18, allocations: 149.9 kB / 1.024 GB, free: 15.43 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 6.419e-05/1.18, allocations: 88.95 kB / 1.024 GB, free: 15.32 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.148e-05/1.18, allocations: 4 kB / 1.024 GB, free: 15.32 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000124/1.18, allocations: 15.73 kB / 1.024 GB, free: 15.31 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.041e-05/1.18, allocations: 7.984 kB / 1.024 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.26e-06/1.18, allocations: 0 / 1.024 GB, free: 15.3 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 6.968e-05/1.18, allocations: 82.66 kB / 1.024 GB, free: 15.22 MB / 0.6511 GB Notification: Performance of sort global known variables: time 1.81e-07/1.18, allocations: 0 / 1.024 GB, free: 15.22 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.0003606/1.18, allocations: 19.88 kB / 1.024 GB, free: 15.2 MB / 0.6511 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,fac.u) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002706/1.181, allocations: 107.2 kB / 1.024 GB, free: 15.09 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001381/1.181, allocations: 23.31 kB / 1.024 GB, free: 15.07 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/1.181, allocations: 0 / 1.024 GB, free: 15.07 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 4.814e-05/1.181, allocations: 15.62 kB / 1.024 GB, free: 15.06 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002981/1.181, allocations: 11.94 kB / 1.024 GB, free: 15.05 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003422/1.182, allocations: 64.98 kB / 1.024 GB, free: 14.96 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004769/1.182, allocations: 0.6809 MB / 1.025 GB, free: 14.26 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 5.006e-05/1.182, allocations: 4 kB / 1.025 GB, free: 14.25 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.828e-05/1.182, allocations: 14.75 kB / 1.025 GB, free: 14.24 MB / 0.6511 GB Notification: Performance of SimCode: time 7.92e-07/1.182, allocations: 0 / 1.025 GB, free: 14.24 MB / 0.6511 GB Notification: Performance of Templates: time 0.003914/1.186, allocations: 0.599 MB / 1.025 GB, free: 13.66 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Examples_Factorial.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches