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/ModelicaServices 4.0.0+maint.om/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/Buildings 9.1.2-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001349/0.001349, allocations: 99.55 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001462/0.001462, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.448/1.448, allocations: 223.2 MB / 239.9 MB, free: 5.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.2-maint.9.1.x/package.mo): time 2.512/2.512, allocations: 390.3 MB / 0.6653 GB, free: 2.918 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003948/0.0003954, allocations: 8 kB / 0.8145 GB, free: 14.23 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8809/0.8813, allocations: 142.3 MB / 0.9535 GB, free: 8.117 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.001475/0.8828, allocations: 1.216 MB / 0.9547 GB, free: 7.152 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002873/0.8831, allocations: 120.5 kB / 0.9548 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.958e-05/0.8832, allocations: 1.156 kB / 0.9548 GB, free: 7.059 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.429e-05/0.8832, allocations: 3.938 kB / 0.9548 GB, free: 7.055 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 4.333e-05/0.8832, allocations: 4.953 kB / 0.9548 GB, free: 7.051 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001846/0.8834, allocations: 17.23 kB / 0.9548 GB, free: 7.039 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 5.933e-05/0.8835, allocations: 17.34 kB / 0.9549 GB, free: 7.027 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000107/0.8836, allocations: 11.36 kB / 0.9549 GB, free: 7.02 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 4.446e-05/0.8837, allocations: 8.094 kB / 0.9549 GB, free: 7.016 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 5.539e-05/0.8837, allocations: 12.39 kB / 0.9549 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.342e-05/0.8837, allocations: 6.031 kB / 0.9549 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.643e-05/0.8838, allocations: 4.25 kB / 0.9549 GB, free: 7.004 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 1.296e-05/0.8838, allocations: 17 kB / 0.9549 GB, free: 6.988 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 2.123e-05/0.8839, allocations: 31.48 kB / 0.9549 GB, free: 6.953 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 8.017e-05/0.8839, allocations: 18.69 kB / 0.955 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.8839, allocations: 4 kB / 0.955 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.864e-06/0.884, allocations: 0 / 0.955 GB, free: 6.938 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 8.226e-06/0.884, allocations: 0 / 0.955 GB, free: 6.938 MB / 0.7169 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.000397/0.8844, allocations: 344.8 kB / 0.9553 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.434e-05/0.8844, allocations: 9.281 kB / 0.9553 GB, free: 6.574 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.485e-05/0.8845, allocations: 6.484 kB / 0.9553 GB, free: 6.57 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.206e-05/0.8846, allocations: 168.2 kB / 0.9555 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.895e-05/0.8846, allocations: 5.156 kB / 0.9555 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.486e-05/0.8846, allocations: 1.219 kB / 0.9555 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002046/0.8848, allocations: 61.58 kB / 0.9555 GB, free: 6.316 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.8848, allocations: 4 kB / 0.9555 GB, free: 6.312 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.347e-05/0.8849, allocations: 4 kB / 0.9555 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.8849, allocations: 1.844 kB / 0.9555 GB, free: 6.309 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001996/0.8851, allocations: 55.72 kB / 0.9556 GB, free: 6.285 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000331/0.8854, allocations: 265.1 kB / 0.9558 GB, free: 5.988 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003164/0.8857, allocations: 67.25 kB / 0.9559 GB, free: 5.941 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001009/0.8859, allocations: 79.89 kB / 0.956 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.557e-05/0.8859, allocations: 35.53 kB / 0.956 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.392e-06/0.8859, allocations: 0 / 0.956 GB, free: 5.805 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0004061/0.8863, allocations: 116.3 kB / 0.9561 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.749e-05/0.8863, allocations: 56.53 kB / 0.9562 GB, free: 5.668 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.869e-05/0.8864, allocations: 102.3 kB / 0.9563 GB, free: 5.562 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 8.416e-06/0.8864, allocations: 26.95 kB / 0.9563 GB, free: 5.531 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 3.321e-05/0.8865, allocations: 85.34 kB / 0.9564 GB, free: 5.445 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.494e-05/0.8865, allocations: 9.062 kB / 0.9564 GB, free: 5.438 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.638e-06/0.8865, allocations: 4 kB / 0.9564 GB, free: 5.434 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.405e-05/0.8865, allocations: 312 kB / 0.9567 GB, free: 5.121 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.617e-05/0.8866, allocations: 31.38 kB / 0.9567 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.391e-05/0.8867, allocations: 23.39 kB / 0.9567 GB, free: 5.098 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 9.017e-05/0.8868, allocations: 24.02 kB / 0.9568 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.8868, allocations: 0 / 0.9568 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002123/0.887, allocations: 93.83 kB / 0.9569 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.642e-05/0.8871, allocations: 4.75 kB / 0.9569 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.8871, allocations: 0 / 0.9569 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.411e-05/0.8871, allocations: 1.5 kB / 0.9569 GB, free: 5.027 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.324e-05/0.8872, allocations: 21.22 kB / 0.9569 GB, free: 5.016 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.091e-06/0.8872, allocations: 3.938 kB / 0.9569 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.78e-05/0.8873, allocations: 6.531 kB / 0.9569 GB, free: 5.012 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.321e-06/0.8873, allocations: 1.188 kB / 0.9569 GB, free: 5.012 MB / 0.7169 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,rea2Int.y) * 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 5.787e-05/0.8873, allocations: 120.2 kB / 0.957 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.295e-05/0.8874, allocations: 1.344 kB / 0.957 GB, free: 4.887 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002645/0.8876, allocations: 92.64 kB / 0.9571 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.8876, allocations: 0 / 0.9571 GB, free: 4.824 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.971e-06/0.8877, allocations: 5.109 kB / 0.9571 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.775e-06/0.8877, allocations: 0 / 0.9571 GB, free: 4.82 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001275/0.8878, allocations: 167.4 kB / 0.9573 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.8878, allocations: 1.094 kB / 0.9573 GB, free: 4.613 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.681e-05/0.8879, allocations: 18.14 kB / 0.9573 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.8879, allocations: 0 / 0.9573 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.075e-06/0.8879, allocations: 1.156 kB / 0.9573 GB, free: 4.605 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.124e-06/0.8879, allocations: 3.938 kB / 0.9573 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.422e-06/0.8879, allocations: 1.062 kB / 0.9573 GB, free: 4.602 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002445/0.8882, allocations: 180.4 kB / 0.9575 GB, free: 4.445 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 2.353e-05/0.8882, allocations: 90.77 kB / 0.9576 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.52e-05/0.8882, allocations: 0 / 0.9576 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.368e-05/0.8883, allocations: 6.625 kB / 0.9576 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.71e-05/0.8884, allocations: 10.27 kB / 0.9576 GB, free: 4.332 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.199e-06/0.8884, allocations: 5.094 kB / 0.9576 GB, free: 4.328 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 2.468e-05/0.8884, allocations: 90.97 kB / 0.9577 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1e-07/0.8884, allocations: 0 / 0.9577 GB, free: 4.242 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002304/0.8887, allocations: 11.45 kB / 0.9577 GB, free: 4.238 MB / 0.7169 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,rea2Int.y) * 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.000134/0.8888, allocations: 105.8 kB / 0.9578 GB, free: 4.145 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002254/0.889, allocations: 58.52 kB / 0.9578 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.874e-06/0.889, allocations: 1.125 kB / 0.9578 GB, free: 4.121 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 9.662e-05/0.8891, allocations: 31.03 kB / 0.9579 GB, free: 4.109 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001922/0.8893, allocations: 6.906 kB / 0.9579 GB, free: 4.105 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000255/0.8896, allocations: 119.6 kB / 0.958 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.953e-05/0.8897, allocations: 0.6799 MB / 0.9586 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 2.986e-05/0.8897, allocations: 2.562 kB / 0.9586 GB, free: 3.281 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.202e-05/0.8898, allocations: 12.33 kB / 0.9587 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of SimCode: time 2.51e-07/0.8898, allocations: 1.438 kB / 0.9587 GB, free: 3.27 MB / 0.7169 GB Notification: Performance of Templates: time 0.002852/0.8926, allocations: 0.5911 MB / 0.9592 GB, free: 2.965 MB / 0.7169 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