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.398/1.398, allocations: 251.9 MB / 266.9 MB, free: 11.01 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001162/0.001162, allocations: 183.4 kB / 326.5 MB, free: 2.246 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.599/1.599, allocations: 205.4 MB / 0.5775 GB, free: 20.28 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.0009069/0.0009069, allocations: 94.34 kB / 0.6821 GB, free: 12.89 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0002949/0.0002949, allocations: 11.97 kB / 0.7962 GB, free: 135 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1805/0.1808, allocations: 106.3 MB / 0.9001 GB, free: 63.92 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1486/0.3294, allocations: 132 MB / 1.029 GB, free: 11.79 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000205/0.3297, allocations: 67.97 kB / 1.029 GB, free: 11.72 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.002518/0.3322, allocations: 0.9334 MB / 1.03 GB, free: 10.78 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.893e-06/0.3322, allocations: 0 / 1.03 GB, free: 10.78 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 6.151e-06/0.3322, allocations: 0 / 1.03 GB, free: 10.78 MB / 0.6823 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.0003469/0.3326, allocations: 359.2 kB / 1.03 GB, free: 10.38 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 3.354e-05/0.3326, allocations: 8.031 kB / 1.03 GB, free: 10.38 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.816e-05/0.3327, allocations: 0 / 1.03 GB, free: 10.38 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.097e-05/0.3328, allocations: 170.9 kB / 1.03 GB, free: 10.17 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.94e-05/0.3328, allocations: 0 / 1.03 GB, free: 10.17 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.34e-05/0.3328, allocations: 4 kB / 1.03 GB, free: 10.16 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001735/0.333, allocations: 65.66 kB / 1.031 GB, free: 10.09 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.774e-06/0.333, allocations: 0 / 1.031 GB, free: 10.09 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.377e-06/0.333, allocations: 4 kB / 1.031 GB, free: 10.09 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.647e-06/0.333, allocations: 0 / 1.031 GB, free: 10.09 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001813/0.3332, allocations: 55.89 kB / 1.031 GB, free: 10.04 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000419/0.3337, allocations: 284.9 kB / 1.031 GB, free: 9.707 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003025/0.334, allocations: 58.55 kB / 1.031 GB, free: 9.641 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001062/0.3341, allocations: 89.25 kB / 1.031 GB, free: 9.535 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.892e-05/0.3341, allocations: 34.5 kB / 1.031 GB, free: 9.492 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=3): time 2.364e-06/0.3341, allocations: 3.984 kB / 1.031 GB, free: 9.488 MB / 0.6823 GB Notification: Performance of matching and sorting (n=3): time 0.0004027/0.3345, allocations: 113.6 kB / 1.031 GB, free: 9.371 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.367e-05/0.3346, allocations: 51.41 kB / 1.031 GB, free: 9.309 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.692e-05/0.3346, allocations: 89 kB / 1.031 GB, free: 9.215 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.376e-05/0.3347, allocations: 29.7 kB / 1.031 GB, free: 9.18 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 4.037e-05/0.3347, allocations: 84.05 kB / 1.031 GB, free: 9.094 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 1.313e-05/0.3347, allocations: 7.938 kB / 1.031 GB, free: 9.086 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.737e-06/0.3347, allocations: 0 / 1.031 GB, free: 9.086 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 9.187e-05/0.3348, allocations: 326.8 kB / 1.032 GB, free: 8.758 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.864e-05/0.3349, allocations: 19.98 kB / 1.032 GB, free: 8.738 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.166e-05/0.335, allocations: 27.97 kB / 1.032 GB, free: 8.711 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.859e-05/0.3351, allocations: 31.92 kB / 1.032 GB, free: 8.68 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.3351, allocations: 0 / 1.032 GB, free: 8.68 MB / 0.6823 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002065/0.3353, allocations: 85.56 kB / 1.032 GB, free: 8.59 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.278e-05/0.3353, allocations: 4 kB / 1.032 GB, free: 8.586 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.098e-06/0.3354, allocations: 0 / 1.032 GB, free: 8.586 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.131e-05/0.3354, allocations: 4 kB / 1.032 GB, free: 8.582 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.674e-05/0.3355, allocations: 19.98 kB / 1.032 GB, free: 8.562 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.809e-06/0.3355, allocations: 0 / 1.032 GB, free: 8.562 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.196e-05/0.3355, allocations: 11.98 kB / 1.032 GB, free: 8.551 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.413e-06/0.3356, allocations: 3.938 kB / 1.032 GB, free: 8.547 MB / 0.6823 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 7.121e-05/0.3356, allocations: 109.8 kB / 1.032 GB, free: 8.43 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.369e-05/0.3357, allocations: 8 kB / 1.032 GB, free: 8.422 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002636/0.3359, allocations: 93.08 kB / 1.032 GB, free: 8.32 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.559e-06/0.336, allocations: 4 kB / 1.032 GB, free: 8.316 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.336, allocations: 3.984 kB / 1.032 GB, free: 8.312 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.384e-06/0.336, allocations: 0 / 1.032 GB, free: 8.312 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001439/0.3361, allocations: 161.6 kB / 1.032 GB, free: 8.105 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.484e-06/0.3361, allocations: 4 kB / 1.032 GB, free: 8.102 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.889e-05/0.3362, allocations: 11.98 kB / 1.032 GB, free: 8.09 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.3362, allocations: 0 / 1.032 GB, free: 8.09 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.142e-05/0.3362, allocations: 3.984 kB / 1.032 GB, free: 8.086 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.3363, allocations: 0 / 1.032 GB, free: 8.086 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.02e-07/0.3363, allocations: 4 kB / 1.032 GB, free: 8.082 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002633/0.3365, allocations: 191.3 kB / 1.032 GB, free: 7.879 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.505e-05/0.3366, allocations: 85.59 kB / 1.033 GB, free: 7.777 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.3e-05/0.3366, allocations: 0 / 1.033 GB, free: 7.777 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.024e-05/0.3367, allocations: 11.98 kB / 1.033 GB, free: 7.766 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.601e-05/0.3367, allocations: 7.984 kB / 1.033 GB, free: 7.758 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.318e-06/0.3368, allocations: 4 kB / 1.033 GB, free: 7.754 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 3.833e-05/0.3368, allocations: 87.27 kB / 1.033 GB, free: 7.668 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3368, allocations: 0 / 1.033 GB, free: 7.668 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0002107/0.337, allocations: 8 kB / 1.033 GB, free: 7.66 MB / 0.6823 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.0001551/0.3372, allocations: 107.9 kB / 1.033 GB, free: 7.547 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 0.0002265/0.3374, allocations: 59.95 kB / 1.033 GB, free: 7.488 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.3374, allocations: 0 / 1.033 GB, free: 7.488 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 0.0001092/0.3375, allocations: 35.91 kB / 1.033 GB, free: 7.453 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001823/0.3377, allocations: 6.359 kB / 1.033 GB, free: 7.449 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002649/0.338, allocations: 120.7 kB / 1.033 GB, free: 7.301 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001997/0.3382, allocations: 0.6809 MB / 1.034 GB, free: 6.594 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 2.961e-05/0.3383, allocations: 3.938 kB / 1.034 GB, free: 6.59 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.36e-05/0.3383, allocations: 19.42 kB / 1.034 GB, free: 6.57 MB / 0.6823 GB Notification: Performance of SimCode: time 2.3e-07/0.3383, allocations: 0 / 1.034 GB, free: 6.57 MB / 0.6823 GB Notification: Performance of Templates: time 0.002353/0.3407, allocations: 0.5947 MB / 1.034 GB, free: 5.98 MB / 0.6823 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