Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.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.Examples.Factorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_Factorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.Factorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_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.007516/0.007517, allocations: 100.2 kB / 15.73 MB, free: 6.496 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.001912/0.001912, allocations: 204 kB / 16.68 MB, free: 6.375 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.424/1.424, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.83/2.83, allocations: 482.6 MB / 0.755 GB, free: 10.61 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001858/0.001858, allocations: 63.89 kB / 1.083 GB, free: 12.2 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3201/0.322, allocations: 162.3 MB / 1.242 GB, free: 9.797 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.Factorial): time 0.002739/0.3248, allocations: 1.515 MB / 1.243 GB, free: 8.27 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0003465/0.3252, allocations: 119.7 kB / 1.243 GB, free: 8.152 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.578e-05/0.3252, allocations: 0 / 1.243 GB, free: 8.152 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 2.562e-05/0.3252, allocations: 3.938 kB / 1.243 GB, free: 8.148 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 4.418e-05/0.3253, allocations: 7.922 kB / 1.243 GB, free: 8.141 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002023/0.3255, allocations: 23.98 kB / 1.243 GB, free: 8.117 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 7.21e-05/0.3256, allocations: 27.92 kB / 1.244 GB, free: 8.09 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001001/0.3257, allocations: 11.98 kB / 1.244 GB, free: 8.078 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 4.441e-05/0.3257, allocations: 11.94 kB / 1.244 GB, free: 8.066 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 5.005e-05/0.3258, allocations: 23.84 kB / 1.244 GB, free: 8.043 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 1.489e-05/0.3258, allocations: 8 kB / 1.244 GB, free: 8.035 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.532e-05/0.3259, allocations: 11.98 kB / 1.244 GB, free: 8.023 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 1.499e-05/0.3259, allocations: 4 kB / 1.244 GB, free: 8.02 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 2.865e-05/0.3259, allocations: 15.92 kB / 1.244 GB, free: 8.004 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001169/0.3261, allocations: 31.89 kB / 1.244 GB, free: 7.973 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.3261, allocations: 0 / 1.244 GB, free: 7.973 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.643e-06/0.3261, allocations: 0 / 1.244 GB, free: 7.973 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 7.424e-06/0.3261, allocations: 0 / 1.244 GB, free: 7.973 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: 5 * Number of variables: 5 Notification: Performance of Generate backend data structure: time 0.0004945/0.3266, allocations: 347.3 kB / 1.244 GB, free: 7.582 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/0.3266, allocations: 12.03 kB / 1.244 GB, free: 7.57 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.435e-05/0.3267, allocations: 42.73 kB / 1.244 GB, free: 7.52 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.689e-05/0.3267, allocations: 4.891 kB / 1.244 GB, free: 7.516 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001419/0.3269, allocations: 160.4 kB / 1.244 GB, free: 7.32 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.871e-05/0.3269, allocations: 4.375 kB / 1.244 GB, free: 7.316 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.039e-05/0.3269, allocations: 384 / 1.244 GB, free: 7.316 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001885/0.3271, allocations: 62.22 kB / 1.244 GB, free: 7.25 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.3271, allocations: 3.938 kB / 1.244 GB, free: 7.246 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.248e-06/0.3271, allocations: 0 / 1.244 GB, free: 7.246 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-06/0.3271, allocations: 4 kB / 1.244 GB, free: 7.242 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001946/0.3273, allocations: 47.89 kB / 1.244 GB, free: 7.195 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003836/0.3277, allocations: 260.9 kB / 1.245 GB, free: 6.891 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003082/0.3281, allocations: 62.52 kB / 1.245 GB, free: 6.82 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.848e-05/0.3282, allocations: 28.91 kB / 1.245 GB, free: 6.789 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001154/0.3283, allocations: 89.03 kB / 1.245 GB, free: 6.684 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.843e-05/0.3283, allocations: 30.56 kB / 1.245 GB, free: 6.645 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.3283, allocations: 3.938 kB / 1.245 GB, free: 6.641 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3): time 0.0003795/0.3287, allocations: 93.58 kB / 1.245 GB, free: 6.543 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.571e-05/0.3288, allocations: 55.41 kB / 1.245 GB, free: 6.477 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.788e-05/0.3288, allocations: 97.86 kB / 1.245 GB, free: 6.371 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.673e-05/0.3289, allocations: 29.7 kB / 1.245 GB, free: 6.336 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 5.116e-05/0.3289, allocations: 88.12 kB / 1.245 GB, free: 6.246 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.391e-05/0.3289, allocations: 3.953 kB / 1.245 GB, free: 6.242 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.562e-05/0.329, allocations: 17.72 kB / 1.245 GB, free: 6.219 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001364/0.3291, allocations: 310.8 kB / 1.245 GB, free: 5.906 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001012/0.3292, allocations: 27.97 kB / 1.245 GB, free: 5.879 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.046e-05/0.3293, allocations: 15.98 kB / 1.245 GB, free: 5.863 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001731/0.3295, allocations: 52.69 kB / 1.245 GB, free: 5.809 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.3295, allocations: 0 / 1.245 GB, free: 5.809 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002143/0.3297, allocations: 73.66 kB / 1.246 GB, free: 5.73 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.3298, allocations: 5.094 kB / 1.246 GB, free: 5.727 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.228e-06/0.3298, allocations: 4 kB / 1.246 GB, free: 5.723 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/0.3298, allocations: 3.938 kB / 1.246 GB, free: 5.719 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.297e-05/0.3299, allocations: 11.98 kB / 1.246 GB, free: 5.707 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.35e-06/0.3299, allocations: 0 / 1.246 GB, free: 5.707 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.642e-05/0.3299, allocations: 7.984 kB / 1.246 GB, free: 5.699 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.476e-06/0.33, allocations: 4 kB / 1.246 GB, free: 5.695 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 (rea2Int.y,fac.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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.117e-05/0.33, allocations: 113.8 kB / 1.246 GB, free: 5.574 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.429e-05/0.3301, allocations: 3.953 kB / 1.246 GB, free: 5.57 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002669/0.3304, allocations: 89.08 kB / 1.246 GB, free: 5.469 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.424e-06/0.3304, allocations: 0 / 1.246 GB, free: 5.469 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.3304, allocations: 4 kB / 1.246 GB, free: 5.465 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.228e-06/0.3304, allocations: 3.984 kB / 1.246 GB, free: 5.461 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001777/0.3306, allocations: 165.6 kB / 1.246 GB, free: 5.25 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.3306, allocations: 0 / 1.246 GB, free: 5.25 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.762e-05/0.3307, allocations: 16.55 kB / 1.246 GB, free: 5.234 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.3307, allocations: 0 / 1.246 GB, free: 5.234 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.987e-06/0.3307, allocations: 4 kB / 1.246 GB, free: 5.23 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.3307, allocations: 3.938 kB / 1.246 GB, free: 5.227 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.3307, allocations: 3.984 kB / 1.246 GB, free: 5.223 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002696/0.331, allocations: 175.4 kB / 1.246 GB, free: 5.035 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 4.368e-05/0.331, allocations: 77.11 kB / 1.246 GB, free: 4.941 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.53e-05/0.331, allocations: 4 kB / 1.246 GB, free: 4.938 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.838e-05/0.3311, allocations: 11.98 kB / 1.246 GB, free: 4.926 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.952e-05/0.3312, allocations: 7.984 kB / 1.246 GB, free: 4.918 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.122e-06/0.3312, allocations: 4 kB / 1.246 GB, free: 4.914 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 4.002e-05/0.3313, allocations: 79.28 kB / 1.246 GB, free: 4.836 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3313, allocations: 0 / 1.246 GB, free: 4.836 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002235/0.3315, allocations: 11.95 kB / 1.246 GB, free: 4.824 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.y,rea2Int.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0006199/0.3321, allocations: 0.7167 MB / 1.247 GB, free: 4.078 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002385/0.3324, allocations: 47.95 kB / 1.247 GB, free: 4.031 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.3324, allocations: 0 / 1.247 GB, free: 4.031 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001004/0.3325, allocations: 23.97 kB / 1.247 GB, free: 4.008 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002854/0.3328, allocations: 8 kB / 1.247 GB, free: 4 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004273/0.3332, allocations: 142.7 kB / 1.247 GB, free: 3.824 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002868/0.3335, allocations: 0.6806 MB / 1.248 GB, free: 3.117 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 3.106e-05/0.3335, allocations: 3.984 kB / 1.248 GB, free: 3.113 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.702e-05/0.3336, allocations: 11.44 kB / 1.248 GB, free: 3.102 MB / 0.9981 GB Notification: Performance of SimCode: time 2.4e-07/0.3336, allocations: 0 / 1.248 GB, free: 3.102 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2481/0.5817, allocations: 1.575 MB / 1.249 GB, free: 1.605 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.061/8.643, allocations: 5.25 kB / 1.249 GB, free: 1.602 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_Factorial_fmu --startTime=0 --stopTime=13 --timeout=400 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_Factorial.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.Factorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_Factorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.Factorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches