Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_9_Buildings.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.297/2.297, allocations: 390.3 MB / 405.3 MB, free: 13.43 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001108/0.001108, allocations: 185.1 kB / 498.1 MB, free: 5.676 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.628/1.628, allocations: 223.2 MB / 0.7949 GB, free: 17.92 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009044/0.0009045, allocations: 95.83 kB / 0.9346 GB, free: 6.199 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0004393/0.0004396, allocations: 11.31 kB / 1.084 GB, free: 221.3 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3435/0.344, allocations: 142.3 MB / 1.223 GB, free: 114.3 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2068/0.5508, allocations: 149.5 MB / 1.369 GB, free: 12.55 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000207/0.5511, allocations: 79.89 kB / 1.369 GB, free: 12.48 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.002727/0.5538, allocations: 0.9328 MB / 1.37 GB, free: 11.54 MB / 0.8698 GB Notification: Performance of FrontEnd: time 1.252e-06/0.5538, allocations: 4 kB / 1.37 GB, free: 11.54 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 8.205e-06/0.5538, allocations: 4 kB / 1.37 GB, free: 11.54 MB / 0.8698 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.0004285/0.5543, allocations: 351.2 kB / 1.37 GB, free: 11.14 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 4.591e-05/0.5543, allocations: 12.03 kB / 1.37 GB, free: 11.13 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.327e-05/0.5544, allocations: 0 / 1.37 GB, free: 11.13 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001346/0.5545, allocations: 167 kB / 1.37 GB, free: 10.93 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.426e-05/0.5545, allocations: 7.984 kB / 1.37 GB, free: 10.92 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.315e-05/0.5546, allocations: 4 kB / 1.37 GB, free: 10.92 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001969/0.5548, allocations: 65.59 kB / 1.37 GB, free: 10.85 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.536e-06/0.5548, allocations: 0 / 1.37 GB, free: 10.85 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.287e-05/0.5548, allocations: 7.938 kB / 1.37 GB, free: 10.84 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.5548, allocations: 0 / 1.37 GB, free: 10.84 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002023/0.555, allocations: 51.95 kB / 1.371 GB, free: 10.79 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004907/0.5555, allocations: 284.8 kB / 1.371 GB, free: 10.46 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003305/0.5559, allocations: 66.47 kB / 1.371 GB, free: 10.39 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001286/0.556, allocations: 81.11 kB / 1.371 GB, free: 10.29 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.902e-05/0.556, allocations: 38.7 kB / 1.371 GB, free: 10.24 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=3): time 1.262e-06/0.5561, allocations: 0 / 1.371 GB, free: 10.24 MB / 0.8698 GB Notification: Performance of matching and sorting (n=3): time 0.0004111/0.5565, allocations: 101.6 kB / 1.371 GB, free: 10.14 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.649e-05/0.5565, allocations: 55.41 kB / 1.371 GB, free: 10.07 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.499e-05/0.5566, allocations: 100.9 kB / 1.371 GB, free: 9.965 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 1.411e-05/0.5566, allocations: 29.64 kB / 1.371 GB, free: 9.93 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 5.669e-05/0.5567, allocations: 88.08 kB / 1.371 GB, free: 9.84 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.055e-05/0.5567, allocations: 11.89 kB / 1.371 GB, free: 9.828 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.721e-06/0.5567, allocations: 0 / 1.371 GB, free: 9.828 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001314/0.5569, allocations: 318.8 kB / 1.372 GB, free: 9.508 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.882e-05/0.557, allocations: 27.97 kB / 1.372 GB, free: 9.48 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.552e-05/0.5571, allocations: 23.98 kB / 1.372 GB, free: 9.457 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.339e-05/0.5572, allocations: 23.97 kB / 1.372 GB, free: 9.434 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.5572, allocations: 0 / 1.372 GB, free: 9.434 MB / 0.8698 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002377/0.5574, allocations: 85.66 kB / 1.372 GB, free: 9.344 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.834e-05/0.5574, allocations: 8 kB / 1.372 GB, free: 9.336 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.663e-06/0.5575, allocations: 0 / 1.372 GB, free: 9.336 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.5575, allocations: 0 / 1.372 GB, free: 9.336 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.028e-05/0.5576, allocations: 15.98 kB / 1.372 GB, free: 9.32 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.386e-06/0.5576, allocations: 4 kB / 1.372 GB, free: 9.316 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.73e-05/0.5577, allocations: 11.89 kB / 1.372 GB, free: 9.305 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.015e-06/0.5577, allocations: 7.953 kB / 1.372 GB, free: 9.297 MB / 0.8698 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 () * Number of clocked 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 8.99e-05/0.5578, allocations: 118.5 kB / 1.372 GB, free: 9.172 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.732e-05/0.5578, allocations: 0 / 1.372 GB, free: 9.172 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002898/0.5581, allocations: 93.66 kB / 1.372 GB, free: 9.07 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-06/0.5581, allocations: 0 / 1.372 GB, free: 9.07 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.5581, allocations: 0 / 1.372 GB, free: 9.07 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.5581, allocations: 0 / 1.372 GB, free: 9.07 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001828/0.5583, allocations: 169.7 kB / 1.372 GB, free: 8.855 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.5583, allocations: 3.984 kB / 1.372 GB, free: 8.852 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001151/0.5585, allocations: 15.98 kB / 1.372 GB, free: 8.836 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.5585, allocations: 3.938 kB / 1.372 GB, free: 8.832 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.087e-06/0.5585, allocations: 0 / 1.372 GB, free: 8.832 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.5585, allocations: 0 / 1.372 GB, free: 8.832 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.5585, allocations: 4 kB / 1.372 GB, free: 8.828 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002936/0.5588, allocations: 183.4 kB / 1.372 GB, free: 8.633 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 4.268e-05/0.5588, allocations: 88.95 kB / 1.372 GB, free: 8.527 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.456e-05/0.5589, allocations: 4 kB / 1.372 GB, free: 8.523 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.842e-05/0.559, allocations: 7.984 kB / 1.372 GB, free: 8.516 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.546e-05/0.559, allocations: 11.98 kB / 1.373 GB, free: 8.504 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.639e-06/0.559, allocations: 0 / 1.373 GB, free: 8.504 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 4.602e-05/0.5591, allocations: 79.28 kB / 1.373 GB, free: 8.426 MB / 0.8698 GB Notification: Performance of sort global known variables: time 1e-07/0.5591, allocations: 0 / 1.373 GB, free: 8.426 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.0002206/0.5593, allocations: 12 kB / 1.373 GB, free: 8.414 MB / 0.8698 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 () * Number of clocked 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.0001829/0.5595, allocations: 119 kB / 1.373 GB, free: 8.285 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.0002541/0.5598, allocations: 55.89 kB / 1.373 GB, free: 8.23 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.5598, allocations: 0 / 1.373 GB, free: 8.23 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.000108/0.5599, allocations: 27.98 kB / 1.373 GB, free: 8.203 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002024/0.5601, allocations: 12.89 kB / 1.373 GB, free: 8.191 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003381/0.5605, allocations: 124.6 kB / 1.373 GB, free: 8.039 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002836/0.5608, allocations: 0.6809 MB / 1.374 GB, free: 7.332 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 4.236e-05/0.5608, allocations: 8 kB / 1.374 GB, free: 7.324 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.89e-05/0.5608, allocations: 7.438 kB / 1.374 GB, free: 7.316 MB / 0.8698 GB Notification: Performance of SimCode: time 4.71e-07/0.5608, allocations: 0 / 1.374 GB, free: 7.316 MB / 0.8698 GB Notification: Performance of Templates: time 0.00297/0.5638, allocations: 0.5976 MB / 1.374 GB, free: 6.723 MB / 0.8698 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_9_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Examples_Factorial.csv","../files/Buildings_9_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches