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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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: "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.Factorial,fileNamePrefix="Buildings_latest_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.00759/0.00759, allocations: 97.62 kB / 15.73 MB, free: 6.059 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.002/0.002, allocations: 197.7 kB / 16.68 MB, free: 5.977 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.411/1.411, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.839/2.839, allocations: 482.6 MB / 0.755 GB, free: 10.66 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001857/0.001857, allocations: 68.11 kB / 1.083 GB, free: 12.21 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2911/0.2929, allocations: 162.3 MB / 1.242 GB, free: 9.809 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.Factorial): time 0.001616/0.2946, allocations: 0.5875 MB / 1.242 GB, free: 9.223 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0002376/0.2948, allocations: 51.84 kB / 1.243 GB, free: 9.172 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.696e-05/0.2949, allocations: 0 / 1.243 GB, free: 9.172 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 1.421e-05/0.2949, allocations: 7.875 kB / 1.243 GB, free: 9.164 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 4.839e-06/0.2949, allocations: 3.938 kB / 1.243 GB, free: 9.16 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001948/0.2951, allocations: 11.97 kB / 1.243 GB, free: 9.148 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 4.117e-05/0.2952, allocations: 8 kB / 1.243 GB, free: 9.141 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 3.777e-05/0.2952, allocations: 0 / 1.243 GB, free: 9.141 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 1.105e-05/0.2952, allocations: 0 / 1.243 GB, free: 9.141 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 1.747e-05/0.2952, allocations: 0 / 1.243 GB, free: 9.141 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.06e-05/0.2953, allocations: 8 kB / 1.243 GB, free: 9.133 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.645e-05/0.2953, allocations: 11.98 kB / 1.243 GB, free: 9.121 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 8.516e-06/0.2953, allocations: 0 / 1.243 GB, free: 9.121 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 2.462e-05/0.2954, allocations: 7.984 kB / 1.243 GB, free: 9.113 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 7.66e-05/0.2955, allocations: 7.938 kB / 1.243 GB, free: 9.105 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.2955, allocations: 3.984 kB / 1.243 GB, free: 9.102 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.363e-06/0.2955, allocations: 0 / 1.243 GB, free: 9.102 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 3.878e-06/0.2955, allocations: 0 / 1.243 GB, free: 9.102 MB / 0.9981 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.000298/0.2958, allocations: 315.5 kB / 1.243 GB, free: 8.742 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.49e-05/0.2958, allocations: 12.03 kB / 1.243 GB, free: 8.73 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.599e-05/0.2959, allocations: 34.75 kB / 1.243 GB, free: 8.688 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.037e-05/0.2959, allocations: 0.9375 kB / 1.243 GB, free: 8.688 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001096/0.296, allocations: 164.4 kB / 1.243 GB, free: 8.488 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.916e-06/0.296, allocations: 384 / 1.243 GB, free: 8.488 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.025e-06/0.296, allocations: 4.375 kB / 1.243 GB, free: 8.484 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 8.112e-05/0.2961, allocations: 30.27 kB / 1.243 GB, free: 8.449 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.925e-06/0.2961, allocations: 3.938 kB / 1.243 GB, free: 8.445 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.005e-06/0.2961, allocations: 4 kB / 1.243 GB, free: 8.441 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.677e-06/0.2962, allocations: 0 / 1.243 GB, free: 8.441 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.994e-05/0.2962, allocations: 3.984 kB / 1.243 GB, free: 8.438 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001596/0.2964, allocations: 161.6 kB / 1.243 GB, free: 8.23 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 4.422e-05/0.2964, allocations: 18.61 kB / 1.243 GB, free: 8.203 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.059e-05/0.2964, allocations: 12.91 kB / 1.243 GB, free: 8.188 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001499/0.2966, allocations: 81.11 kB / 1.243 GB, free: 8.09 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.872e-05/0.2966, allocations: 34.56 kB / 1.243 GB, free: 8.047 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=2): time 1.082e-06/0.2966, allocations: 0 / 1.243 GB, free: 8.047 MB / 0.9981 GB Notification: Performance of matching and sorting (n=2): time 0.0001335/0.2968, allocations: 53.52 kB / 1.243 GB, free: 7.988 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.682e-05/0.2968, allocations: 51.41 kB / 1.244 GB, free: 7.926 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.255e-05/0.2969, allocations: 89.86 kB / 1.244 GB, free: 7.828 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.696e-05/0.2969, allocations: 29.7 kB / 1.244 GB, free: 7.793 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 3.127e-05/0.2969, allocations: 80.14 kB / 1.244 GB, free: 7.711 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.666e-05/0.2969, allocations: 4 kB / 1.244 GB, free: 7.707 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.746e-05/0.297, allocations: 9.719 kB / 1.244 GB, free: 7.691 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001435/0.2971, allocations: 319 kB / 1.244 GB, free: 7.371 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 1.378e-05/0.2971, allocations: 11.92 kB / 1.244 GB, free: 7.359 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.986e-06/0.2972, allocations: 7.938 kB / 1.244 GB, free: 7.352 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.984e-05/0.2972, allocations: 8.859 kB / 1.244 GB, free: 7.34 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.273e-06/0.2972, allocations: 0 / 1.244 GB, free: 7.34 MB / 0.9981 GB Notification: Performance of matching and sorting (n=2) (initialization): time 6.738e-05/0.2973, allocations: 45.64 kB / 1.244 GB, free: 7.289 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.2973, allocations: 4 kB / 1.244 GB, free: 7.285 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.2973, allocations: 7.922 kB / 1.244 GB, free: 7.277 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.085e-05/0.2973, allocations: 96 / 1.244 GB, free: 7.277 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.098e-05/0.2974, allocations: 8 kB / 1.244 GB, free: 7.27 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.268e-06/0.2974, allocations: 0 / 1.244 GB, free: 7.27 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.185e-05/0.2974, allocations: 0 / 1.244 GB, free: 7.27 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.262e-06/0.2974, allocations: 4 kB / 1.244 GB, free: 7.266 MB / 0.9981 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.772e-05/0.2975, allocations: 105.8 kB / 1.244 GB, free: 7.152 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.652e-06/0.2975, allocations: 0 / 1.244 GB, free: 7.152 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.609e-05/0.2976, allocations: 48.75 kB / 1.244 GB, free: 7.098 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.2976, allocations: 0 / 1.244 GB, free: 7.098 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.357e-06/0.2976, allocations: 7.969 kB / 1.244 GB, free: 7.09 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.2976, allocations: 0 / 1.244 GB, free: 7.09 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001123/0.2977, allocations: 157.6 kB / 1.244 GB, free: 6.887 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.2978, allocations: 0 / 1.244 GB, free: 6.887 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.451e-05/0.2978, allocations: 4 kB / 1.244 GB, free: 6.883 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.2978, allocations: 0 / 1.244 GB, free: 6.883 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.163e-06/0.2978, allocations: 3.938 kB / 1.244 GB, free: 6.879 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.182e-06/0.2978, allocations: 0 / 1.244 GB, free: 6.879 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.71e-07/0.2978, allocations: 0 / 1.244 GB, free: 6.879 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.675e-05/0.2979, allocations: 65.12 kB / 1.245 GB, free: 6.797 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.285e-05/0.2979, allocations: 81.11 kB / 1.245 GB, free: 6.699 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.129e-05/0.298, allocations: 3.938 kB / 1.245 GB, free: 6.695 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.039e-05/0.298, allocations: 0 / 1.245 GB, free: 6.695 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.167e-05/0.298, allocations: 3.984 kB / 1.245 GB, free: 6.691 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.168e-06/0.298, allocations: 4 kB / 1.245 GB, free: 6.688 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 3.056e-05/0.2981, allocations: 75.28 kB / 1.245 GB, free: 6.613 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.164e-06/0.2981, allocations: 0 / 1.245 GB, free: 6.613 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0001847/0.2982, allocations: 7.938 kB / 1.245 GB, free: 6.605 MB / 0.9981 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.0004214/0.2987, allocations: 0.609 MB / 1.245 GB, free: 5.965 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 6.247e-05/0.2988, allocations: 8 kB / 1.245 GB, free: 5.957 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.593e-06/0.2988, allocations: 0 / 1.245 GB, free: 5.957 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 1.708e-05/0.2988, allocations: 12.03 kB / 1.245 GB, free: 5.945 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001197/0.2989, allocations: 9.078 kB / 1.245 GB, free: 5.938 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002634/0.2992, allocations: 106.6 kB / 1.245 GB, free: 5.793 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002857/0.2995, allocations: 0.6767 MB / 1.246 GB, free: 5.09 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 1.31e-05/0.2995, allocations: 4 kB / 1.246 GB, free: 5.086 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.806e-05/0.2995, allocations: 7.438 kB / 1.246 GB, free: 5.078 MB / 0.9981 GB Notification: Performance of SimCode: time 2.91e-07/0.2995, allocations: 0 / 1.246 GB, free: 5.078 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2263/0.5258, allocations: 1.077 MB / 1.247 GB, free: 4.094 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.88/8.406, allocations: 12.31 kB / 1.247 GB, free: 4.086 MB / 0.9981 GB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Functions.Examples.Factorial_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Factorial_fmu --startTime=0 --stopTime=12.9 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Functions_Examples_Factorial.fmu > 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/jenkins1/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