Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.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_10_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_10_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.001436/0.001436, allocations: 112 kB / 16.41 MB, free: 6.016 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.001345/0.001346, allocations: 191.5 kB / 17.34 MB, free: 5.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.301/1.301, allocations: 222.9 MB / 241 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.386/2.386, allocations: 437.1 MB / 0.7112 GB, free: 4.391 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001766/0.001766, allocations: 67.89 kB / 1.019 GB, free: 9.352 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7048/0.7066, allocations: 151.6 MB / 1.167 GB, free: 3.789 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001542/0.7082, allocations: 0.5829 MB / 1.168 GB, free: 3.211 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0002603/0.7085, allocations: 43.8 kB / 1.168 GB, free: 3.168 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.669e-05/0.7085, allocations: 0 / 1.168 GB, free: 3.168 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 1.647e-05/0.7085, allocations: 4 kB / 1.168 GB, free: 3.164 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 6.041e-06/0.7085, allocations: 0 / 1.168 GB, free: 3.164 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002109/0.7088, allocations: 23.92 kB / 1.168 GB, free: 3.141 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 3.941e-05/0.7088, allocations: 0 / 1.168 GB, free: 3.141 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 4.764e-05/0.7089, allocations: 7.984 kB / 1.168 GB, free: 3.133 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 1.438e-05/0.7089, allocations: 3.938 kB / 1.168 GB, free: 3.129 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 1.954e-05/0.7089, allocations: 4 kB / 1.168 GB, free: 3.125 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 8.316e-06/0.7089, allocations: 0 / 1.168 GB, free: 3.125 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 6.416e-05/0.709, allocations: 7.984 kB / 1.168 GB, free: 3.117 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 1.162e-05/0.709, allocations: 4 kB / 1.168 GB, free: 3.113 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 1.489e-05/0.709, allocations: 4 kB / 1.168 GB, free: 3.109 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 7.923e-05/0.7091, allocations: 7.984 kB / 1.168 GB, free: 3.102 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.7091, allocations: 0 / 1.168 GB, free: 3.102 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.202e-06/0.7091, allocations: 4 kB / 1.168 GB, free: 3.098 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 1.586e-05/0.7091, allocations: 0 / 1.168 GB, free: 3.098 MB / 0.8887 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.0003337/0.7095, allocations: 319.5 kB / 1.168 GB, free: 2.734 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 3.316e-05/0.7095, allocations: 8.922 kB / 1.168 GB, free: 2.727 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.892e-05/0.7096, allocations: 8.891 kB / 1.168 GB, free: 2.719 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001065/0.7097, allocations: 164.4 kB / 1.169 GB, free: 2.52 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.084e-05/0.7097, allocations: 384 / 1.169 GB, free: 2.52 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.096e-05/0.7097, allocations: 4.312 kB / 1.169 GB, free: 2.516 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 9.691e-05/0.7098, allocations: 38.2 kB / 1.169 GB, free: 2.473 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.035e-06/0.7098, allocations: 192 / 1.169 GB, free: 2.473 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.838e-06/0.7098, allocations: 3.938 kB / 1.169 GB, free: 2.469 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.045e-06/0.7098, allocations: 0 / 1.169 GB, free: 2.469 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.075e-05/0.7099, allocations: 8 kB / 1.169 GB, free: 2.461 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001487/0.71, allocations: 146.7 kB / 1.169 GB, free: 2.27 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 5.199e-05/0.7101, allocations: 26.61 kB / 1.169 GB, free: 2.234 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.549e-05/0.7101, allocations: 4.859 kB / 1.169 GB, free: 2.227 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001557/0.7103, allocations: 89.16 kB / 1.169 GB, free: 2.121 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.922e-05/0.7103, allocations: 34.5 kB / 1.169 GB, free: 2.078 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=2): time 9.42e-07/0.7103, allocations: 0 / 1.169 GB, free: 2.078 MB / 0.8887 GB Notification: Performance of matching and sorting (n=2): time 0.0001265/0.7104, allocations: 45.64 kB / 1.169 GB, free: 2.027 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.86e-05/0.7105, allocations: 55.39 kB / 1.169 GB, free: 1.961 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.49e-05/0.7105, allocations: 89.86 kB / 1.169 GB, free: 1.863 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 1.292e-05/0.7106, allocations: 25.7 kB / 1.169 GB, free: 1.832 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 3.189e-05/0.7106, allocations: 84.27 kB / 1.169 GB, free: 1.746 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 1.518e-05/0.7106, allocations: 0 / 1.169 GB, free: 1.746 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.325e-05/0.7106, allocations: 17.72 kB / 1.169 GB, free: 1.723 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 0.0001235/0.7108, allocations: 310.8 kB / 1.169 GB, free: 1.41 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.206e-05/0.7108, allocations: 4 kB / 1.169 GB, free: 1.406 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 6.472e-06/0.7108, allocations: 0 / 1.169 GB, free: 1.406 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.767e-05/0.7108, allocations: 20.78 kB / 1.169 GB, free: 1.383 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.7109, allocations: 0 / 1.169 GB, free: 1.383 MB / 0.8887 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.689e-05/0.7109, allocations: 37.77 kB / 1.17 GB, free: 1.34 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.255e-05/0.7109, allocations: 8 kB / 1.17 GB, free: 1.332 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.867e-06/0.7109, allocations: 0 / 1.17 GB, free: 1.332 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.711, allocations: 3.938 kB / 1.17 GB, free: 1.328 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.166e-05/0.711, allocations: 7.984 kB / 1.17 GB, free: 1.32 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.149e-06/0.711, allocations: 0 / 1.17 GB, free: 1.32 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.562e-05/0.711, allocations: 4 kB / 1.17 GB, free: 1.316 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.837e-06/0.7111, allocations: 3.938 kB / 1.17 GB, free: 1.312 MB / 0.8887 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 (n,fac) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.736e-05/0.7111, allocations: 117.4 kB / 1.17 GB, free: 1.191 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.869e-06/0.7111, allocations: 7.953 kB / 1.17 GB, free: 1.184 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.03e-05/0.7112, allocations: 56.67 kB / 1.17 GB, free: 1.117 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.412e-06/0.7113, allocations: 0 / 1.17 GB, free: 1.117 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-06/0.7113, allocations: 0 / 1.17 GB, free: 1.117 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.204e-06/0.7113, allocations: 0 / 1.17 GB, free: 1.117 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001002/0.7114, allocations: 141.7 kB / 1.17 GB, free: 0.9297 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.7114, allocations: 7.984 kB / 1.17 GB, free: 0.9219 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.888e-05/0.7114, allocations: 0 / 1.17 GB, free: 0.9219 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-06/0.7114, allocations: 0 / 1.17 GB, free: 0.9219 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.009e-05/0.7114, allocations: 11.91 kB / 1.17 GB, free: 0.9102 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.62e-07/0.7114, allocations: 4 kB / 1.17 GB, free: 0.9062 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.7114, allocations: 0 / 1.17 GB, free: 0.9062 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.694e-05/0.7115, allocations: 65.06 kB / 1.17 GB, free: 0.8242 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 4.155e-05/0.7116, allocations: 77.11 kB / 1.17 GB, free: 0.7305 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.394e-05/0.7116, allocations: 7.938 kB / 1.17 GB, free: 0.7227 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.164e-05/0.7116, allocations: 4 kB / 1.17 GB, free: 0.7188 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.598e-05/0.7116, allocations: 0 / 1.17 GB, free: 0.7188 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.114e-06/0.7116, allocations: 4.031 kB / 1.17 GB, free: 0.7148 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 3.016e-05/0.7117, allocations: 77.75 kB / 1.17 GB, free: 0.6406 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.01e-07/0.7117, allocations: 0 / 1.17 GB, free: 0.6406 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.0001696/0.7118, allocations: 4 kB / 1.17 GB, free: 0.6367 MB / 0.8887 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000154/0.712, allocations: 107.2 kB / 1.17 GB, free: 0.5195 MB / 0.8887 GB Notification: Performance of simCode: created initialization part: time 7.289e-05/0.7121, allocations: 8 kB / 1.17 GB, free: 0.5117 MB / 0.8887 GB Notification: Performance of simCode: created event and clocks part: time 1.342e-06/0.7121, allocations: 0 / 1.17 GB, free: 0.5117 MB / 0.8887 GB Notification: Performance of simCode: created simulation system equations: time 1.652e-05/0.7121, allocations: 12 kB / 1.17 GB, free: 0.5 MB / 0.8887 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001204/0.7122, allocations: 7.984 kB / 1.17 GB, free: 0.4922 MB / 0.8887 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001704/0.7124, allocations: 88.56 kB / 1.17 GB, free: 392 kB / 0.8887 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002828/0.7127, allocations: 0.669 MB / 1.171 GB, free: 15.69 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 1.216e-05/0.7127, allocations: 4 kB / 1.171 GB, free: 15.68 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.489e-05/0.7127, allocations: 11.42 kB / 1.171 GB, free: 15.67 MB / 0.9044 GB Notification: Performance of SimCode: time 1.813e-06/0.7128, allocations: 0 / 1.171 GB, free: 15.67 MB / 0.9044 GB Notification: Performance of Templates: time 0.002291/0.715, allocations: 332.5 kB / 1.171 GB, free: 15.35 MB / 0.9044 GB make -j1 -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches