Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/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_latest_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_latest_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.00103/0.00103, allocations: 90.52 kB / 15.36 MB, free: 0.7383 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.01317/0.01317, allocations: 171.1 kB / 16.26 MB, free: 6.676 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.43/1.43, allocations: 223.3 MB / 240.3 MB, free: 5.324 MB / 190.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/Experimental/DHC/UsersGuide/package.mo:2:1-389:15:writable] Warning: UsersGuide was referenced in the package.order file, but was not found in package.mo, UsersGuide/package.mo or UsersGuide.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-master/package.mo): time 2.704/2.704, allocations: 443.3 MB / 0.7175 GB, free: 1.383 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003875/0.0003876, allocations: 14.45 kB / 0.8796 GB, free: 41.48 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3343/0.3347, allocations: 155.2 MB / 1.031 GB, free: 4.344 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.0006739/0.3354, allocations: 320.3 kB / 1.031 GB, free: 4.027 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.0002399/0.3356, allocations: 43.86 kB / 1.031 GB, free: 3.984 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.466e-06/0.3357, allocations: 7.938 kB / 1.031 GB, free: 3.977 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 1.213e-05/0.3357, allocations: 0 / 1.031 GB, free: 3.977 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 4.649e-06/0.3357, allocations: 0 / 1.031 GB, free: 3.977 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001929/0.3359, allocations: 7.984 kB / 1.031 GB, free: 3.969 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 3.262e-05/0.3359, allocations: 4 kB / 1.031 GB, free: 3.965 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 3.89e-05/0.336, allocations: 0 / 1.031 GB, free: 3.965 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 1.803e-05/0.336, allocations: 15.92 kB / 1.031 GB, free: 3.949 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 2.289e-05/0.336, allocations: 0 / 1.031 GB, free: 3.949 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 9.518e-06/0.336, allocations: 4 kB / 1.031 GB, free: 3.945 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 6.421e-05/0.3361, allocations: 7.984 kB / 1.032 GB, free: 3.938 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.776e-06/0.3361, allocations: 0 / 1.032 GB, free: 3.938 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.039e-05/0.3362, allocations: 29.7 kB / 1.032 GB, free: 3.902 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 7.473e-05/0.3362, allocations: 7.984 kB / 1.032 GB, free: 3.895 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 7.484e-06/0.3363, allocations: 0 / 1.032 GB, free: 3.895 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.483e-06/0.3363, allocations: 3.938 kB / 1.032 GB, free: 3.891 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.424e-06/0.3363, allocations: 4 kB / 1.032 GB, free: 3.887 MB / 0.7794 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.0003142/0.3366, allocations: 311.5 kB / 1.032 GB, free: 3.531 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 5.162e-05/0.3367, allocations: 16.09 kB / 1.032 GB, free: 3.516 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.28e-05/0.3367, allocations: 4.844 kB / 1.032 GB, free: 3.512 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001198/0.3368, allocations: 160.4 kB / 1.032 GB, free: 3.316 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.33e-05/0.3369, allocations: 4.375 kB / 1.032 GB, free: 3.312 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.203e-05/0.3369, allocations: 384 / 1.032 GB, free: 3.312 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001077/0.337, allocations: 34.25 kB / 1.032 GB, free: 3.273 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.226e-06/0.337, allocations: 192 / 1.032 GB, free: 3.273 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.06e-05/0.337, allocations: 3.938 kB / 1.032 GB, free: 3.27 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.337, allocations: 0 / 1.032 GB, free: 3.27 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.415e-05/0.3371, allocations: 4 kB / 1.032 GB, free: 3.266 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001567/0.3372, allocations: 157.7 kB / 1.032 GB, free: 3.062 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 4.885e-05/0.3373, allocations: 22.55 kB / 1.032 GB, free: 3.031 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.91e-05/0.3373, allocations: 8.859 kB / 1.032 GB, free: 3.02 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001625/0.3375, allocations: 85.16 kB / 1.032 GB, free: 2.918 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.331e-05/0.3375, allocations: 30.56 kB / 1.032 GB, free: 2.879 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=2): time 1.152e-06/0.3375, allocations: 4 kB / 1.032 GB, free: 2.875 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2): time 0.0001415/0.3377, allocations: 49.58 kB / 1.032 GB, free: 2.82 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.272e-05/0.3377, allocations: 51.41 kB / 1.032 GB, free: 2.758 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.809e-05/0.3378, allocations: 89.86 kB / 1.033 GB, free: 2.66 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.252e-05/0.3378, allocations: 29.69 kB / 1.033 GB, free: 2.625 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 2.244e-05/0.3378, allocations: 80.14 kB / 1.033 GB, free: 2.543 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.457e-05/0.3378, allocations: 288 / 1.033 GB, free: 2.543 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.328e-05/0.3379, allocations: 13.72 kB / 1.033 GB, free: 2.523 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 9.594e-05/0.338, allocations: 314.8 kB / 1.033 GB, free: 2.207 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 8.887e-06/0.338, allocations: 4.125 kB / 1.033 GB, free: 2.203 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.955e-06/0.338, allocations: 7.938 kB / 1.033 GB, free: 2.195 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.386e-05/0.338, allocations: 8.859 kB / 1.033 GB, free: 2.184 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.338, allocations: 0 / 1.033 GB, free: 2.184 MB / 0.7794 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.516e-05/0.3381, allocations: 45.62 kB / 1.033 GB, free: 2.133 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.395e-05/0.3381, allocations: 4 kB / 1.033 GB, free: 2.129 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.654e-06/0.3381, allocations: 4 kB / 1.033 GB, free: 2.125 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.206e-05/0.3382, allocations: 7.875 kB / 1.033 GB, free: 2.117 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.959e-05/0.3382, allocations: 4.078 kB / 1.033 GB, free: 2.113 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.53e-06/0.3382, allocations: 8 kB / 1.033 GB, free: 2.105 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.444e-05/0.3383, allocations: 3.938 kB / 1.033 GB, free: 2.102 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.938e-06/0.3383, allocations: 0 / 1.033 GB, free: 2.102 MB / 0.7794 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 8.555e-05/0.3384, allocations: 113.8 kB / 1.033 GB, free: 1.98 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.735e-06/0.3384, allocations: 3.906 kB / 1.033 GB, free: 1.977 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.276e-05/0.3385, allocations: 44.77 kB / 1.033 GB, free: 1.922 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.724e-06/0.3385, allocations: 0 / 1.033 GB, free: 1.922 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.632e-06/0.3385, allocations: 7.984 kB / 1.033 GB, free: 1.914 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.476e-06/0.3385, allocations: 8.031 kB / 1.033 GB, free: 1.906 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.477e-05/0.3386, allocations: 145.7 kB / 1.033 GB, free: 1.715 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.3386, allocations: 3.938 kB / 1.033 GB, free: 1.711 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.394e-05/0.3386, allocations: 4 kB / 1.033 GB, free: 1.707 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.3386, allocations: 0 / 1.033 GB, free: 1.707 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.006e-05/0.3386, allocations: 7.922 kB / 1.033 GB, free: 1.699 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.3387, allocations: 0 / 1.033 GB, free: 1.699 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.3387, allocations: 0 / 1.033 GB, free: 1.699 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.355e-05/0.3387, allocations: 65.14 kB / 1.033 GB, free: 1.617 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 3.736e-05/0.3388, allocations: 81.09 kB / 1.034 GB, free: 1.52 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.161e-05/0.3388, allocations: 3.938 kB / 1.034 GB, free: 1.516 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.07e-05/0.3388, allocations: 0 / 1.034 GB, free: 1.516 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.561e-05/0.3388, allocations: 4 kB / 1.034 GB, free: 1.512 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.384e-06/0.3389, allocations: 0 / 1.034 GB, free: 1.512 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 3.301e-05/0.3389, allocations: 75.28 kB / 1.034 GB, free: 1.438 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3389, allocations: 0 / 1.034 GB, free: 1.438 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0001825/0.3391, allocations: 4 kB / 1.034 GB, free: 1.434 MB / 0.7794 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.0001526/0.3393, allocations: 115.2 kB / 1.034 GB, free: 1.312 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 6.54e-05/0.3393, allocations: 8 kB / 1.034 GB, free: 1.305 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.3393, allocations: 0 / 1.034 GB, free: 1.305 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.375e-05/0.3394, allocations: 4 kB / 1.034 GB, free: 1.301 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001212/0.3395, allocations: 0 / 1.034 GB, free: 1.301 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0001824/0.3397, allocations: 86.69 kB / 1.034 GB, free: 1.191 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002594/0.3399, allocations: 0.6772 MB / 1.034 GB, free: 500 kB / 0.7794 GB Notification: Performance of simCode: alias equations: time 1.357e-05/0.34, allocations: 0 / 1.034 GB, free: 500 kB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.557e-05/0.34, allocations: 11.38 kB / 1.034 GB, free: 488 kB / 0.7794 GB Notification: Performance of SimCode: time 2.4e-07/0.34, allocations: 0 / 1.034 GB, free: 488 kB / 0.7794 GB Notification: Performance of Templates: time 0.002423/0.3424, allocations: 312.6 kB / 1.035 GB, free: 176 kB / 0.7794 GB make -j1 -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.makefile (rm -f Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & ./Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches