Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac",fileNamePrefix="Buildings_maint.7.0.x_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_maint.7.0.x_Buildings.Utilities.Math.Functions.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.481/1.481, allocations: 249.3 MB / 261.8 MB, free: 5.949 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.001068/0.001068, allocations: 172.9 kB / 321.3 MB, free: 14.65 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.88/1.88, allocations: 205.2 MB / 0.572 GB, free: 10.66 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.0008078/0.0008078, allocations: 86.42 kB / 0.6764 GB, free: 15.64 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 3.902e-05/3.905e-05, allocations: 4 kB / 0.7879 GB, free: 97.09 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2271/0.2272, allocations: 106.3 MB / 0.8918 GB, free: 6.66 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.7177/0.9449, allocations: 130.9 MB / 1.02 GB, free: 3.758 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000243/0.9452, allocations: 77.5 kB / 1.02 GB, free: 3.711 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.001132/0.9464, allocations: 0.5232 MB / 1.02 GB, free: 3.227 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.515e-06/0.9464, allocations: 0 / 1.02 GB, free: 3.227 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 5.39e-06/0.9464, allocations: 2.625 kB / 1.02 GB, free: 3.227 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002595/0.9467, allocations: 316.6 kB / 1.021 GB, free: 2.875 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/0.9467, allocations: 8.031 kB / 1.021 GB, free: 2.867 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.763e-05/0.9468, allocations: 0 / 1.021 GB, free: 2.867 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001097/0.9469, allocations: 163 kB / 1.021 GB, free: 2.668 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.484e-05/0.9469, allocations: 10.97 kB / 1.021 GB, free: 2.664 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.002e-05/0.9469, allocations: 4 kB / 1.021 GB, free: 2.66 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.635e-05/0.947, allocations: 29.69 kB / 1.021 GB, free: 2.625 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.322e-06/0.947, allocations: 0 / 1.021 GB, free: 2.625 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.056e-06/0.947, allocations: 4 kB / 1.021 GB, free: 2.621 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.9471, allocations: 0 / 1.021 GB, free: 2.621 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.069e-05/0.9471, allocations: 4 kB / 1.021 GB, free: 2.617 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001562/0.9473, allocations: 153.3 kB / 1.021 GB, free: 2.422 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 4.557e-05/0.9473, allocations: 30.47 kB / 1.021 GB, free: 2.383 MB / 0.6355 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.871e-05/0.9473, allocations: 15.8 kB / 1.021 GB, free: 2.367 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001386/0.9475, allocations: 81.11 kB / 1.021 GB, free: 2.27 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.27e-05/0.9475, allocations: 30.56 kB / 1.021 GB, free: 2.23 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=2): time 1.182e-06/0.9475, allocations: 0 / 1.021 GB, free: 2.23 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2): time 0.0001267/0.9477, allocations: 45.44 kB / 1.021 GB, free: 2.184 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.083e-05/0.9477, allocations: 51.41 kB / 1.021 GB, free: 2.121 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.813e-05/0.9477, allocations: 85 kB / 1.021 GB, free: 2.031 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 1.147e-05/0.9478, allocations: 25.7 kB / 1.021 GB, free: 2 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 2.411e-05/0.9478, allocations: 80.14 kB / 1.021 GB, free: 1.918 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 1.735e-05/0.9478, allocations: 0 / 1.021 GB, free: 1.918 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.044e-06/0.9478, allocations: 0 / 1.021 GB, free: 1.918 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001066/0.9479, allocations: 314.8 kB / 1.022 GB, free: 1.602 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.206e-05/0.9479, allocations: 2.938 kB / 1.022 GB, free: 1.602 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.983e-06/0.948, allocations: 11.97 kB / 1.022 GB, free: 1.59 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.743e-05/0.948, allocations: 0 / 1.022 GB, free: 1.59 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.092e-06/0.948, allocations: 0 / 1.022 GB, free: 1.59 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.824e-05/0.9481, allocations: 45.08 kB / 1.022 GB, free: 1.543 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/0.9481, allocations: 10.03 kB / 1.022 GB, free: 1.535 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.466e-06/0.9481, allocations: 0 / 1.022 GB, free: 1.535 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.025e-05/0.9481, allocations: 0 / 1.022 GB, free: 1.535 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.133e-05/0.9482, allocations: 7.938 kB / 1.022 GB, free: 1.531 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.411e-06/0.9482, allocations: 0 / 1.022 GB, free: 1.531 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.489e-05/0.9482, allocations: 8 kB / 1.022 GB, free: 1.523 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.887e-06/0.9482, allocations: 0 / 1.022 GB, free: 1.523 MB / 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,n) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 5.848e-05/0.9483, allocations: 105 kB / 1.022 GB, free: 1.414 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.017e-06/0.9483, allocations: 11.94 kB / 1.022 GB, free: 1.402 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.394e-05/0.9484, allocations: 48.53 kB / 1.022 GB, free: 1.352 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.9484, allocations: 0 / 1.022 GB, free: 1.352 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.9484, allocations: 3.984 kB / 1.022 GB, free: 1.348 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.285e-06/0.9484, allocations: 3.938 kB / 1.022 GB, free: 1.344 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.88e-05/0.9485, allocations: 149.7 kB / 1.022 GB, free: 1.148 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.71e-07/0.9485, allocations: 0 / 1.022 GB, free: 1.148 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.962e-05/0.9485, allocations: 4 kB / 1.022 GB, free: 1.145 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.226e-06/0.9485, allocations: 3.953 kB / 1.022 GB, free: 1.141 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.046e-05/0.9486, allocations: 4 kB / 1.022 GB, free: 1.137 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.454e-06/0.9486, allocations: 3.984 kB / 1.022 GB, free: 1.133 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.9486, allocations: 0 / 1.022 GB, free: 1.133 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.747e-05/0.9486, allocations: 64.27 kB / 1.022 GB, free: 1.059 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 3.202e-05/0.9487, allocations: 85.12 kB / 1.022 GB, free: 0.957 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.253e-05/0.9487, allocations: 3.953 kB / 1.022 GB, free: 0.9531 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.134e-05/0.9487, allocations: 0 / 1.022 GB, free: 0.9531 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.409e-05/0.9488, allocations: 4 kB / 1.022 GB, free: 0.9492 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.204e-06/0.9488, allocations: 3.938 kB / 1.022 GB, free: 0.9453 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 3.661e-05/0.9488, allocations: 75.28 kB / 1.022 GB, free: 0.8711 MB / 0.6355 GB Notification: Performance of sort global known variables: time 1e-07/0.9488, allocations: 0 / 1.022 GB, free: 0.8711 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0001886/0.949, allocations: 8 kB / 1.022 GB, free: 0.8633 MB / 0.6355 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 () * 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 (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.0001591/0.9492, allocations: 107.2 kB / 1.022 GB, free: 0.75 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 6.445e-05/0.9492, allocations: 11.94 kB / 1.022 GB, free: 0.7422 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.9493, allocations: 0 / 1.022 GB, free: 0.7422 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 1.553e-05/0.9493, allocations: 7.938 kB / 1.022 GB, free: 0.7344 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.745e-05/0.9494, allocations: 0 / 1.022 GB, free: 0.7344 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001724/0.9495, allocations: 67.83 kB / 1.022 GB, free: 0.6523 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002528/0.9498, allocations: 0.6731 MB / 1.023 GB, free: 15.95 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 1.356e-05/0.9498, allocations: 0 / 1.023 GB, free: 15.95 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.353e-05/0.9499, allocations: 11.56 kB / 1.023 GB, free: 15.94 MB / 0.6511 GB Notification: Performance of SimCode: time 3.41e-07/0.9499, allocations: 0 / 1.023 GB, free: 15.94 MB / 0.6511 GB Notification: Performance of Templates: time 0.001911/0.9518, allocations: 308.2 kB / 1.023 GB, free: 15.65 MB / 0.6511 GB make -j1 -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","../files/Buildings_maint.7.0.x_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches