Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.Math.Functions.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.Functions.Examples.Factorial,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|fac",fileNamePrefix="Buildings_9_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_9_Buildings.Utilities.Math.Functions.Examples.Factorial") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001109/0.001109, allocations: 99.86 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.0009534/0.0009535, allocations: 177.3 kB / 15.95 MB, free: 216 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.431/1.431, allocations: 223.2 MB / 239.9 MB, free: 5.438 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.488/2.488, allocations: 390.3 MB / 0.6653 GB, free: 2.965 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0006721/0.0006726, allocations: 12 kB / 0.8145 GB, free: 14.3 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8208/0.8215, allocations: 142.3 MB / 0.9535 GB, free: 8.102 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.000764/0.8223, allocations: 310.4 kB / 0.9538 GB, free: 7.867 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0002104/0.8226, allocations: 43.81 kB / 0.9539 GB, free: 7.836 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.035e-05/0.8226, allocations: 0 / 0.9539 GB, free: 7.836 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 1.246e-05/0.8226, allocations: 0 / 0.9539 GB, free: 7.836 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 6.141e-06/0.8226, allocations: 1.688 kB / 0.9539 GB, free: 7.836 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001814/0.8228, allocations: 18.88 kB / 0.9539 GB, free: 7.82 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 3.813e-05/0.8229, allocations: 0 / 0.9539 GB, free: 7.82 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 5.267e-05/0.8229, allocations: 1.656 kB / 0.9539 GB, free: 7.82 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 1.557e-05/0.8229, allocations: 1.719 kB / 0.9539 GB, free: 7.82 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 2.962e-05/0.823, allocations: 7.938 kB / 0.9539 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.205e-05/0.823, allocations: 1.312 kB / 0.9539 GB, free: 7.812 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 6.044e-05/0.8231, allocations: 6.703 kB / 0.9539 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 6.292e-06/0.8231, allocations: 1.281 kB / 0.9539 GB, free: 7.809 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 1.941e-05/0.8231, allocations: 25.7 kB / 0.9539 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 5.576e-05/0.8232, allocations: 3.031 kB / 0.9539 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 2.665e-06/0.8232, allocations: 0 / 0.9539 GB, free: 7.777 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.653e-06/0.8232, allocations: 4 kB / 0.9539 GB, free: 7.773 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 4.478e-06/0.8232, allocations: 0.9375 kB / 0.9539 GB, free: 7.773 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0002027/0.8234, allocations: 317.6 kB / 0.9542 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.8234, allocations: 10.62 kB / 0.9543 GB, free: 7.418 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.618e-05/0.8235, allocations: 3.953 kB / 0.9543 GB, free: 7.414 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 4.77e-05/0.8235, allocations: 159.1 kB / 0.9544 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.237e-05/0.8235, allocations: 1.375 kB / 0.9544 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.724e-06/0.8235, allocations: 0 / 0.9544 GB, free: 7.219 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.953e-05/0.8236, allocations: 37.06 kB / 0.9544 GB, free: 7.18 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.121e-06/0.8236, allocations: 3.938 kB / 0.9544 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.02e-05/0.8237, allocations: 1.062 kB / 0.9544 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.8237, allocations: 0 / 0.9544 GB, free: 7.176 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.864e-05/0.8237, allocations: 10.64 kB / 0.9545 GB, free: 7.168 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 9.856e-05/0.8238, allocations: 148.2 kB / 0.9546 GB, free: 6.977 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 4.148e-05/0.8239, allocations: 32.06 kB / 0.9546 GB, free: 6.941 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001404/0.824, allocations: 79.55 kB / 0.9547 GB, free: 6.848 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.703e-05/0.824, allocations: 36 kB / 0.9547 GB, free: 6.805 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=2): time 1.032e-06/0.824, allocations: 3.938 kB / 0.9547 GB, free: 6.801 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2): time 0.0001467/0.8242, allocations: 49.42 kB / 0.9548 GB, free: 6.754 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.15e-05/0.8242, allocations: 52.25 kB / 0.9548 GB, free: 6.691 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 1.91e-05/0.8243, allocations: 95.23 kB / 0.9549 GB, free: 6.59 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 6.312e-06/0.8243, allocations: 25.7 kB / 0.955 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 9.768e-06/0.8243, allocations: 80.14 kB / 0.955 GB, free: 6.477 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.608e-05/0.8243, allocations: 5.062 kB / 0.955 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.164e-06/0.8243, allocations: 0 / 0.955 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.41e-05/0.8244, allocations: 316 kB / 0.9553 GB, free: 6.156 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.175e-05/0.8244, allocations: 10.52 kB / 0.9553 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.143e-06/0.8244, allocations: 1.562 kB / 0.9553 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 1.726e-05/0.8244, allocations: 2.125 kB / 0.9554 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.8244, allocations: 0 / 0.9554 GB, free: 6.148 MB / 0.7169 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.132e-05/0.8245, allocations: 41.42 kB / 0.9554 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.216e-05/0.8245, allocations: 6.875 kB / 0.9554 GB, free: 6.109 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.447e-06/0.8245, allocations: 4 kB / 0.9554 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.115e-05/0.8245, allocations: 0 / 0.9554 GB, free: 6.105 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.442e-05/0.8246, allocations: 8.016 kB / 0.9554 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.879e-06/0.8246, allocations: 0 / 0.9554 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.377e-05/0.8246, allocations: 0 / 0.9554 GB, free: 6.102 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.058e-06/0.8246, allocations: 1.375 kB / 0.9554 GB, free: 6.102 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,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 4.448e-05/0.8247, allocations: 111.2 kB / 0.9555 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.953e-06/0.8247, allocations: 1.5 kB / 0.9555 GB, free: 5.984 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.622e-05/0.8248, allocations: 53.06 kB / 0.9556 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.956e-06/0.8248, allocations: 1.344 kB / 0.9556 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.107e-06/0.8248, allocations: 0 / 0.9556 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.8248, allocations: 0 / 0.9556 GB, free: 5.934 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.586e-05/0.8249, allocations: 152.5 kB / 0.9557 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.8249, allocations: 0 / 0.9557 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.034e-05/0.8249, allocations: 2.781 kB / 0.9557 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.8249, allocations: 0 / 0.9557 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.53e-06/0.8249, allocations: 1.125 kB / 0.9557 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.162e-06/0.8249, allocations: 0 / 0.9557 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.8249, allocations: 1.688 kB / 0.9557 GB, free: 5.738 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 5.992e-05/0.825, allocations: 73.08 kB / 0.9558 GB, free: 5.656 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 1.86e-05/0.825, allocations: 82.45 kB / 0.9559 GB, free: 5.559 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.079e-05/0.825, allocations: 7.938 kB / 0.9559 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.042e-05/0.825, allocations: 0 / 0.9559 GB, free: 5.551 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.428e-05/0.8251, allocations: 5.5 kB / 0.9559 GB, free: 5.547 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.194e-06/0.8251, allocations: 5.281 kB / 0.9559 GB, free: 5.543 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 1.41e-05/0.8251, allocations: 79.31 kB / 0.956 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of sort global known variables: time 9e-08/0.8251, allocations: 1.156 kB / 0.956 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002022/0.8253, allocations: 7.484 kB / 0.956 GB, free: 5.461 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,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.0001476/0.8255, allocations: 100.4 kB / 0.9561 GB, free: 5.375 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 6.757e-05/0.8255, allocations: 11 kB / 0.9561 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.8255, allocations: 0 / 0.9561 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 1.474e-05/0.8256, allocations: 3.562 kB / 0.9561 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 9.949e-05/0.8257, allocations: 9.312 kB / 0.9561 GB, free: 5.363 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001713/0.8258, allocations: 78.33 kB / 0.9562 GB, free: 5.27 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.781e-05/0.8259, allocations: 0.6833 MB / 0.9568 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 1.42e-05/0.826, allocations: 2.719 kB / 0.9568 GB, free: 4.562 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.278e-05/0.826, allocations: 8.5 kB / 0.9568 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of SimCode: time 2.4e-07/0.826, allocations: 0 / 0.9568 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of Templates: time 0.001969/0.828, allocations: 299.3 kB / 0.9571 GB, free: 4.398 MB / 0.7169 GB make -j1 -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","../files/Buildings_9_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches