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.307/1.307, allocations: 251.9 MB / 266.9 MB, free: 11.07 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.001119/0.001119, allocations: 188 kB / 326.5 MB, free: 2.258 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.682/1.682, allocations: 205.4 MB / 0.5775 GB, free: 20.29 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.0008165/0.0008166, allocations: 92.38 kB / 0.6821 GB, free: 12.88 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0003084/0.0003084, allocations: 12.66 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1918/0.1921, allocations: 106.3 MB / 0.9001 GB, free: 63.93 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.153/0.3452, allocations: 131 MB / 1.028 GB, free: 12.76 MB / 0.6823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002294/0.3455, allocations: 79.94 kB / 1.028 GB, free: 12.68 MB / 0.6823 GB Notification: Performance of FrontEnd - DAE generated: time 0.001032/0.3465, allocations: 0.5201 MB / 1.029 GB, free: 12.16 MB / 0.6823 GB Notification: Performance of FrontEnd: time 1.693e-06/0.3465, allocations: 0 / 1.029 GB, free: 12.16 MB / 0.6823 GB Notification: Performance of Transformations before backend: time 4.298e-06/0.3465, allocations: 0 / 1.029 GB, free: 12.16 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002279/0.3468, allocations: 319.4 kB / 1.029 GB, free: 11.8 MB / 0.6823 GB Notification: Performance of prepare preOptimizeDAE: time 4.371e-05/0.3468, allocations: 11.97 kB / 1.029 GB, free: 11.79 MB / 0.6823 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.838e-05/0.3469, allocations: 4 kB / 1.029 GB, free: 11.78 MB / 0.6823 GB Notification: Performance of preOpt evaluateParameters (simulation): time 7.763e-05/0.3469, allocations: 167 kB / 1.029 GB, free: 11.58 MB / 0.6823 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.265e-05/0.347, allocations: 4 kB / 1.029 GB, free: 11.57 MB / 0.6823 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.145e-06/0.347, allocations: 3.938 kB / 1.029 GB, free: 11.57 MB / 0.6823 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.982e-05/0.3471, allocations: 29.7 kB / 1.029 GB, free: 11.54 MB / 0.6823 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.282e-06/0.3471, allocations: 0 / 1.029 GB, free: 11.54 MB / 0.6823 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.566e-06/0.3471, allocations: 3.984 kB / 1.029 GB, free: 11.53 MB / 0.6823 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.3471, allocations: 0 / 1.029 GB, free: 11.53 MB / 0.6823 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.049e-05/0.3472, allocations: 4 kB / 1.029 GB, free: 11.53 MB / 0.6823 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001375/0.3473, allocations: 157.5 kB / 1.029 GB, free: 11.32 MB / 0.6823 GB Notification: Performance of preOpt comSubExp (simulation): time 5.256e-05/0.3474, allocations: 34.53 kB / 1.029 GB, free: 11.28 MB / 0.6823 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001211/0.3475, allocations: 81.11 kB / 1.029 GB, free: 11.18 MB / 0.6823 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.857e-05/0.3475, allocations: 34.62 kB / 1.029 GB, free: 11.14 MB / 0.6823 GB Notification: Performance of pre-optimization done (n=2): time 1.052e-06/0.3475, allocations: 0 / 1.029 GB, free: 11.14 MB / 0.6823 GB Notification: Performance of matching and sorting (n=2): time 0.0001306/0.3477, allocations: 37.69 kB / 1.029 GB, free: 11.1 MB / 0.6823 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.517e-05/0.3477, allocations: 55.41 kB / 1.03 GB, free: 11.03 MB / 0.6823 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.218e-05/0.3477, allocations: 85 kB / 1.03 GB, free: 10.94 MB / 0.6823 GB Notification: Performance of collectPreVariables (initialization): time 1.226e-05/0.3478, allocations: 29.83 kB / 1.03 GB, free: 10.91 MB / 0.6823 GB Notification: Performance of collectInitialEqns (initialization): time 2.824e-05/0.3478, allocations: 84.08 kB / 1.03 GB, free: 10.82 MB / 0.6823 GB Notification: Performance of collectInitialBindings (initialization): time 1.952e-05/0.3478, allocations: 4 kB / 1.03 GB, free: 10.82 MB / 0.6823 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.954e-06/0.3478, allocations: 0 / 1.03 GB, free: 10.82 MB / 0.6823 GB Notification: Performance of setup shared object (initialization): time 0.0001018/0.3479, allocations: 310.8 kB / 1.03 GB, free: 10.5 MB / 0.6823 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.969e-06/0.3479, allocations: 0 / 1.03 GB, free: 10.5 MB / 0.6823 GB Notification: Performance of partitionIndependentBlocks (initialization): time 1.072e-05/0.348, allocations: 8 kB / 1.03 GB, free: 10.5 MB / 0.6823 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.913e-05/0.348, allocations: 3.984 kB / 1.03 GB, free: 10.49 MB / 0.6823 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.348, allocations: 4.062 kB / 1.03 GB, free: 10.49 MB / 0.6823 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.492e-05/0.3481, allocations: 37.66 kB / 1.03 GB, free: 10.45 MB / 0.6823 GB Notification: Performance of prepare postOptimizeDAE: time 1.34e-05/0.3481, allocations: 8 kB / 1.03 GB, free: 10.44 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.847e-06/0.3481, allocations: 0 / 1.03 GB, free: 10.44 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.106e-05/0.3481, allocations: 0 / 1.03 GB, free: 10.44 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.07e-05/0.3482, allocations: 4 kB / 1.03 GB, free: 10.43 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.3482, allocations: 3.984 kB / 1.03 GB, free: 10.43 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.471e-05/0.3482, allocations: 3.938 kB / 1.03 GB, free: 10.43 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.579e-06/0.3482, allocations: 0 / 1.03 GB, free: 10.43 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,n) * Number of discrete states: 0 () * Number of clocked 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 6.574e-05/0.3483, allocations: 121.8 kB / 1.03 GB, free: 10.3 MB / 0.6823 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.223e-06/0.3483, allocations: 3.953 kB / 1.03 GB, free: 10.29 MB / 0.6823 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.411e-05/0.3484, allocations: 48.72 kB / 1.03 GB, free: 10.24 MB / 0.6823 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.765e-06/0.3484, allocations: 3.984 kB / 1.03 GB, free: 10.23 MB / 0.6823 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.3484, allocations: 0 / 1.03 GB, free: 10.23 MB / 0.6823 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.3484, allocations: 0 / 1.03 GB, free: 10.23 MB / 0.6823 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.044e-05/0.3485, allocations: 141.7 kB / 1.03 GB, free: 10.05 MB / 0.6823 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.91e-07/0.3485, allocations: 3.938 kB / 1.03 GB, free: 10.04 MB / 0.6823 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.206e-05/0.3485, allocations: 7.984 kB / 1.03 GB, free: 10.04 MB / 0.6823 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.206e-06/0.3485, allocations: 3.953 kB / 1.03 GB, free: 10.03 MB / 0.6823 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.142e-06/0.3485, allocations: 8.031 kB / 1.03 GB, free: 10.02 MB / 0.6823 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.52e-07/0.3486, allocations: 0 / 1.03 GB, free: 10.02 MB / 0.6823 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.21e-07/0.3486, allocations: 0 / 1.03 GB, free: 10.02 MB / 0.6823 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.816e-05/0.3486, allocations: 65.06 kB / 1.03 GB, free: 9.941 MB / 0.6823 GB Notification: Performance of postOpt removeConstants (simulation): time 3.321e-05/0.3487, allocations: 77.11 kB / 1.031 GB, free: 9.848 MB / 0.6823 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.193e-05/0.3487, allocations: 3.953 kB / 1.031 GB, free: 9.844 MB / 0.6823 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.079e-05/0.3487, allocations: 0 / 1.031 GB, free: 9.844 MB / 0.6823 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.15e-05/0.3487, allocations: 12.03 kB / 1.031 GB, free: 9.832 MB / 0.6823 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.164e-06/0.3488, allocations: 0 / 1.031 GB, free: 9.832 MB / 0.6823 GB Notification: Performance of sorting global known variables: time 2.284e-05/0.3488, allocations: 75.28 kB / 1.031 GB, free: 9.758 MB / 0.6823 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3488, allocations: 0 / 1.031 GB, free: 9.758 MB / 0.6823 GB Notification: Performance of remove unused functions: time 0.0001758/0.349, allocations: 4 kB / 1.031 GB, free: 9.754 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,n) * Number of discrete states: 0 () * Number of clocked 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.0001379/0.3491, allocations: 111.2 kB / 1.031 GB, free: 9.637 MB / 0.6823 GB Notification: Performance of simCode: created initialization part: time 5.81e-05/0.3492, allocations: 11.94 kB / 1.031 GB, free: 9.625 MB / 0.6823 GB Notification: Performance of simCode: created event and clocks part: time 2.604e-06/0.3492, allocations: 4.062 kB / 1.031 GB, free: 9.621 MB / 0.6823 GB Notification: Performance of simCode: created simulation system equations: time 1.432e-05/0.3492, allocations: 8 kB / 1.031 GB, free: 9.613 MB / 0.6823 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 8.071e-05/0.3493, allocations: 7.75 kB / 1.031 GB, free: 9.609 MB / 0.6823 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001879/0.3495, allocations: 79.23 kB / 1.031 GB, free: 9.504 MB / 0.6823 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002056/0.3497, allocations: 0.677 MB / 1.032 GB, free: 8.801 MB / 0.6823 GB Notification: Performance of simCode: alias equations: time 1.462e-05/0.3497, allocations: 4 kB / 1.032 GB, free: 8.797 MB / 0.6823 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.328e-05/0.3497, allocations: 7.438 kB / 1.032 GB, free: 8.789 MB / 0.6823 GB Notification: Performance of SimCode: time 3.2e-07/0.3497, allocations: 0 / 1.032 GB, free: 8.789 MB / 0.6823 GB Notification: Performance of Templates: time 0.001829/0.3516, allocations: 300 kB / 1.032 GB, free: 8.496 MB / 0.6823 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