Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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_11_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_11_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.005185/0.005185, allocations: 96.67 kB / 15.73 MB, free: 5.988 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.001378/0.001378, allocations: 188.2 kB / 16.67 MB, free: 5.918 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.405/1.405, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.689/2.689, allocations: 469.8 MB / 0.7425 GB, free: 7.348 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001828/0.001828, allocations: 67.83 kB / 1.065 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3135/0.3153, allocations: 159.1 MB / 1.22 GB, free: 14.28 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001482/0.3168, allocations: 0.5875 MB / 1.221 GB, free: 13.69 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.0002271/0.3171, allocations: 51.86 kB / 1.221 GB, free: 13.64 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.379e-05/0.3171, allocations: 0 / 1.221 GB, free: 13.64 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 1.05e-05/0.3171, allocations: 0 / 1.221 GB, free: 13.64 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 7.745e-06/0.3171, allocations: 0 / 1.221 GB, free: 13.64 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001848/0.3173, allocations: 19.86 kB / 1.221 GB, free: 13.62 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 3.539e-05/0.3174, allocations: 0 / 1.221 GB, free: 13.62 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 3.54e-05/0.3174, allocations: 7.984 kB / 1.221 GB, free: 13.61 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 1.044e-05/0.3174, allocations: 0 / 1.221 GB, free: 13.61 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 1.641e-05/0.3174, allocations: 0 / 1.221 GB, free: 13.61 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 9.578e-06/0.3175, allocations: 4 kB / 1.221 GB, free: 13.61 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 6.354e-05/0.3175, allocations: 11.98 kB / 1.221 GB, free: 13.59 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 7.154e-06/0.3175, allocations: 4 kB / 1.221 GB, free: 13.59 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 2.103e-05/0.3176, allocations: 8 kB / 1.221 GB, free: 13.58 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 7.5e-05/0.3176, allocations: 11.92 kB / 1.221 GB, free: 13.57 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 2.965e-06/0.3177, allocations: 0 / 1.221 GB, free: 13.57 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.222e-06/0.3177, allocations: 0 / 1.221 GB, free: 13.57 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.011e-06/0.3177, allocations: 3.984 kB / 1.221 GB, free: 13.57 MB / 0.9825 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.0003074/0.318, allocations: 315.5 kB / 1.221 GB, free: 13.21 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 3.539e-05/0.318, allocations: 12.03 kB / 1.221 GB, free: 13.2 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.205e-05/0.3181, allocations: 30.75 kB / 1.221 GB, free: 13.16 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 1.874e-05/0.3181, allocations: 4.938 kB / 1.221 GB, free: 13.15 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001126/0.3182, allocations: 168.3 kB / 1.221 GB, free: 12.95 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.241e-06/0.3182, allocations: 384 / 1.221 GB, free: 12.95 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.678e-06/0.3182, allocations: 4.375 kB / 1.221 GB, free: 12.95 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.946e-05/0.3183, allocations: 26.27 kB / 1.221 GB, free: 12.91 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.3183, allocations: 3.938 kB / 1.221 GB, free: 12.91 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.02e-05/0.3183, allocations: 7.984 kB / 1.221 GB, free: 12.9 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.727e-06/0.3183, allocations: 0 / 1.221 GB, free: 12.9 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.837e-05/0.3184, allocations: 7.984 kB / 1.221 GB, free: 12.89 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001488/0.3185, allocations: 153.6 kB / 1.222 GB, free: 12.7 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 4.432e-05/0.3186, allocations: 28.39 kB / 1.222 GB, free: 12.66 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 1.733e-05/0.3186, allocations: 8.922 kB / 1.222 GB, free: 12.65 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001455/0.3188, allocations: 85.09 kB / 1.222 GB, free: 12.55 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.121e-05/0.3188, allocations: 30.56 kB / 1.222 GB, free: 12.51 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=2): time 9.02e-07/0.3188, allocations: 0 / 1.222 GB, free: 12.51 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2): time 0.0001207/0.3189, allocations: 53.66 kB / 1.222 GB, free: 12.45 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.254e-05/0.319, allocations: 51.41 kB / 1.222 GB, free: 12.39 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.502e-05/0.319, allocations: 89.86 kB / 1.222 GB, free: 12.29 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.498e-05/0.319, allocations: 25.7 kB / 1.222 GB, free: 12.26 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 3.189e-05/0.3191, allocations: 84.08 kB / 1.222 GB, free: 12.17 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.456e-05/0.3191, allocations: 4 kB / 1.222 GB, free: 12.17 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.76e-05/0.3191, allocations: 13.72 kB / 1.222 GB, free: 12.15 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001369/0.3193, allocations: 314.8 kB / 1.222 GB, free: 11.83 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.515e-05/0.3193, allocations: 8.016 kB / 1.222 GB, free: 11.82 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.985e-06/0.3193, allocations: 7.938 kB / 1.222 GB, free: 11.82 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.968e-05/0.3193, allocations: 12.86 kB / 1.222 GB, free: 11.8 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.282e-06/0.3193, allocations: 0 / 1.222 GB, free: 11.8 MB / 0.9825 GB Notification: Performance of matching and sorting (n=2) (initialization): time 5.501e-05/0.3194, allocations: 37.66 kB / 1.222 GB, free: 11.76 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.051e-05/0.3194, allocations: 4 kB / 1.222 GB, free: 11.75 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.209e-06/0.3194, allocations: 3.938 kB / 1.222 GB, free: 11.75 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.03e-05/0.3194, allocations: 3.984 kB / 1.222 GB, free: 11.75 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 4.814e-05/0.3195, allocations: 11.94 kB / 1.222 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.314e-06/0.3195, allocations: 8.078 kB / 1.222 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.347e-05/0.3195, allocations: 4 kB / 1.222 GB, free: 11.72 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.28e-06/0.3195, allocations: 4 kB / 1.222 GB, free: 11.72 MB / 0.9825 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.193e-05/0.3196, allocations: 105.8 kB / 1.223 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.502e-06/0.3196, allocations: 0 / 1.223 GB, free: 11.61 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.967e-05/0.3197, allocations: 48.75 kB / 1.223 GB, free: 11.55 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.302e-06/0.3197, allocations: 0 / 1.223 GB, free: 11.55 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.985e-06/0.3197, allocations: 0 / 1.223 GB, free: 11.55 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.854e-06/0.3197, allocations: 4.031 kB / 1.223 GB, free: 11.55 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001179/0.3199, allocations: 149.7 kB / 1.223 GB, free: 11.36 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.41e-07/0.3199, allocations: 0 / 1.223 GB, free: 11.36 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.162e-05/0.3199, allocations: 4 kB / 1.223 GB, free: 11.35 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.183e-06/0.3199, allocations: 0 / 1.223 GB, free: 11.35 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.276e-06/0.3199, allocations: 3.938 kB / 1.223 GB, free: 11.35 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.72e-07/0.3199, allocations: 3.938 kB / 1.223 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.71e-07/0.3199, allocations: 0 / 1.223 GB, free: 11.34 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.473e-05/0.32, allocations: 65.12 kB / 1.223 GB, free: 11.26 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 4.565e-05/0.32, allocations: 85.11 kB / 1.223 GB, free: 11.16 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.053e-05/0.3201, allocations: 3.938 kB / 1.223 GB, free: 11.16 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.658e-06/0.3201, allocations: 0 / 1.223 GB, free: 11.16 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.152e-05/0.3201, allocations: 0 / 1.223 GB, free: 11.16 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.302e-06/0.3201, allocations: 7.984 kB / 1.223 GB, free: 11.15 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 2.997e-05/0.3201, allocations: 75.28 kB / 1.223 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1e-07/0.3201, allocations: 0 / 1.223 GB, free: 11.07 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.000167/0.3203, allocations: 4 kB / 1.223 GB, free: 11.07 MB / 0.9825 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.0004075/0.3207, allocations: 0.6167 MB / 1.224 GB, free: 10.42 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 6.636e-05/0.3208, allocations: 8 kB / 1.224 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 1.372e-06/0.3208, allocations: 0 / 1.224 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 1.393e-05/0.3208, allocations: 4 kB / 1.224 GB, free: 10.41 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001123/0.321, allocations: 9.875 kB / 1.224 GB, free: 10.4 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000252/0.3212, allocations: 118.4 kB / 1.224 GB, free: 10.25 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002945/0.3215, allocations: 0.6768 MB / 1.224 GB, free: 9.543 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 9.989e-06/0.3215, allocations: 0 / 1.224 GB, free: 9.543 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.682e-05/0.3216, allocations: 7.438 kB / 1.224 GB, free: 9.535 MB / 0.9825 GB Notification: Performance of SimCode: time 2.1e-07/0.3216, allocations: 0 / 1.224 GB, free: 9.535 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.447/0.7685, allocations: 1.07 MB / 1.225 GB, free: 8.555 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.879/9.648, allocations: 13.97 kB / 1.225 GB, free: 8.547 MB / 0.9825 GB (rm -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Functions_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches