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.011/2.011, allocations: 387.4 MB / 394.9 MB, free: 13.36 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.00103/0.00103, allocations: 184.6 kB / 487.4 MB, free: 5.078 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.338/1.338, allocations: 221.5 MB / 0.7824 GB, free: 1.004 MB / 0.5417 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009226/0.0009226, allocations: 91.67 kB / 0.9219 GB, free: 2.246 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 2.358e-05/2.36e-05, allocations: 4 kB / 1.067 GB, free: 185.7 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.254/0.254, allocations: 142.4 MB / 1.206 GB, free: 43.96 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8233/1.077, allocations: 148.8 MB / 1.351 GB, free: 18.51 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002262/1.078, allocations: 67.97 kB / 1.351 GB, free: 18.51 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.003408/1.081, allocations: 0.9399 MB / 1.352 GB, free: 34.17 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.953e-06/1.081, allocations: 0 / 1.352 GB, free: 34.17 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 8.305e-06/1.081, allocations: 0 / 1.352 GB, free: 34.17 MB / 0.8386 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.0003593/1.081, allocations: 347.8 kB / 1.353 GB, free: 33.82 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/1.082, allocations: 11.53 kB / 1.353 GB, free: 33.82 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.389e-05/1.082, allocations: 4.531 kB / 1.353 GB, free: 33.81 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.627e-05/1.082, allocations: 172.2 kB / 1.353 GB, free: 33.61 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.163e-05/1.082, allocations: 0 / 1.353 GB, free: 33.61 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.27e-05/1.082, allocations: 0 / 1.353 GB, free: 33.61 MB / 0.8386 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.34e-05/1.082, allocations: 22.28 kB / 1.353 GB, free: 33.61 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.842e-05/1.082, allocations: 41.27 kB / 1.353 GB, free: 33.58 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.394e-06/1.082, allocations: 0 / 1.353 GB, free: 33.58 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.031e-05/1.082, allocations: 0.75 kB / 1.353 GB, free: 33.58 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/1.082, allocations: 4 kB / 1.353 GB, free: 33.57 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004054/1.082, allocations: 256.4 kB / 1.353 GB, free: 33.34 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002229/1.083, allocations: 49.73 kB / 1.353 GB, free: 33.31 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.974e-05/1.083, allocations: 17.25 kB / 1.353 GB, free: 33.3 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001029/1.083, allocations: 82.3 kB / 1.353 GB, free: 33.21 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.498e-05/1.083, allocations: 31.31 kB / 1.353 GB, free: 33.17 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/1.083, allocations: 3.938 kB / 1.353 GB, free: 33.16 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3): time 0.0001847/1.083, allocations: 43.97 kB / 1.353 GB, free: 33.13 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 1.893e-05/1.083, allocations: 51.97 kB / 1.353 GB, free: 33.07 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.798e-05/1.083, allocations: 93.81 kB / 1.353 GB, free: 32.98 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 9.578e-06/1.083, allocations: 29.7 kB / 1.353 GB, free: 32.95 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 6.252e-05/1.083, allocations: 92.91 kB / 1.354 GB, free: 32.86 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.257e-05/1.083, allocations: 8.5 kB / 1.354 GB, free: 32.85 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.368e-06/1.083, allocations: 0 / 1.354 GB, free: 32.85 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 0.0001347/1.083, allocations: 316.2 kB / 1.354 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.883e-05/1.083, allocations: 7.594 kB / 1.354 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.397e-05/1.083, allocations: 8.078 kB / 1.354 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.878e-05/1.083, allocations: 9.641 kB / 1.354 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/1.083, allocations: 0 / 1.354 GB, free: 32.54 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3) (initialization): time 8.634e-05/1.083, allocations: 55.38 kB / 1.354 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/1.084, allocations: 4.547 kB / 1.354 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.635e-06/1.084, allocations: 3.875 kB / 1.354 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.546e-05/1.084, allocations: 0 / 1.354 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.158e-05/1.084, allocations: 11.33 kB / 1.354 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.272e-06/1.084, allocations: 0 / 1.354 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.293e-05/1.084, allocations: 13.22 kB / 1.354 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.264e-06/1.084, allocations: 0.5625 kB / 1.354 GB, free: 32.5 MB / 0.8386 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 7.3e-05/1.084, allocations: 113.5 kB / 1.354 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.076e-05/1.084, allocations: 4.312 kB / 1.354 GB, free: 32.38 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000144/1.084, allocations: 60.05 kB / 1.354 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-06/1.084, allocations: 0 / 1.354 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.809e-06/1.084, allocations: 0 / 1.354 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.2e-06/1.084, allocations: 4.656 kB / 1.354 GB, free: 32.33 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001203/1.084, allocations: 147.5 kB / 1.354 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.31e-07/1.084, allocations: 0 / 1.354 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.191e-05/1.084, allocations: 22.75 kB / 1.354 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/1.084, allocations: 0.7031 kB / 1.354 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.037e-06/1.084, allocations: 0 / 1.354 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.973e-06/1.084, allocations: 0.5156 kB / 1.354 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/1.084, allocations: 0 / 1.354 GB, free: 32.16 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000136/1.084, allocations: 146.7 kB / 1.354 GB, free: 32.03 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 2.426e-05/1.084, allocations: 81.77 kB / 1.355 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.398e-05/1.084, allocations: 0 / 1.355 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.924e-05/1.085, allocations: 14.44 kB / 1.355 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.036e-05/1.085, allocations: 3.469 kB / 1.355 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.757e-06/1.085, allocations: 3.844 kB / 1.355 GB, free: 31.93 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 4.141e-05/1.085, allocations: 82.88 kB / 1.355 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.3e-07/1.085, allocations: 0 / 1.355 GB, free: 31.85 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0002147/1.085, allocations: 12.39 kB / 1.355 GB, free: 31.85 MB / 0.8386 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.000149/1.085, allocations: 108.3 kB / 1.355 GB, free: 31.76 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 8.524e-05/1.085, allocations: 24.7 kB / 1.355 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/1.085, allocations: 0 / 1.355 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 2.96e-05/1.085, allocations: 16.97 kB / 1.355 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001721/1.085, allocations: 0.6562 kB / 1.355 GB, free: 31.75 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00021/1.086, allocations: 67.91 kB / 1.355 GB, free: 31.68 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003094/1.086, allocations: 0.6815 MB / 1.355 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 3.726e-05/1.086, allocations: 8.469 kB / 1.356 GB, free: 30.98 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.46e-05/1.086, allocations: 8.234 kB / 1.356 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of SimCode: time 2.5e-07/1.086, allocations: 3.938 kB / 1.356 GB, free: 30.97 MB / 0.8386 GB Notification: Performance of Templates: time 0.00271/1.089, allocations: 0.5631 MB / 1.356 GB, free: 30.92 MB / 0.8386 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