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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_10_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.007327/0.007327, allocations: 101.7 kB / 15.73 MB, free: 5.586 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.001669/0.001669, allocations: 191.3 kB / 16.67 MB, free: 5.523 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.343/1.343, allocations: 222.9 MB / 240.4 MB, free: 15.14 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.477/2.477, allocations: 437.1 MB / 0.7105 GB, free: 4.359 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001376/0.001376, allocations: 63.91 kB / 1.018 GB, free: 9.84 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8315/0.8329, allocations: 151.6 MB / 1.166 GB, free: 3.746 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001854/0.8348, allocations: 0.5805 MB / 1.167 GB, free: 3.168 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.0003146/0.8352, allocations: 57.75 kB / 1.167 GB, free: 3.113 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.18e-05/0.8352, allocations: 0 / 1.167 GB, free: 3.113 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 1.184e-05/0.8352, allocations: 0 / 1.167 GB, free: 3.113 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 5.861e-06/0.8352, allocations: 0 / 1.167 GB, free: 3.113 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.000214/0.8355, allocations: 12 kB / 1.167 GB, free: 3.102 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 4.987e-05/0.8355, allocations: 11.92 kB / 1.167 GB, free: 3.09 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 4.223e-05/0.8356, allocations: 3.984 kB / 1.167 GB, free: 3.086 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 1.238e-05/0.8356, allocations: 0 / 1.167 GB, free: 3.086 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 2.225e-05/0.8356, allocations: 4 kB / 1.167 GB, free: 3.082 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 8.956e-06/0.8356, allocations: 0 / 1.167 GB, free: 3.082 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 7.157e-05/0.8357, allocations: 8 kB / 1.167 GB, free: 3.074 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 9.768e-06/0.8357, allocations: 3.938 kB / 1.167 GB, free: 3.07 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 1.789e-05/0.8357, allocations: 0 / 1.167 GB, free: 3.07 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 8.104e-05/0.8358, allocations: 19.91 kB / 1.167 GB, free: 3.051 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 3.707e-06/0.8358, allocations: 0 / 1.167 GB, free: 3.051 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.293e-06/0.8358, allocations: 4 kB / 1.167 GB, free: 3.047 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 7.764e-06/0.8359, allocations: 0 / 1.167 GB, free: 3.047 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.0002704/0.8361, allocations: 319.6 kB / 1.167 GB, free: 2.684 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 4.043e-05/0.8362, allocations: 8.625 kB / 1.167 GB, free: 2.676 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.208e-05/0.8362, allocations: 34.75 kB / 1.167 GB, free: 2.633 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.556e-05/0.8362, allocations: 0.9375 kB / 1.167 GB, free: 2.633 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.635e-05/0.8363, allocations: 168.3 kB / 1.167 GB, free: 2.43 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.108e-05/0.8364, allocations: 4.375 kB / 1.167 GB, free: 2.426 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.533e-06/0.8364, allocations: 384 / 1.167 GB, free: 2.426 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.462e-05/0.8365, allocations: 38.25 kB / 1.167 GB, free: 2.383 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.8365, allocations: 3.938 kB / 1.167 GB, free: 2.379 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.792e-06/0.8365, allocations: 0 / 1.167 GB, free: 2.379 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.117e-06/0.8365, allocations: 0 / 1.167 GB, free: 2.379 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.394e-05/0.8365, allocations: 7.938 kB / 1.167 GB, free: 2.371 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001321/0.8367, allocations: 149.7 kB / 1.168 GB, free: 2.176 MB / 0.8887 GB Notification: Performance of preOpt comSubExp (simulation): time 4.319e-05/0.8367, allocations: 18.61 kB / 1.168 GB, free: 2.148 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.799e-05/0.8368, allocations: 16.92 kB / 1.168 GB, free: 2.129 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001462/0.8369, allocations: 81.11 kB / 1.168 GB, free: 2.031 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.323e-05/0.8369, allocations: 34.55 kB / 1.168 GB, free: 1.988 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=2): time 9.62e-07/0.8369, allocations: 0 / 1.168 GB, free: 1.988 MB / 0.8887 GB Notification: Performance of matching and sorting (n=2): time 0.0001308/0.8371, allocations: 45.58 kB / 1.168 GB, free: 1.938 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.039e-05/0.8371, allocations: 51.41 kB / 1.168 GB, free: 1.875 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 3.663e-05/0.8372, allocations: 93.86 kB / 1.168 GB, free: 1.773 MB / 0.8887 GB Notification: Performance of collectPreVariables (initialization): time 2.387e-05/0.8372, allocations: 25.7 kB / 1.168 GB, free: 1.742 MB / 0.8887 GB Notification: Performance of collectInitialEqns (initialization): time 2.445e-05/0.8372, allocations: 84.27 kB / 1.168 GB, free: 1.656 MB / 0.8887 GB Notification: Performance of collectInitialBindings (initialization): time 1.78e-05/0.8372, allocations: 7.891 kB / 1.168 GB, free: 1.648 MB / 0.8887 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.871e-05/0.8373, allocations: 17.72 kB / 1.168 GB, free: 1.625 MB / 0.8887 GB Notification: Performance of setup shared object (initialization): time 8.853e-05/0.8374, allocations: 310.8 kB / 1.168 GB, free: 1.312 MB / 0.8887 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.1e-05/0.8374, allocations: 0 / 1.168 GB, free: 1.312 MB / 0.8887 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.047e-06/0.8374, allocations: 4 kB / 1.168 GB, free: 1.309 MB / 0.8887 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.186e-05/0.8374, allocations: 12.86 kB / 1.168 GB, free: 1.293 MB / 0.8887 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.8374, allocations: 4.062 kB / 1.168 GB, free: 1.289 MB / 0.8887 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.166e-05/0.8375, allocations: 45.56 kB / 1.168 GB, free: 1.238 MB / 0.8887 GB Notification: Performance of prepare postOptimizeDAE: time 1.185e-05/0.8375, allocations: 4 kB / 1.168 GB, free: 1.234 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.592e-06/0.8375, allocations: 7.938 kB / 1.168 GB, free: 1.227 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.115e-05/0.8376, allocations: 0 / 1.168 GB, free: 1.227 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.879e-05/0.8376, allocations: 0 / 1.168 GB, free: 1.227 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.218e-06/0.8376, allocations: 4 kB / 1.168 GB, free: 1.223 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.453e-05/0.8376, allocations: 2.25 kB / 1.168 GB, free: 1.223 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.597e-06/0.8377, allocations: 0 / 1.168 GB, free: 1.223 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 6.366e-05/0.8377, allocations: 117.9 kB / 1.169 GB, free: 1.098 MB / 0.8887 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.853e-06/0.8377, allocations: 0 / 1.169 GB, free: 1.098 MB / 0.8887 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.276e-05/0.8378, allocations: 52.69 kB / 1.169 GB, free: 1.035 MB / 0.8887 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.966e-06/0.8378, allocations: 3.984 kB / 1.169 GB, free: 1.031 MB / 0.8887 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.607e-06/0.8378, allocations: 4 kB / 1.169 GB, free: 1.027 MB / 0.8887 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.8378, allocations: 0 / 1.169 GB, free: 1.027 MB / 0.8887 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.894e-05/0.8379, allocations: 141.7 kB / 1.169 GB, free: 0.8398 MB / 0.8887 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.8379, allocations: 0 / 1.169 GB, free: 0.8398 MB / 0.8887 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.424e-05/0.838, allocations: 7.938 kB / 1.169 GB, free: 0.832 MB / 0.8887 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.256e-06/0.838, allocations: 4.031 kB / 1.169 GB, free: 0.8281 MB / 0.8887 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.038e-05/0.838, allocations: 11.92 kB / 1.169 GB, free: 0.8164 MB / 0.8887 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.838, allocations: 0 / 1.169 GB, free: 0.8164 MB / 0.8887 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.665e-06/0.838, allocations: 4 kB / 1.169 GB, free: 0.8125 MB / 0.8887 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.069e-05/0.8381, allocations: 57.14 kB / 1.169 GB, free: 0.7383 MB / 0.8887 GB Notification: Performance of postOpt removeConstants (simulation): time 2.993e-05/0.8381, allocations: 81.09 kB / 1.169 GB, free: 0.6406 MB / 0.8887 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.072e-05/0.8381, allocations: 3.938 kB / 1.169 GB, free: 0.6367 MB / 0.8887 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.259e-05/0.8382, allocations: 0 / 1.169 GB, free: 0.6367 MB / 0.8887 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.228e-05/0.8382, allocations: 11.97 kB / 1.169 GB, free: 0.625 MB / 0.8887 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.224e-06/0.8382, allocations: 0 / 1.169 GB, free: 0.625 MB / 0.8887 GB Notification: Performance of sorting global known variables: time 2.682e-05/0.8382, allocations: 81.75 kB / 1.169 GB, free: 0.5469 MB / 0.8887 GB Notification: Performance of sort global known variables: time 1.2e-07/0.8382, allocations: 0 / 1.169 GB, free: 0.5469 MB / 0.8887 GB Notification: Performance of remove unused functions: time 0.000208/0.8384, allocations: 4 kB / 1.169 GB, free: 0.543 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.0003454/0.8388, allocations: 0.6047 MB / 1.17 GB, free: 15.91 MB / 0.9044 GB Notification: Performance of simCode: created initialization part: time 7.166e-05/0.8389, allocations: 15.92 kB / 1.17 GB, free: 15.89 MB / 0.9044 GB Notification: Performance of simCode: created event and clocks part: time 4.408e-06/0.8389, allocations: 4 kB / 1.17 GB, free: 15.89 MB / 0.9044 GB Notification: Performance of simCode: created simulation system equations: time 1.508e-05/0.8389, allocations: 7.938 kB / 1.17 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001253/0.839, allocations: 0 / 1.17 GB, free: 15.88 MB / 0.9044 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002705/0.8393, allocations: 118.5 kB / 1.17 GB, free: 15.72 MB / 0.9044 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000187/0.8395, allocations: 0.6729 MB / 1.17 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of simCode: alias equations: time 1.159e-05/0.8395, allocations: 4.125 kB / 1.17 GB, free: 15.02 MB / 0.9044 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.849e-05/0.8396, allocations: 11.44 kB / 1.17 GB, free: 15.01 MB / 0.9044 GB Notification: Performance of SimCode: time 2.31e-07/0.8396, allocations: 0 / 1.17 GB, free: 15.01 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01715/0.8567, allocations: 1.075 MB / 1.171 GB, free: 14.03 MB / 0.9044 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.786/8.643, allocations: 8.844 kB / 1.171 GB, free: 14.02 MB / 0.9044 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > 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) "" Variables in the reference:time,fac Variables in the result:fac,n,time