Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.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.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.FallingFactorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Examples.FallingFactorial,fileNamePrefix="Buildings_latest_Buildings_Utilities_Math_Examples_FallingFactorial",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.001198/0.001198, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00124/0.00124, allocations: 195.5 kB / 16.53 MB, free: 6.699 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.361/1.361, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.677/2.677, allocations: 461.9 MB / 0.7346 GB, free: 14.73 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001298/0.001298, allocations: 60.8 kB / 0.8992 GB, free: 36.89 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2908/0.2921, allocations: 157.4 MB / 1.053 GB, free: 8.238 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Examples.FallingFactorial): time 0.002824/0.2949, allocations: 1.54 MB / 1.054 GB, free: 6.684 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0004313/0.2954, allocations: 127.6 kB / 1.055 GB, free: 6.559 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.572e-05/0.2955, allocations: 0 / 1.055 GB, free: 6.559 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 3.27e-05/0.2955, allocations: 3.938 kB / 1.055 GB, free: 6.555 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 5.052e-05/0.2956, allocations: 11.92 kB / 1.055 GB, free: 6.543 MB / 0.8106 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003044/0.2959, allocations: 31.91 kB / 1.055 GB, free: 6.512 MB / 0.8106 GB Notification: Performance of NFFlatten.flatten: time 6.87e-05/0.296, allocations: 31.92 kB / 1.055 GB, free: 6.48 MB / 0.8106 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001074/0.2961, allocations: 19.98 kB / 1.055 GB, free: 6.461 MB / 0.8106 GB Notification: Performance of NFEvalConstants.evaluate: time 3.303e-05/0.2961, allocations: 19.91 kB / 1.055 GB, free: 6.441 MB / 0.8106 GB Notification: Performance of NFSimplifyModel.simplify: time 4.545e-05/0.2962, allocations: 23.92 kB / 1.055 GB, free: 6.418 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 1.415e-05/0.2962, allocations: 0 / 1.055 GB, free: 6.418 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 7.22e-05/0.2963, allocations: 16 kB / 1.055 GB, free: 6.402 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 1.749e-05/0.2963, allocations: 11.92 kB / 1.055 GB, free: 6.391 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 2.934e-05/0.2963, allocations: 11.94 kB / 1.055 GB, free: 6.379 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.000116/0.2965, allocations: 43.86 kB / 1.055 GB, free: 6.336 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.2965, allocations: 4 kB / 1.055 GB, free: 6.332 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.503e-06/0.2965, allocations: 0 / 1.055 GB, free: 6.332 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 5.48e-06/0.2965, allocations: 0 / 1.055 GB, free: 6.332 MB / 0.8106 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004531/0.2969, allocations: 355.7 kB / 1.055 GB, free: 5.934 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 3.935e-05/0.297, allocations: 8.625 kB / 1.055 GB, free: 5.926 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.532e-05/0.297, allocations: 34.73 kB / 1.055 GB, free: 5.883 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.748e-05/0.2971, allocations: 4.938 kB / 1.055 GB, free: 5.879 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001126/0.2972, allocations: 172.2 kB / 1.055 GB, free: 5.672 MB / 0.8106 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.116e-05/0.2972, allocations: 8.375 kB / 1.055 GB, free: 5.664 MB / 0.8106 GB Notification: Performance of preOpt expandDerOperator (simulation): time 8.847e-06/0.2972, allocations: 384 / 1.055 GB, free: 5.664 MB / 0.8106 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001928/0.2974, allocations: 66.22 kB / 1.055 GB, free: 5.594 MB / 0.8106 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.876e-06/0.2974, allocations: 3.938 kB / 1.055 GB, free: 5.59 MB / 0.8106 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.766e-06/0.2975, allocations: 0 / 1.055 GB, free: 5.59 MB / 0.8106 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.51e-06/0.2975, allocations: 0 / 1.055 GB, free: 5.59 MB / 0.8106 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001905/0.2977, allocations: 47.89 kB / 1.055 GB, free: 5.543 MB / 0.8106 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003743/0.298, allocations: 292.7 kB / 1.056 GB, free: 5.207 MB / 0.8106 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0003151/0.2984, allocations: 62.52 kB / 1.056 GB, free: 5.137 MB / 0.8106 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.689e-05/0.2985, allocations: 24.91 kB / 1.056 GB, free: 5.109 MB / 0.8106 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002432/0.2987, allocations: 397.5 kB / 1.056 GB, free: 4.629 MB / 0.8106 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.926e-05/0.2988, allocations: 38.56 kB / 1.056 GB, free: 4.582 MB / 0.8106 GB Notification: Performance of pre-optimization done (n=3): time 1.212e-06/0.2988, allocations: 3.938 kB / 1.056 GB, free: 4.578 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3): time 0.0003793/0.2991, allocations: 101.5 kB / 1.056 GB, free: 4.473 MB / 0.8106 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.187e-05/0.2992, allocations: 51.41 kB / 1.056 GB, free: 4.41 MB / 0.8106 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.595e-05/0.2993, allocations: 109.8 kB / 1.056 GB, free: 4.293 MB / 0.8106 GB Notification: Performance of collectPreVariables (initialization): time 1.405e-05/0.2993, allocations: 25.7 kB / 1.056 GB, free: 4.262 MB / 0.8106 GB Notification: Performance of collectInitialEqns (initialization): time 4.359e-05/0.2993, allocations: 88.14 kB / 1.057 GB, free: 4.172 MB / 0.8106 GB Notification: Performance of collectInitialBindings (initialization): time 1.369e-05/0.2994, allocations: 3.906 kB / 1.057 GB, free: 4.168 MB / 0.8106 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.522e-05/0.2994, allocations: 17.72 kB / 1.057 GB, free: 4.145 MB / 0.8106 GB Notification: Performance of setup shared object (initialization): time 9.697e-05/0.2995, allocations: 322.8 kB / 1.057 GB, free: 3.82 MB / 0.8106 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.537e-05/0.2996, allocations: 15.98 kB / 1.057 GB, free: 3.805 MB / 0.8106 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.411e-05/0.2997, allocations: 23.97 kB / 1.057 GB, free: 3.781 MB / 0.8106 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001705/0.2999, allocations: 48.83 kB / 1.057 GB, free: 3.73 MB / 0.8106 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.664e-06/0.2999, allocations: 0 / 1.057 GB, free: 3.73 MB / 0.8106 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002259/0.3001, allocations: 77.58 kB / 1.057 GB, free: 3.648 MB / 0.8106 GB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.3001, allocations: 4 kB / 1.057 GB, free: 3.645 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.649e-06/0.3001, allocations: 0 / 1.057 GB, free: 3.645 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.166e-05/0.3002, allocations: 0 / 1.057 GB, free: 3.645 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.15e-05/0.3002, allocations: 15.98 kB / 1.057 GB, free: 3.629 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.649e-06/0.3003, allocations: 320 / 1.057 GB, free: 3.629 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.849e-05/0.3003, allocations: 11.91 kB / 1.057 GB, free: 3.617 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.384e-06/0.3003, allocations: 3.984 kB / 1.057 GB, free: 3.613 MB / 0.8106 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 (falFac.y,rea2Int.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 7.261e-05/0.3004, allocations: 113.8 kB / 1.057 GB, free: 3.492 MB / 0.8106 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.569e-05/0.3004, allocations: 0 / 1.057 GB, free: 3.492 MB / 0.8106 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002588/0.3007, allocations: 93.47 kB / 1.057 GB, free: 3.391 MB / 0.8106 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.3007, allocations: 0 / 1.057 GB, free: 3.391 MB / 0.8106 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.386e-06/0.3007, allocations: 4 kB / 1.057 GB, free: 3.387 MB / 0.8106 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.3007, allocations: 0 / 1.057 GB, free: 3.387 MB / 0.8106 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001489/0.3009, allocations: 165.6 kB / 1.057 GB, free: 3.176 MB / 0.8106 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.3009, allocations: 3.938 kB / 1.057 GB, free: 3.172 MB / 0.8106 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.506e-05/0.301, allocations: 15.98 kB / 1.057 GB, free: 3.156 MB / 0.8106 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.301, allocations: 0 / 1.057 GB, free: 3.156 MB / 0.8106 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.015e-05/0.301, allocations: 4 kB / 1.057 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.392e-06/0.301, allocations: 0 / 1.057 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.301, allocations: 0 / 1.057 GB, free: 3.152 MB / 0.8106 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002594/0.3013, allocations: 179.7 kB / 1.058 GB, free: 2.961 MB / 0.8106 GB Notification: Performance of postOpt removeConstants (simulation): time 3.28e-05/0.3013, allocations: 85.08 kB / 1.058 GB, free: 2.859 MB / 0.8106 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.353e-05/0.3013, allocations: 0 / 1.058 GB, free: 2.859 MB / 0.8106 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.666e-05/0.3014, allocations: 7.984 kB / 1.058 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.789e-05/0.3015, allocations: 8 kB / 1.058 GB, free: 2.844 MB / 0.8106 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.61e-06/0.3015, allocations: 3.984 kB / 1.058 GB, free: 2.84 MB / 0.8106 GB Notification: Performance of sorting global known variables: time 4.232e-05/0.3015, allocations: 91.28 kB / 1.058 GB, free: 2.75 MB / 0.8106 GB Notification: Performance of sort global known variables: time 1.2e-07/0.3016, allocations: 0 / 1.058 GB, free: 2.75 MB / 0.8106 GB Notification: Performance of remove unused functions: time 0.0002302/0.3018, allocations: 15.88 kB / 1.058 GB, free: 2.734 MB / 0.8106 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 (rea2Int.y,falFac.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.0005284/0.3023, allocations: 0.7164 MB / 1.059 GB, free: 1.992 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.0002312/0.3026, allocations: 47.89 kB / 1.059 GB, free: 1.945 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 2.295e-06/0.3026, allocations: 0 / 1.059 GB, free: 1.945 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.0001012/0.3027, allocations: 27.97 kB / 1.059 GB, free: 1.918 MB / 0.8106 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002588/0.303, allocations: 9.719 kB / 1.059 GB, free: 1.91 MB / 0.8106 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001372/0.3043, allocations: 1.284 MB / 1.06 GB, free: 0.5469 MB / 0.8106 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002107/0.3046, allocations: 0.6884 MB / 1.061 GB, free: 15.83 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 3.353e-05/0.3046, allocations: 4 kB / 1.061 GB, free: 15.83 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.936e-05/0.3046, allocations: 15.44 kB / 1.061 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of SimCode: time 2.4e-07/0.3046, allocations: 0 / 1.061 GB, free: 15.81 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01666/0.3213, allocations: 1.669 MB / 1.062 GB, free: 14.22 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.412/7.733, allocations: 4.859 kB / 1.062 GB, free: 14.21 MB / 0.8262 GB (rm -f Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; mkfifo Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe >> ../files/Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_Math_Examples_FallingFactorial_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_Math_Examples_FallingFactorial.fmu > Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_Math_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.Math.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches