Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo) Running command: translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Factorial") translateModel(Buildings.Utilities.Math.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac.y",fileNamePrefix="Buildings_latest_Buildings.Utilities.Math.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.256/2.256, allocations: 393.5 MB / 408.4 MB, free: 10.98 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.001072/0.001072, allocations: 176 kB / 0.4902 GB, free: 2.234 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.546/1.546, allocations: 223.1 MB / 0.7992 GB, free: 14.76 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.001363/0.001363, allocations: 106.8 kB / 0.9396 GB, free: 1.902 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003771/0.0003769, allocations: 10.28 kB / 1.09 GB, free: 216.2 MB / 0.823 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3325/0.3329, allocations: 143 MB / 1.229 GB, free: 105.7 MB / 0.823 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1972/0.5302, allocations: 150.3 MB / 1.376 GB, free: 3.203 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003071/0.5306, allocations: 71.95 kB / 1.376 GB, free: 3.133 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.003668/0.5343, allocations: 0.942 MB / 1.377 GB, free: 2.188 MB / 0.8698 GB Notification: Performance of FrontEnd: time 4.278e-06/0.5343, allocations: 0 / 1.377 GB, free: 2.188 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 1.125e-05/0.5344, allocations: 0 / 1.377 GB, free: 2.188 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.000646/0.535, allocations: 351.3 kB / 1.377 GB, free: 1.797 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 7.383e-05/0.5351, allocations: 12.56 kB / 1.377 GB, free: 1.785 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.288e-05/0.5352, allocations: 7.891 kB / 1.377 GB, free: 1.777 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001989/0.5354, allocations: 171 kB / 1.378 GB, free: 1.57 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.145e-05/0.5354, allocations: 4 kB / 1.378 GB, free: 1.566 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.897e-05/0.5355, allocations: 0 / 1.378 GB, free: 1.566 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002558/0.5357, allocations: 61.67 kB / 1.378 GB, free: 1.5 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.309e-05/0.5358, allocations: 0 / 1.378 GB, free: 1.5 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.953e-05/0.5358, allocations: 4 kB / 1.378 GB, free: 1.496 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.388e-06/0.5358, allocations: 3.984 kB / 1.378 GB, free: 1.492 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002293/0.536, allocations: 43.97 kB / 1.378 GB, free: 1.449 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006611/0.5367, allocations: 288.9 kB / 1.378 GB, free: 1.117 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004045/0.5371, allocations: 66.47 kB / 1.378 GB, free: 1.043 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001815/0.5373, allocations: 77.11 kB / 1.378 GB, free: 0.9492 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.518e-05/0.5374, allocations: 38.62 kB / 1.378 GB, free: 0.9023 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=3): time 2.705e-06/0.5374, allocations: 0 / 1.378 GB, free: 0.9023 MB / 0.8698 GB Notification: Performance of matching and sorting (n=3): time 0.0005127/0.5379, allocations: 117.5 kB / 1.378 GB, free: 0.7812 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.14e-05/0.538, allocations: 51.41 kB / 1.378 GB, free: 0.7188 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.892e-05/0.5381, allocations: 104.9 kB / 1.378 GB, free: 0.6094 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 2.082e-05/0.5381, allocations: 25.7 kB / 1.378 GB, free: 0.5781 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 7.359e-05/0.5382, allocations: 80.14 kB / 1.378 GB, free: 0.4961 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 2.582e-05/0.5382, allocations: 7.906 kB / 1.378 GB, free: 500 kB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.929e-06/0.5382, allocations: 7.938 kB / 1.378 GB, free: 492 kB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001558/0.5384, allocations: 314.8 kB / 1.379 GB, free: 168 kB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001082/0.5385, allocations: 23.97 kB / 1.379 GB, free: 144 kB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.109e-05/0.5386, allocations: 23.98 kB / 1.379 GB, free: 120 kB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001113/0.5387, allocations: 23.98 kB / 1.379 GB, free: 96 kB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.855e-06/0.5387, allocations: 3.984 kB / 1.379 GB, free: 92 kB / 0.8698 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002818/0.539, allocations: 81.66 kB / 1.379 GB, free: 4 kB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 4.986e-05/0.5391, allocations: 11.98 kB / 1.379 GB, free: 15.99 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.5391, allocations: 4 kB / 1.379 GB, free: 15.98 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.478e-05/0.5391, allocations: 0 / 1.379 GB, free: 15.98 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.301e-05/0.5392, allocations: 11.94 kB / 1.379 GB, free: 15.98 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.166e-06/0.5392, allocations: 0 / 1.379 GB, free: 15.98 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.542e-05/0.5393, allocations: 15.92 kB / 1.379 GB, free: 15.96 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.846e-06/0.5393, allocations: 3.953 kB / 1.379 GB, free: 15.96 MB / 0.8855 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 0.0001072/0.5394, allocations: 117.8 kB / 1.379 GB, free: 15.83 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.874e-05/0.5395, allocations: 0 / 1.379 GB, free: 15.83 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002932/0.5398, allocations: 93.05 kB / 1.379 GB, free: 15.73 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.5398, allocations: 0 / 1.379 GB, free: 15.73 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.5398, allocations: 0 / 1.379 GB, free: 15.73 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.928e-06/0.5398, allocations: 4 kB / 1.379 GB, free: 15.73 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001929/0.54, allocations: 169.6 kB / 1.379 GB, free: 15.52 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.54, allocations: 3.938 kB / 1.379 GB, free: 15.51 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.661e-05/0.5401, allocations: 19.98 kB / 1.379 GB, free: 15.49 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.717e-06/0.5401, allocations: 0 / 1.379 GB, free: 15.49 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.02e-05/0.5401, allocations: 0 / 1.379 GB, free: 15.49 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.5402, allocations: 0 / 1.379 GB, free: 15.49 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.5402, allocations: 0 / 1.379 GB, free: 15.49 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003027/0.5405, allocations: 185.2 kB / 1.38 GB, free: 15.3 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 4.55e-05/0.5405, allocations: 85.05 kB / 1.38 GB, free: 15.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.876e-05/0.5406, allocations: 0.6094 kB / 1.38 GB, free: 15.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.941e-05/0.5407, allocations: 15.92 kB / 1.38 GB, free: 15.18 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.816e-05/0.5407, allocations: 8 kB / 1.38 GB, free: 15.17 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.999e-06/0.5407, allocations: 0 / 1.38 GB, free: 15.17 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 5.555e-05/0.5408, allocations: 87.25 kB / 1.38 GB, free: 15.09 MB / 0.8855 GB Notification: Performance of sort global known variables: time 3.1e-07/0.5408, allocations: 0 / 1.38 GB, free: 15.09 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002342/0.541, allocations: 12 kB / 1.38 GB, free: 15.07 MB / 0.8855 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.0002108/0.5413, allocations: 112 kB / 1.38 GB, free: 14.95 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0002521/0.5415, allocations: 55.94 kB / 1.38 GB, free: 14.9 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 2.194e-06/0.5415, allocations: 0 / 1.38 GB, free: 14.9 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.00011/0.5416, allocations: 27.98 kB / 1.38 GB, free: 14.87 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002168/0.5419, allocations: 17.98 kB / 1.38 GB, free: 14.86 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003353/0.5422, allocations: 112.7 kB / 1.38 GB, free: 14.72 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002805/0.5425, allocations: 0.6887 MB / 1.381 GB, free: 14 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 4.063e-05/0.5426, allocations: 4 kB / 1.381 GB, free: 14 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.808e-05/0.5426, allocations: 11.38 kB / 1.381 GB, free: 13.99 MB / 0.8855 GB Notification: Performance of SimCode: time 2.31e-07/0.5426, allocations: 4 kB / 1.381 GB, free: 13.98 MB / 0.8855 GB Notification: Performance of Templates: time 0.002962/0.5456, allocations: 0.5863 MB / 1.381 GB, free: 13.4 MB / 0.8855 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Examples.Factorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Factorial.csv","../files/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches