Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Utilities.Math.Functions.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.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.FallingFactorial,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Functions_Examples_FallingFactorial",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.Math.Functions.Examples.FallingFactorial,fileNamePrefix="Buildings_11_Buildings_Utilities_Math_Functions_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.001704/0.001704, allocations: 108 kB / 15.6 MB, free: 132 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.001916/0.001916, allocations: 191.4 kB / 16.53 MB, free: 6.391 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.44/1.44, allocations: 222.9 MB / 240.2 MB, free: 4.414 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.734/2.734, allocations: 469.8 MB / 0.7424 GB, free: 7.434 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001659/0.001659, allocations: 70.45 kB / 0.9087 GB, free: 34.3 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2703/0.272, allocations: 159.2 MB / 1.064 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.Math.Functions.Examples.FallingFactorial): time 0.0017/0.2737, allocations: 0.5911 MB / 1.065 GB, free: 13.59 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.0002351/0.274, allocations: 51.8 kB / 1.065 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.679e-05/0.274, allocations: 0 / 1.065 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 2.487e-05/0.274, allocations: 0 / 1.065 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 4.578e-06/0.274, allocations: 0 / 1.065 GB, free: 13.54 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002422/0.2743, allocations: 23.92 kB / 1.065 GB, free: 13.52 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 7.172e-05/0.2744, allocations: 35.89 kB / 1.065 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 3.447e-05/0.2744, allocations: 4 kB / 1.065 GB, free: 13.48 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 1.656e-05/0.2744, allocations: 4 kB / 1.065 GB, free: 13.47 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 3.29e-05/0.2745, allocations: 23.97 kB / 1.065 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 1.078e-05/0.2745, allocations: 0 / 1.065 GB, free: 13.45 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.735e-05/0.2746, allocations: 19.98 kB / 1.065 GB, free: 13.43 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 2.788e-05/0.2746, allocations: 15.94 kB / 1.065 GB, free: 13.41 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 3.499e-05/0.2746, allocations: 11.92 kB / 1.065 GB, free: 13.4 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 8.524e-05/0.2747, allocations: 31.89 kB / 1.065 GB, free: 13.37 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.397e-06/0.2747, allocations: 0 / 1.065 GB, free: 13.37 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.593e-06/0.2747, allocations: 0 / 1.065 GB, free: 13.37 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 7.314e-06/0.2747, allocations: 0 / 1.065 GB, free: 13.37 MB / 0.8262 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 11 * Number of variables: 11 Notification: Performance of Generate backend data structure: time 0.000327/0.2751, allocations: 343.6 kB / 1.065 GB, free: 12.98 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.439e-05/0.2751, allocations: 12.03 kB / 1.065 GB, free: 12.97 MB / 0.8262 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.212e-05/0.2752, allocations: 30.75 kB / 1.065 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.549e-05/0.2752, allocations: 8.844 kB / 1.065 GB, free: 12.93 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001013/0.2753, allocations: 168.6 kB / 1.065 GB, free: 12.72 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.211e-05/0.2753, allocations: 4.375 kB / 1.065 GB, free: 12.72 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.168e-05/0.2753, allocations: 4.375 kB / 1.065 GB, free: 12.71 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001261/0.2755, allocations: 66.11 kB / 1.065 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-06/0.2755, allocations: 7.875 kB / 1.066 GB, free: 12.64 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.309e-05/0.2755, allocations: 8 kB / 1.066 GB, free: 12.63 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.2755, allocations: 4 kB / 1.066 GB, free: 12.62 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001334/0.2756, allocations: 103.9 kB / 1.066 GB, free: 12.52 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001639/0.2758, allocations: 165.7 kB / 1.066 GB, free: 12.31 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001135/0.2759, allocations: 74.52 kB / 1.066 GB, free: 12.23 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.063e-05/0.276, allocations: 32.78 kB / 1.066 GB, free: 12.2 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003231/0.2763, allocations: 401.5 kB / 1.066 GB, free: 11.71 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.789e-05/0.2764, allocations: 38.56 kB / 1.066 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=11): time 1.152e-06/0.2764, allocations: 4 kB / 1.066 GB, free: 11.66 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11): time 0.0002226/0.2766, allocations: 117.8 kB / 1.066 GB, free: 11.54 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.246e-05/0.2766, allocations: 51.41 kB / 1.066 GB, free: 11.48 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 4.716e-05/0.2767, allocations: 97.77 kB / 1.067 GB, free: 11.37 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.356e-05/0.2767, allocations: 29.7 kB / 1.067 GB, free: 11.34 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 2.937e-05/0.2767, allocations: 80.14 kB / 1.067 GB, free: 11.25 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 3.557e-05/0.2768, allocations: 27.64 kB / 1.067 GB, free: 11.23 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.452e-05/0.2768, allocations: 29.7 kB / 1.067 GB, free: 11.19 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001238/0.2769, allocations: 326.8 kB / 1.067 GB, free: 10.86 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.659e-05/0.277, allocations: 23.92 kB / 1.067 GB, free: 10.84 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.405e-05/0.277, allocations: 23.92 kB / 1.067 GB, free: 10.82 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.756e-05/0.2771, allocations: 56.78 kB / 1.067 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.173e-06/0.2771, allocations: 0 / 1.067 GB, free: 10.76 MB / 0.8262 GB Notification: Performance of matching and sorting (n=11) (initialization): time 0.000132/0.2773, allocations: 94.31 kB / 1.067 GB, free: 10.66 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.287e-05/0.2773, allocations: 7.938 kB / 1.067 GB, free: 10.65 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.536e-06/0.2773, allocations: 0 / 1.067 GB, free: 10.65 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.033e-05/0.2773, allocations: 0 / 1.067 GB, free: 10.65 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.708e-05/0.2774, allocations: 19.94 kB / 1.067 GB, free: 10.63 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.2774, allocations: 7.984 kB / 1.067 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.85e-05/0.2774, allocations: 4 kB / 1.067 GB, free: 10.62 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.741e-06/0.2774, allocations: 0 / 1.067 GB, free: 10.62 MB / 0.8262 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (n,falFac[10],falFac[9],falFac[8],falFac[7],falFac[6],falFac[5],falFac[4],falFac[3],falFac[2],falFac[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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 0.0001163/0.2776, allocations: 121.8 kB / 1.067 GB, free: 10.49 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.602e-05/0.2776, allocations: 11.84 kB / 1.067 GB, free: 10.48 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002015/0.2778, allocations: 137.5 kB / 1.068 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-06/0.2778, allocations: 0 / 1.068 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.156e-06/0.2778, allocations: 0 / 1.068 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.414e-06/0.2778, allocations: 4 kB / 1.068 GB, free: 10.34 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001284/0.2779, allocations: 173.6 kB / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.212e-06/0.278, allocations: 0 / 1.068 GB, free: 10.12 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.122e-05/0.278, allocations: 16 kB / 1.068 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.496e-06/0.278, allocations: 3.938 kB / 1.068 GB, free: 10.1 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.037e-05/0.278, allocations: 3.984 kB / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.756e-06/0.278, allocations: 4 kB / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.2781, allocations: 0 / 1.068 GB, free: 10.09 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001464/0.2782, allocations: 121 kB / 1.068 GB, free: 9.953 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 4.254e-05/0.2783, allocations: 92.88 kB / 1.068 GB, free: 9.844 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.269e-05/0.2783, allocations: 8 kB / 1.068 GB, free: 9.836 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.409e-05/0.2783, allocations: 0 / 1.068 GB, free: 9.836 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.856e-05/0.2783, allocations: 7.984 kB / 1.068 GB, free: 9.828 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.211e-06/0.2783, allocations: 4 kB / 1.068 GB, free: 9.824 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 3.418e-05/0.2784, allocations: 79.28 kB / 1.068 GB, free: 9.746 MB / 0.8262 GB Notification: Performance of sort global known variables: time 9e-08/0.2784, allocations: 0 / 1.068 GB, free: 9.746 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0001858/0.2786, allocations: 16 kB / 1.068 GB, free: 9.73 MB / 0.8262 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 (falFac[1],falFac[2],falFac[3],falFac[4],falFac[5],falFac[6],falFac[7],falFac[8],falFac[9],falFac[10],n) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 11 * 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.0004714/0.279, allocations: 0.6675 MB / 1.069 GB, free: 9.035 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0001357/0.2792, allocations: 67.95 kB / 1.069 GB, free: 8.969 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 3.366e-06/0.2792, allocations: 4 kB / 1.069 GB, free: 8.965 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 5.086e-05/0.2793, allocations: 35.92 kB / 1.069 GB, free: 8.93 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001204/0.2794, allocations: 10.06 kB / 1.069 GB, free: 8.922 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003316/0.2797, allocations: 179.2 kB / 1.069 GB, free: 8.707 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002624/0.28, allocations: 0.6845 MB / 1.07 GB, free: 7.996 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.205e-05/0.2801, allocations: 39.94 kB / 1.07 GB, free: 7.957 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.554e-05/0.2801, allocations: 23.42 kB / 1.07 GB, free: 7.934 MB / 0.8262 GB Notification: Performance of SimCode: time 2.51e-07/0.2801, allocations: 3.938 kB / 1.07 GB, free: 7.93 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6473/0.9274, allocations: 1.548 MB / 1.071 GB, free: 6.469 MB / 0.8262 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.791/10.72, allocations: 3.938 kB / 1.071 GB, free: 6.465 MB / 0.8262 GB (rm -f Buildings_11_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; mkfifo Buildings_11_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe >> ../files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_Math_Functions_Examples_FallingFactorial_fmu --startTime=0 --stopTime=13.9 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_Math_Functions_Examples_FallingFactorial.fmu > Buildings_11_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Utilities.Math.Functions.Examples.FallingFactorial_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_Math_Functions_Examples_FallingFactorial.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.Math.Functions.Examples.FallingFactorial.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches